The selection screen (heap block 18): the row of icons the player picks from, with arrows at each end and a pointing hand over the chosen target. More...
#include <menu/select.h>
Data Fields | |
| struct SelectionNode | records [16] |
| The icons; 14 is the pointing hand, whose picture is loaded at setup. | |
| struct AffineTransform | transform |
| a zooming icon's scale | |
| struct SelectionNode * | head |
| the first icon of the row | |
| struct SelectionNode * | path |
| the icons chosen so far | |
| struct UiWindow * | window |
| the window naming the chosen entry | |
| u16 | baseX |
| screen pixels | |
| u16 | baseY |
| screen pixels | |
| u16 | unk39a |
| cleared with the list; not read by name in TBS | |
| u16 | top |
| the first listed entry shown | |
| u16 | cursorIndex |
| The entry under the hand, from top; bit 7 asks the next list to start again from its first entry. | |
| u16 | verticalScroll |
| pixels added to the icons' y; 32 at setup | |
| u16 | status |
| 1 shown, 33 while scrolling; counts up each frame drawn | |
| u16 | pathTop [5] |
| top, kept for each icon chosen on the path | |
| u16 | pathCursor [5] |
| cursorIndex, kept for each icon chosen on the path | |
| u16 | locked |
| 999 from setup on. | |
| u8 | unk3ba [42] |
| not named by TBS code | |
| u16 | kinds [16] |
| The listed entries, up to 16 (Resource_PushPendingPair). | |
| u16 | bases [16] |
| u16 | count |
The selection screen (heap block 18): the row of icons the player picks from, with arrows at each end and a pointing hand over the chosen target.
| struct SelectionNode SelectionScreen::records[16] |
The icons; 14 is the pointing hand, whose picture is loaded at setup.
Definition at line 57 of file select.h.
Referenced by Menu_ConfirmSelection(), Menu_MoveSelectionBackward(), Menu_MoveSelectionForward(), Menu_StepLeft(), Menu_StepRight(), Resource_ResetOwnerEntries(), Resource_ResetPendingTransfer(), SelectionScreen_Draw(), SelectionScreen_DrawArrow(), SelectionScreen_FindFreeIcon(), SelectionScreen_LoadLargeIcon(), SelectionScreen_SetupArrow(), and UiGlyph_ResetWorkState().
| struct AffineTransform SelectionScreen::transform |
a zooming icon's scale
Definition at line 58 of file select.h.
Referenced by SelectionScreen_Draw().
| struct SelectionNode* SelectionScreen::head |
the first icon of the row
Definition at line 59 of file select.h.
Referenced by Menu_ConfirmSelection(), Menu_MoveSelectionBackward(), Menu_MoveSelectionForward(), Menu_ScrollSelectionList(), Menu_SendNodeCountList(), Menu_SetNodeCoordinates(), Menu_StepLeft(), Menu_StepRight(), Menu_WaitForSelectionInput(), MenuSelection_BuildEntries(), Resource_ClearOwnerListAndCounters(), Resource_ResetOwnerEntries(), Selection_GetCursorNode(), SelectionScreen_Draw(), SelectionScreen_HighlightIcon(), SelectionScreen_RedrawIcon(), and UiGlyph_ResetWorkState().
| struct SelectionNode* SelectionScreen::path |
the icons chosen so far
Definition at line 60 of file select.h.
Referenced by Menu_ConfirmSelection(), Resource_ResetOwnerEntries(), SelectionScreen_Draw(), and UiGlyph_ResetWorkState().
| struct UiWindow* SelectionScreen::window |
the window naming the chosen entry
Definition at line 61 of file select.h.
Referenced by Menu_OpenSelectionWindow(), Resource_ResetOwnerEntries(), and UiGlyph_ResetWorkState().
| u16 SelectionScreen::kinds[16] |
The listed entries, up to 16 (Resource_PushPendingPair).
Definition at line 64 of file select.h.
Referenced by Menu_ScrollSelectionList(), Menu_StepLeft(), Menu_StepRight(), MenuSelection_BuildEntries(), and Resource_PushPendingPair().
| u16 SelectionScreen::bases[16] |
Definition at line 65 of file select.h.
Referenced by Menu_ScrollSelectionList(), Menu_StepLeft(), Menu_StepRight(), MenuSelection_BuildEntries(), and Resource_PushPendingPair().
| u16 SelectionScreen::count |
Definition at line 66 of file select.h.
Referenced by Menu_MoveSelectionForward(), Menu_OpenSelectionWindow(), Menu_StepLeft(), Menu_StepRight(), MenuSelection_BuildEntries(), Resource_ClearOwnerListAndCounters(), Resource_PushPendingPair(), SelectionScreen_SetupArrow(), and UiGlyph_ResetWorkState().
| u16 SelectionScreen::baseX |
screen pixels
Definition at line 68 of file select.h.
Referenced by Menu_ScrollSelectionList(), Menu_SetNodeCoordinates(), Menu_StepLeft(), Menu_StepRight(), MenuSelection_BuildEntries(), and SelectionScreen_SetupArrow().
| u16 SelectionScreen::baseY |
screen pixels
Definition at line 69 of file select.h.
Referenced by Menu_ScrollSelectionList(), Menu_SetNodeCoordinates(), Menu_StepRight(), MenuSelection_BuildEntries(), and SelectionScreen_SetupArrow().
| u16 SelectionScreen::unk39a |
cleared with the list; not read by name in TBS
Definition at line 70 of file select.h.
Referenced by Menu_ConfirmSelection(), Resource_ClearOwnerListAndCounters(), and UiGlyph_ResetWorkState().
| u16 SelectionScreen::top |
the first listed entry shown
Definition at line 71 of file select.h.
Referenced by Menu_ConfirmSelection(), Menu_MoveSelectionBackward(), Menu_MoveSelectionForward(), Menu_ScrollSelectionList(), Menu_StepLeft(), Menu_StepRight(), Menu_WaitForSelectionInput(), MenuSelection_BuildEntries(), Resource_ClearOwnerListAndCounters(), SelectionScreen_SetupArrow(), and UiGlyph_ResetWorkState().
| u16 SelectionScreen::cursorIndex |
The entry under the hand, from top; bit 7 asks the next list to start again from its first entry.
Definition at line 74 of file select.h.
Referenced by Menu_ConfirmSelection(), Menu_MoveSelectionBackward(), Menu_MoveSelectionForward(), Menu_RunSelectionForValue(), Menu_StepLeft(), Menu_StepRight(), Menu_WaitForSelectionInput(), Resource_ClearOwnerListAndCounters(), Selection_GetCursorNode(), SelectionScreen_Draw(), and UiGlyph_ResetWorkState().
| u16 SelectionScreen::verticalScroll |
pixels added to the icons' y; 32 at setup
Definition at line 75 of file select.h.
Referenced by Menu_OpenSelectionWindow(), Menu_SelectionLoop(), Menu_WaitForSelectionInput(), Resource_ClearOwnerListAndCounters(), SelectionScreen_Draw(), and UiGlyph_ResetWorkState().
| u16 SelectionScreen::status |
1 shown, 33 while scrolling; counts up each frame drawn
Definition at line 76 of file select.h.
Referenced by Menu_ConfirmSelection(), Menu_MoveSelectionBackward(), Menu_MoveSelectionForward(), Menu_StepLeft(), Menu_StepRight(), and SelectionScreen_Draw().
| u16 SelectionScreen::pathTop[5] |
top, kept for each icon chosen on the path
Definition at line 77 of file select.h.
Referenced by Menu_ConfirmSelection().
| u16 SelectionScreen::pathCursor[5] |
cursorIndex, kept for each icon chosen on the path
Definition at line 78 of file select.h.
Referenced by Menu_ConfirmSelection().
| u16 SelectionScreen::locked |
999 from setup on.
While 0, kind 6 icons sit at the top of the screen and the window opens there; no TBS code clears it by name.
Definition at line 81 of file select.h.
Referenced by Menu_OpenSelectionWindow(), Menu_RunSelectionForValue(), MenuSelection_BuildEntries(), and UiGlyph_ResetWorkState().