include/window/select.h
The selection screen's sprites and nodes.
Included by shop_internal.h, screens_internal.h and window_internal.h.
Structures
| Name | Description | |
|---|---|---|
struct | SELECTION_SPR | A selection screen sprite: a list link and its OAM attributes. |
struct | SELECTION_NODE | An icon of the selection screen: its list links, the entry it shows (kind/base from SELECTION_MENU_STATE.kinds and .bases; for an arrow, kind is TRUE while shown and base is the ticks left of its nudge after a scroll), its place and its slide toward a target, its zoom and its sprite. |
struct | SELECTION_MENU_STATE | 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. |
Macros
| Name | Description | |
|---|---|---|
#define | SELECTION_CURSOR_RESET 0x80 | The bit of SELECTION_MENU_STATE.cursorIndex set as an entry is chosen, on which mnSelectionMenuClear puts the next list's top and cursor back to its first entry. |
Enumerations
| Name | Description | |
|---|---|---|
enum | SELECTION_RECORD { SELECTION_RECORD_ROW, SELECTION_RECORD_CHOSEN, SELECTION_REC … } | The entries of SELECTION_MENU_STATE.records. |
Description
The selection screen's sprites and nodes.
Macros in detail
SELECTION_CURSOR_RESET
#define SELECTION_CURSOR_RESET 0x80
The bit of SELECTION_MENU_STATE.cursorIndex set as an entry is chosen, on
which mnSelectionMenuClear puts the next list's top and cursor back to its
first entry.
Referenced by mnConfirmSelection(), mnSelectionMenuClear() and mnSelectionMenuCreate().
Definition at line 124 of file select.h.
Enumerations in detail
SELECTION_RECORD
enum SELECTION_RECORD
The entries of SELECTION_MENU_STATE.records.
| Enumerator | Value | Description |
|---|---|---|
SELECTION_RECORD_ROW | 2 | the first of the row's seven icons |
SELECTION_RECORD_CHOSEN | 9 | the first of the five icons chosen |
SELECTION_RECORD_HAND | 14 | the pointing hand |
SELECTION_RECORD_LARGE_ICON | 15 | |
SELECTION_RECORD_COUNT | 16 |
Definition at line 63 of file select.h.