What every part of the window object shares: its includes, edition values, macros and the codes of decoded text. More...
Go to the source code of this file.
Macros | |
| #define | ITEM_POSSESSIVE_TEXT_COUNT 4 |
| #define | TEXT_ARGUMENT_SPACE 143 |
| #define | UI_SPRITE_SPACE_WIDTH 5 |
| #define | NO_GLYPH_RESOURCE 99 |
| A glyph resource id meaning no glyph resource is loaded. | |
| #define | UI_MESSAGE_CHANNEL_COUNT 3 |
| #define | UI_MESSAGE_LINE_COUNT 4 |
| #define | UI_TEXT_DEFAULT_COLOUR 15 |
| #define | UI_TEXT_DEFAULT_LINE_SPACING 10 |
| #define | UI_TILEMAP_PALETTE 15 |
| #define | UI_WINDOW_OPEN_FRAMES 8 |
| #define | UI_WINDOW_CLOSE_FRAMES 4 |
| #define | UI_PALETTE_SLOT_FREE 999 |
| #define | UI_CANVAS_BACKGROUND_WORD 0x44444444 |
| #define | UI_NUMBER_BUFFER_SIZE 16 |
| #define | UI_BYTE_STRING_BUFFER_SIZE 0x200 |
| #define | UI_MESSAGE_NAME_HALFWORDS 24 |
| #define | UI_ARGUMENT_SLOT_COUNT 8 |
| #define | UI_SELECTION_ENTRY_LIMIT 16 |
| #define | UI_AREA_NOTICE_FRAMES 90 |
| #define | TEXT_CODE_MARK_SHIFT 14 |
| #define | TEXT_CODE_VOICED (1 << TEXT_CODE_MARK_SHIFT) |
| #define | TEXT_CODE_SEMIVOICED (2 << TEXT_CODE_MARK_SHIFT) |
| #define | UI_WINDOW_EFFECT_SWELL 4 |
| The window effect a message can start (TEXT_WINDOW_STATE): the window's frame grows by a tile and its text sprites pulse, for the channel's countdown. | |
| #define | TEXT_WORK_BLOCK 50 |
| The heap block the message decoder routine is copied into to run. | |
Enumerations | |
| enum | { TEXT_END = 0 , TEXT_PAGE = 1 , TEXT_WAIT_KEY = 2 , TEXT_NEWLINE = 3 , TEXT_PAUSE_LONG = 4 , TEXT_PAUSE_SHORT = 5 , TEXT_PAUSE_LONGEST = 6 , TEXT_COLOURS_RESET = 7 , TEXT_COLOUR = 8 , TEXT_OUTLINE = 9 , TEXT_LINE_SPACING = 10 , TEXT_WINDOW_STATE = 15 , TEXT_END_ALT = 30 , TEXT_COMMANDS = 31 , TEXT_SPACE = 32 , TEXT_VOICED_MARK = 222 , TEXT_SEMIVOICED_MARK = 223 } |
| The control codes of decoded message text (UiRenderWork.entries). More... | |
| enum | { HEAP_SLOT_BATTLE_DISPLAY = 37 } |
| The heap slot of the battle display's work block (struct BattleDisplayWork), whose window is the battle message window. More... | |
Variables | |
| GlyphTransfer * | gGlyphWork |
| The glyph transfer work in IWRAM (system/iwram.s), which icons are built in. | |
| const void *const | Text_MessageContexts [][2] |
| Each message context bank's Huffman models and their offsets, which the message catalog built from games/tbs/text defines. | |
What every part of the window object shares: its includes, edition values, macros and the codes of decoded text.
window.c includes it before the parts, and each part includes it too, so that a part read on its own still resolves.
Definition in file window_internal.h.
| #define ITEM_POSSESSIVE_TEXT_COUNT 4 |
Definition at line 101 of file window_internal.h.
| #define TEXT_ARGUMENT_SPACE 143 |
Definition at line 108 of file window_internal.h.
Referenced by UiText_BuildRenderEntries().
| #define UI_SPRITE_SPACE_WIDTH 5 |
Definition at line 114 of file window_internal.h.
Referenced by UiText_DrawGlyph().
| #define NO_GLYPH_RESOURCE 99 |
A glyph resource id meaning no glyph resource is loaded.
Definition at line 126 of file window_internal.h.
Referenced by UiText_DrawGlyph(), UiWindow_PutGlyph(), UiWork_Initialize(), UiWork_InitializeWithResourceCounters(), and UiWork_StepChannelScript().
| #define UI_MESSAGE_CHANNEL_COUNT 3 |
Definition at line 129 of file window_internal.h.
Referenced by UiText_QueueRenderEntries(), UiText_StartBattleMessage(), and UiWork_ResetFreeChannel().
| #define UI_MESSAGE_LINE_COUNT 4 |
Definition at line 130 of file window_internal.h.
Referenced by UiText_QueueRenderEntries(), and UiText_StartBattleMessage().
| #define UI_TEXT_DEFAULT_COLOUR 15 |
Definition at line 131 of file window_internal.h.
Referenced by UiText_QueueRenderEntries(), UiText_StartBattleMessage(), and UiWork_ResetFreeChannel().
| #define UI_TEXT_DEFAULT_LINE_SPACING 10 |
Definition at line 132 of file window_internal.h.
Referenced by UiText_QueueRenderEntries(), UiText_StartBattleMessage(), and UiWork_ResetFreeChannel().
| #define UI_TILEMAP_PALETTE 15 |
Definition at line 133 of file window_internal.h.
Referenced by UiWork_Initialize(), and UiWork_InitializeWithResourceCounters().
| #define UI_WINDOW_OPEN_FRAMES 8 |
Definition at line 136 of file window_internal.h.
Referenced by UiWindow_Create().
| #define UI_WINDOW_CLOSE_FRAMES 4 |
Definition at line 137 of file window_internal.h.
Referenced by UiWork_Finalize().
| #define UI_PALETTE_SLOT_FREE 999 |
Definition at line 138 of file window_internal.h.
Referenced by RenderOutput_Release().
| #define UI_CANVAS_BACKGROUND_WORD 0x44444444 |
Definition at line 139 of file window_internal.h.
Referenced by Ui_FillVramBlockPattern(), and UiWindow_DrawOpened().
| #define UI_NUMBER_BUFFER_SIZE 16 |
Definition at line 142 of file window_internal.h.
Referenced by UiText_BuildRenderEntries(), UiText_DrawNumber(), UiText_DrawNumberAtOffset(), UiText_DrawNumberInWindow(), and UiText_DrawPrefixedNumberAtOffset().
| #define UI_BYTE_STRING_BUFFER_SIZE 0x200 |
Definition at line 143 of file window_internal.h.
Referenced by UiText_DrawString(), UiText_DrawStringAtOffset(), and UiText_DrawStringInWindow().
| #define UI_MESSAGE_NAME_HALFWORDS 24 |
Definition at line 144 of file window_internal.h.
Referenced by UiText_BuildRenderEntries().
| #define UI_ARGUMENT_SLOT_COUNT 8 |
Definition at line 145 of file window_internal.h.
Referenced by UiText_LookupArgument(), UiWork_ClearValueNameTables(), and UiWork_PushValueSlot().
| #define UI_SELECTION_ENTRY_LIMIT 16 |
Definition at line 146 of file window_internal.h.
Referenced by Resource_PushPendingPair().
| #define UI_AREA_NOTICE_FRAMES 90 |
Definition at line 147 of file window_internal.h.
Referenced by UiTimedNotice_Create().
| #define TEXT_CODE_MARK_SHIFT 14 |
Definition at line 173 of file window_internal.h.
Referenced by UiText_DrawGlyph(), and UiText_RenderGlyphPair().
| #define TEXT_CODE_VOICED (1 << TEXT_CODE_MARK_SHIFT) |
Definition at line 174 of file window_internal.h.
Referenced by UiText_RenderWideStringAtOffset(), and UiWork_StepChannelScript().
| #define TEXT_CODE_SEMIVOICED (2 << TEXT_CODE_MARK_SHIFT) |
Definition at line 175 of file window_internal.h.
Referenced by UiText_RenderWideStringAtOffset(), and UiWork_StepChannelScript().
| #define UI_WINDOW_EFFECT_SWELL 4 |
The window effect a message can start (TEXT_WINDOW_STATE): the window's frame grows by a tile and its text sprites pulse, for the channel's countdown.
Definition at line 180 of file window_internal.h.
Referenced by UiWindow_StepSwellEffect(), and UiWork_AnimateSpriteSlots().
| #define TEXT_WORK_BLOCK 50 |
The heap block the message decoder routine is copied into to run.
Definition at line 187 of file window_internal.h.
Referenced by UiText_BuildRenderEntries(), and UiText_DecodeMessage().
| anonymous enum |
The control codes of decoded message text (UiRenderWork.entries).
Codes from TEXT_SPACE up are characters.
Definition at line 151 of file window_internal.h.
| anonymous enum |
The heap slot of the battle display's work block (struct BattleDisplayWork), whose window is the battle message window.
| Enumerator | |
|---|---|
| HEAP_SLOT_BATTLE_DISPLAY | |
Definition at line 184 of file window_internal.h.
|
extern |
The glyph transfer work in IWRAM (system/iwram.s), which icons are built in.
Referenced by ItemIcon_Compose(), Ui_PrepareTransferForItem(), and Ui_PrepareTransferFromTableEntry().
|
extern |
Each message context bank's Huffman models and their offsets, which the message catalog built from games/tbs/text defines.
Referenced by UiText_DecodeSymbol().