The debug menus (scenes, flags, icon browsers) and the system menu's choices. More...
Go to the source code of this file.
Macros | |
| #define | DEBUG_GLYPH_NAME MsgDebugGlyphName |
Functions | |
| UNUSED void | DebugMenu_ScheduleSceneSelector (void) |
| Schedules the debug scene and entrance selector; 0xc80 is a scheduler order, not a number of frames to wait. | |
| void | Menu_DrawSelectionRow (struct UiWindow *work, s32 scene, const s16 *entrance) |
| Draws the debug scene and entrance numbers with their category/area labels. | |
| s16 | Menu_RunSelection (void) |
| s32 | Menu_HandleSelectionRowInput (struct UiWindow *window, s16 scene, s16 *entrance, s16 *selectedField) |
| Edits the debug scene or entrance, returning -1 to warp and -2 to cancel. | |
| s32 | Menu_RunSelectionWithCursorObject (void) |
| Shows a 16x16 flag grid per page and processes input until closed. | |
| void | Text_FormatHex (u32 value, u32 count, u8 *out) |
| Writes the lowest count digits of value, up to five, most significant first as uppercase hexadecimal in out, without a null terminator. | |
| void | Menu_DrawFlagBitTable (struct UiWindow *window, s32 page) |
| Draws one page of 256 flags as sixteen rows of hexadecimal labels and bits. | |
| s32 | Menu_HandleFlagGridInput (struct UiWindow *window, s32 *page, s32 *cursor) |
| Moves within the flag grid, changes pages, or toggles the selected flag. | |
| void | Menu_ReservedNoOp (void) |
| Reserved menu entry. | |
| void | Djinn_SetFoundFlagAndAdd (s32 owner, s32 element, s32 index) |
| Sets the Djinni's collected flag, then adds it to the specified owner. | |
| s32 | Menu_RunWorkspaceResultLoop (void) |
| Handles Save, Sleep and Options from the field workspace. | |
| s32 | DebugMenu_BrowseIcons (void) |
| Browses pages of item, Psynergy and status-pattern icons, suspending the menu controller while the browser owns its window and cache entries. | |
| s32 | DebugMenu_BrowseEntryGlyphs (void) |
| Browses the character and sprite portrait maps as one circular list. | |
The debug menus (scenes, flags, icon browsers) and the system menu's choices.
Part of battle_command.c, the menu object, compiled only through it.
Definition in file debug.c.
| #define DEBUG_GLYPH_NAME MsgDebugGlyphName |
Definition at line 412 of file debug.c.
Referenced by DebugMenu_BrowseEntryGlyphs().
| UNUSED void DebugMenu_ScheduleSceneSelector | ( | void | ) |
Schedules the debug scene and entrance selector; 0xc80 is a scheduler order, not a number of frames to wait.
Nothing in the game calls it.
Definition at line 10 of file debug.c.
Referenced by DebugMenu_ScheduleSceneSelector(), and NameEntry_CountLetters().
Draws the debug scene and entrance numbers with their category/area labels.
Definition at line 19 of file debug.c.
Referenced by Menu_DrawSelectionRow(), Menu_HandleSelectionRowInput(), Menu_RunSelection(), and NameEntry_CountLetters().
| s16 Menu_RunSelection | ( | void | ) |
Definition at line 39 of file debug.c.
Referenced by DebugMenu_ScheduleSceneSelector(), Menu_RunSelection(), and NameEntry_CountLetters().
| s32 Menu_HandleSelectionRowInput | ( | struct UiWindow * | window, |
| s16 | scene, | ||
| s16 * | entrance, | ||
| s16 * | selectedField ) |
Edits the debug scene or entrance, returning -1 to warp and -2 to cancel.
Shoulder buttons step by ten; it keeps the original 99-step entrance wrap.
Definition at line 92 of file debug.c.
Referenced by Menu_HandleSelectionRowInput(), Menu_RunSelection(), and NameEntry_CountLetters().
| s32 Menu_RunSelectionWithCursorObject | ( | void | ) |
Shows a 16x16 flag grid per page and processes input until closed.
Starts on page 8 and always returns 0.
Definition at line 154 of file debug.c.
Referenced by Menu_RunSelectionWithCursorObject(), and NameEntry_CountLetters().
Writes the lowest count digits of value, up to five, most significant first as uppercase hexadecimal in out, without a null terminator.
Definition at line 187 of file debug.c.
Referenced by Menu_DrawFlagBitTable(), NameEntry_CountLetters(), and Text_FormatHex().
Draws one page of 256 flags as sixteen rows of hexadecimal labels and bits.
Definition at line 208 of file debug.c.
Referenced by Menu_DrawFlagBitTable(), Menu_RunSelectionWithCursorObject(), and NameEntry_CountLetters().
Moves within the flag grid, changes pages, or toggles the selected flag.
Returns 1 when flags/page need redrawing, -1 to close, and 0 otherwise.
Definition at line 243 of file debug.c.
Referenced by Menu_HandleFlagGridInput(), Menu_RunSelectionWithCursorObject(), and NameEntry_CountLetters().
| void Menu_ReservedNoOp | ( | void | ) |
Reserved menu entry.
Definition at line 292 of file debug.c.
Referenced by Menu_ReservedNoOp(), and NameEntry_CountLetters().
Sets the Djinni's collected flag, then adds it to the specified owner.
Definition at line 295 of file debug.c.
Referenced by Djinn_SetFoundFlagAndAdd(), and NameEntry_CountLetters().
| s32 Menu_RunWorkspaceResultLoop | ( | void | ) |
Handles Save, Sleep and Options from the field workspace.
A cancelled save or options screen reopens the workspace; cancelling the workspace returns -1.
Definition at line 303 of file debug.c.
Referenced by Menu_RunWorkspaceResultLoop(), and NameEntry_CountLetters().
| s32 DebugMenu_BrowseIcons | ( | void | ) |
Browses pages of item, Psynergy and status-pattern icons, suspending the menu controller while the browser owns its window and cache entries.
Definition at line 327 of file debug.c.
Referenced by DebugMenu_BrowseIcons(), DebugMenu_OpenIconBrowser(), ItemLevel_OpenIconBrowser(), and NameEntry_CountLetters().
| s32 DebugMenu_BrowseEntryGlyphs | ( | void | ) |
Browses the character and sprite portrait maps as one circular list.
Shows each entry's glyph and label, then releases both windows on A or B.
Definition at line 421 of file debug.c.
Referenced by DebugMenu_BrowseEntryGlyphs(), ItemLevel_OpenGlyphBrowser(), and NameEntry_CountLetters().