Number text, the debug text screen and the window graphics. More...
Go to the source code of this file.
Functions | |
| void | NumberText_FormatHex (u32 value) |
| Writes value as eight hexadecimal digits to the number buffer. | |
| void | NumberText_FormatDecimal (s32 number) |
| Writes number to the number buffer as eleven characters: spaces, a sign (a space or '-') and its decimal digits, right-aligned. | |
| void | DebugText_PrintBlanks (u32 count) |
| Writes count blank characters at the debug text cursor and moves it on. | |
| void | DebugText_Print (const u8 *src) |
| Prints the string src (at most 32 characters) at the debug text cursor, wrapping from the end of the screen to its start, when debug text is on; the cursor moves past it. | |
| void | DebugText_PrintHex (u32 value, s32 digits) |
| Prints the last digits hexadecimal digits of value (1 to 8; anything else prints all 8). | |
| void | DebugText_PrintDecimal (s32 value, s32 digits) |
| Prints the last digits characters of value in signed decimal (1 to 10; anything else prints 10). | |
| void | DebugText_Clear (void) |
| Blanks the debug text screen, homes the cursor and points BG0 at it. | |
| void | Ui_LoadWindowGraphics (void) |
| Loads the window font and frame tiles into BG character block 0, the window palette into BG palette 15 with its gradient colours, and the basic sprite palettes. | |
| void | Palette_LoadBasicObjColors (void) |
| Loads the basic sprite palettes (palettes 0 to 13). | |
Number text, the debug text screen and the window graphics.
Part of runtime.c, the runtime object, compiled only through it.
Definition in file text.c.
| void NumberText_FormatHex | ( | u32 | value | ) |
Writes value as eight hexadecimal digits to the number buffer.
Called by DebugText_PrintHex.
Definition at line 12 of file text.c.
Referenced by DebugText_PrintHex(), NumberText_FormatHex(), and System_GetLanguage().
| void NumberText_FormatDecimal | ( | s32 | number | ) |
Writes number to the number buffer as eleven characters: spaces, a sign (a space or '-') and its decimal digits, right-aligned.
Called by DebugText_PrintDecimal and the Djinn preview's number text.
Definition at line 32 of file text.c.
Referenced by DebugText_PrintDecimal(), NumberText_FormatDecimal(), System_GetLanguage(), and UiText_FormatNumberToHalfwords().
| void DebugText_PrintBlanks | ( | u32 | count | ) |
Writes count blank characters at the debug text cursor and moves it on.
Reached through the far-call table.
Definition at line 89 of file text.c.
Referenced by DebugText_PrintBlanks(), and System_GetLanguage().
| void DebugText_Print | ( | const u8 * | src | ) |
Prints the string src (at most 32 characters) at the debug text cursor, wrapping from the end of the screen to its start, when debug text is on; the cursor moves past it.
Called by the hex and decimal printers and through the far-call table.
Definition at line 116 of file text.c.
Referenced by DebugText_Print(), DebugText_PrintDecimal(), DebugText_PrintHex(), and memcpy().
Prints the last digits hexadecimal digits of value (1 to 8; anything else prints all 8).
Reached through the far-call table.
Definition at line 144 of file text.c.
Referenced by DebugText_PrintHex(), and memcpy().
Prints the last digits characters of value in signed decimal (1 to 10; anything else prints 10).
Reached through the far-call table.
Definition at line 157 of file text.c.
Referenced by DebugText_PrintDecimal(), and memcpy().
| void DebugText_Clear | ( | void | ) |
Blanks the debug text screen, homes the cursor and points BG0 at it.
Called by System_Initialize, Game_ResetForNewGame and the debug modes.
Definition at line 170 of file text.c.
Referenced by Debug_RunPaletteEditor(), DebugBattle_RunMenu(), DebugText_Clear(), DisplayScroll_RunSlideshow(), Game_ResetForNewGame(), memcpy(), System_Initialize(), Title_ShowAnimatedSplash(), Title_ShowIntro(), and Title_ShowSplashScreen().
| void Ui_LoadWindowGraphics | ( | void | ) |
Loads the window font and frame tiles into BG character block 0, the window palette into BG palette 15 with its gradient colours, and the basic sprite palettes.
Called by System_Initialize and by the modes that replace those graphics and must put them back (the debug battle, the palette editor).
Definition at line 180 of file text.c.
Referenced by Debug_RunPaletteEditor(), DebugBattle_RunMenu(), DisplayScroll_RunSlideshow(), memcpy(), NameEntry_EditOwnerName(), SaveMenu_Run(), System_Initialize(), Title_ShowAnimatedSplash(), Title_ShowIntro(), Title_ShowSplashScreen(), and Ui_LoadWindowGraphics().
| void Palette_LoadBasicObjColors | ( | void | ) |
Loads the basic sprite palettes (palettes 0 to 13).
Called by Ui_LoadWindowGraphics and the field object setup.
Definition at line 199 of file text.c.
Referenced by memcpy(), ObjectSystem_Configure(), and Palette_LoadBasicObjColors().