The name entry screen. More...
Go to the source code of this file.
Macros | |
| #define | NAME_COMMAND_COLUMN 18 |
| the keyboard column of the command keys | |
| #define | NAME_MAX_LETTERS 5 |
| #define | NAME_MAX_BYTES 14 |
| stored name bytes, excluding its terminator | |
| #define | TEXT_COLOR_COMMAND 8 |
| The text control code that sets the colour of the text after it, from the byte that follows ({text_color:N} in the message catalogs). | |
| #define | NAME_LABEL_WIDTH 8 |
| #define | NAME_KEY_LABELS 0 |
| #define | NAME_END_KEY_WIDTH 3 |
Functions | |
| UNUSED s32 | NameEntry_AcceptsMark (s32 mark, s32 letter) |
| The international name entry has no voicing marks: where the Japanese edition checks a mark against the letter before it, this edition keeps a function that accepts every character. | |
| void | UiWindow_CopyTilemapRegion (const struct UiWindow *window, const void *source) |
| Decompresses the type-01 tilemap source and copies it over window's rectangle, both into the BG screen block at 0x06002000 and into the UI tilemap that mirrors it. | |
| void | UiWindow_SetTileAttributeRect (const struct UiWindow *window, s32 x, s32 y, s32 width, s32 height, u32 palette) |
| Like UiWindow_SetTileAttributeBitRect, but ORs all of palette into the palette number of each entry (bits 12-15) after clearing only its lowest bit. | |
| void | Resource_CopyFixedBlockB (s32 slot) |
| Loads the pointing hand cursor's tiles into VRAM slot slot. | |
| void | Resource_CopyFixedBlockA (s32 slot) |
| Loads the 16x16 sprite gResource_FixedBlockATiles into VRAM slot slot. | |
| s32 | UiText_SetRenderString (const u8 *str) |
| Puts the string str into the UI's text entries and returns its width in pixels. | |
| void | UiText_DrawPaddedLabel (struct UiWindow *window, u8 *name) |
| Draws the name being entered, name, at the top left of window, with the free places up to its seventh character shown as underscores in text colour 2. | |
| s32 | NameEntry_EditOwnerName (s32 member) |
| The name entry screen for party member member: the player types a name of up to NAME_MAX_LETTERS letters on the keyboard and ends with End (or Start, which jumps there). | |
The name entry screen.
Part of battle_command.c, the menu object, compiled only through it.
Definition in file name_entry.c.
| #define NAME_COMMAND_COLUMN 18 |
the keyboard column of the command keys
Definition at line 144 of file name_entry.c.
Referenced by NameEntry_EditOwnerName().
| #define NAME_MAX_LETTERS 5 |
Definition at line 145 of file name_entry.c.
Referenced by NameEntry_EditOwnerName().
| #define NAME_MAX_BYTES 14 |
stored name bytes, excluding its terminator
Definition at line 146 of file name_entry.c.
Referenced by NameEntry_EditOwnerName().
| #define TEXT_COLOR_COMMAND 8 |
The text control code that sets the colour of the text after it, from the byte that follows ({text_color:N} in the message catalogs).
Definition at line 176 of file name_entry.c.
Referenced by UiText_DrawPaddedLabel().
| #define NAME_LABEL_WIDTH 8 |
Definition at line 210 of file name_entry.c.
Referenced by NameEntry_EditOwnerName().
| #define NAME_KEY_LABELS 0 |
Definition at line 219 of file name_entry.c.
| #define NAME_END_KEY_WIDTH 3 |
Definition at line 224 of file name_entry.c.
Referenced by NameEntry_EditOwnerName().
The international name entry has no voicing marks: where the Japanese edition checks a mark against the letter before it, this edition keeps a function that accepts every character.
Nothing calls it.
Definition at line 11 of file name_entry.c.
Referenced by NameEntry_AcceptsMark().
| void UiWindow_CopyTilemapRegion | ( | const struct UiWindow * | window, |
| const void * | source ) |
Decompresses the type-01 tilemap source and copies it over window's rectangle, both into the BG screen block at 0x06002000 and into the UI tilemap that mirrors it.
Definition at line 56 of file name_entry.c.
Referenced by NameEntry_CountLetters(), NameEntry_EditOwnerName(), and UiWindow_CopyTilemapRegion().
| void UiWindow_SetTileAttributeRect | ( | const struct UiWindow * | window, |
| s32 | x, | ||
| s32 | y, | ||
| s32 | width, | ||
| s32 | height, | ||
| u32 | palette ) |
Like UiWindow_SetTileAttributeBitRect, but ORs all of palette into the palette number of each entry (bits 12-15) after clearing only its lowest bit.
Definition at line 89 of file name_entry.c.
Referenced by NameEntry_CountLetters(), NameEntry_EditOwnerName(), PartyTalkMenu_Choose(), and UiWindow_SetTileAttributeRect().
| void Resource_CopyFixedBlockB | ( | s32 | slot | ) |
Loads the pointing hand cursor's tiles into VRAM slot slot.
Definition at line 132 of file name_entry.c.
Referenced by NameEntry_CountLetters(), and Resource_CopyFixedBlockB().
| void Resource_CopyFixedBlockA | ( | s32 | slot | ) |
Loads the 16x16 sprite gResource_FixedBlockATiles into VRAM slot slot.
Definition at line 137 of file name_entry.c.
Referenced by NameEntry_CountLetters(), and Resource_CopyFixedBlockA().
Puts the string str into the UI's text entries and returns its width in pixels.
Definition at line 151 of file name_entry.c.
Referenced by NameEntry_CountLetters(), NameEntry_EditOwnerName(), and UiText_SetRenderString().
Draws the name being entered, name, at the top left of window, with the free places up to its seventh character shown as underscores in text colour 2.
Definition at line 181 of file name_entry.c.
Referenced by NameEntry_CountLetters(), NameEntry_EditOwnerName(), and UiText_DrawPaddedLabel().
The name entry screen for party member member: the player types a name of up to NAME_MAX_LETTERS letters on the keyboard and ends with End (or Start, which jumps there).
A puts the key under the cursor into the name, B or Delete removes the last letter, and B on an empty name cancels. Ending with an empty name keeps the old one. Returns 0, or -1 when cancelled.
Definition at line 232 of file name_entry.c.
Referenced by DebugMenu_EditIsaacName(), NameEntry_CountLetters(), NameEntry_EditOwnerName(), and SaveMenu_Run().