Katalog "Keyboard" zawiera:
1.keyboard_vertical.psd, keyboard_horizontal.psd
- warstwa <canvas='Background'> jest niezbedna, poniewaz sluzy do pozycjonowania calej klawiatury
- warstwa <canvas name='textBox'> i jej label - nie sa niezbedne
- litery pozycjonowane sa nastepujaco:
-- pozycja y - wyznaczona poprzez helpery (<... type=helper>)
-- pozycja x - litery ustawiane sa automatycznie z kodu, czyli: centrowanie do srodka psdka, odstepy pomiedzy literami wyznaczane przez warstwe <img=marginHelper> w grupie <button name='letter'>
- helpery (<... type=helper>) s³uza jedynie do wyznaczenia pozycji w pionie (y). Nie jest brana pod uwage ich wysokosc, szerokosc czypozycja w poziomie (x)
- gdy brakuje jakiejs warstwy (lub jest blednie nazwana), to program nie powinien sie wywalic (jesli sie wywali to prosze mi zglosic - Nat)
2. characters.txt
- <special> <special2> - znaki specjalne
- <en> <pl> <es> <it> <fr> <de>
- pierwsze trzy linijki to trzy rzedy liter w klawiaturze. W pliku tekstowym mozna zmieniac jedynie wartosci liter, nie mozna zmieniac ilosci liter w rzedzie
- kolejne 3 linijki to slowa: nazwa_jezyka (english), nazwa_spacji (space), nazwa_entera (return). Mozna zmieniac wartosci tych slow.
- <hints> - kazda linia to kolejny dymek. Kazdy dymek przypisany jest do pierwszej litery (np. A). Dymek moze zawierac max 10 liter (w tym pierwsza litera). Polozenie liter pobierane jest z psd'ka. Obrazek dymka przypisywany jest z kodu.
- brak pliku characters.txt w projekcie powoduje wywalenie programu
3. font.data, font.png
- brak ktoregos pliku z fontem powoduje wywalenie programu
4. tap.wav
- obecnie dzwieki nie dzialaja
FAQ:
? Program sie wywalil
- Prawdopodobnie brakuje jakiegos pliku w katalogu 'Keyboard'. Sa to pliki: font.data, font.png, characters.txt, keyboard_vertical.psd, keyboard_horizontal.psd (iPhone, iPad), katalogi z nazwami psdkow, tap.wav
? Klawiatura sie nie wyswietla
- Prawdopodobnie GameCoder nie wywolal funkcji show()
? Nie wyswietla sie TextBox
- Prawdopodobnie GameCoder nie wywolal funkcji show_textbox()
? Nie wyswietlaja sie zadne litery i napisy
- Prawdopodobnie GameCoder nie podal zadnego jezyka podczas ladowania klawiatury load()
? Brakuje niektorych obrazkow
- Prawdopodobnie warstwy sa zle nazwane
? Niektore obrazki wyswietlaja sie w punkcie (0,0)
- Prawdopodobnie warstwy helperow sa zlenazwane
? Brakuje przycisku 'globe'
- Prawdopodobnie GameCoder podal podczas ladowania klawiatury (load) tylko jeden jezyk, a wiec przycisk 'globe' do przelaczania jezykow nie jest potrzebny
|
The "Keyboard" folder contains:
1. keyboard_vertical.psd, keyboard_horizontal.psd
- the <canvas='Background'> layer is necessary, as it is used to position the entire keyboard
- the <canvas name='textBox'> layer and its label - aren't necessary
- letters are positioned as follows:
-- y position - determined through helpers (<... type=helper>)
-- x position - the letters are laid out automatically by the code, so: centered to the middle of the PSD, distance between letters specified by the <img=marginHelper> layer in the <button name='letter'> group
- helpers (<... type=helper>) are only used to determine vertical position (y). Their height, width and x position is ignored.
- when a layer is missing (or named incorrectly), the program shouldn't crash (if it does crash then report it to me - Nat)
2. characters.txt
- <special> <special2> - special characters
- <en> <pl> <es> <it> <fr> <de>
- first three lines are three rows of characters on the keyboard. In the text file you can only change the values of the characters, you can't change the number of characters in a row
- the next 3 lines are the words: language_name (english), space_name (space), enter_name (return). You can change the value of these words.
- <hints> - each line is another popup. Each popup is assigned to the first character (e.g. A). The popup can contain at most 10 characters (including the first character). Leters position are taken from the PSD. The popup icon is assigned in code.
- if the characters.txt file is missing from the project, the program will crash
3. font.data, font.png
- if either of the font files are missing, the program will crash
4. tap.wav
- sounds don't currently work
FAQ:
? The program crashed
- A file in the 'Keyboard' folder is likely missing. These files are: font.data, font.png, characters.txt, keyboard_vertical.psd, keyboard_horizontal.psd (iPhone, iPad), folders named after the PSDs, tap.wav
? The keyboard doesn't show up
- GameCoder likely didn't invoke the show() function
? TextBox doesn't show up
- GameCoder likely didn't invoke the show_textbox() function
? No letters or labels show up
- GameCoder likely didn't specify any language while loading the keyboard load()
? Some images are missing
- Layers are likely incorrectly named
? Some images show up at the coordinates (0,0)
- Helper layers are likely incorrectly named
? There's no 'globe' button
- GameCoder likely only specified one language while loading the keyboard (load), hence the 'globe' button for switching languages isn't needed
|