Skip to Content
The Alchemy Project

include/window/select.h

The selection screen's sprites and nodes.

Included by shop_internal.h, screens_internal.h and window_internal.h.

Structures

NameDescription
structSELECTION_SPRA selection screen sprite: a list link and its OAM attributes.
structSELECTION_NODEAn 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.
structSELECTION_MENU_STATEThe 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

NameDescription
#defineSELECTION_CURSOR_RESET 0x80The 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

NameDescription
enumSELECTION_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.

EnumeratorValueDescription
SELECTION_RECORD_ROW2the first of the row's seven icons
SELECTION_RECORD_CHOSEN9the first of the five icons chosen
SELECTION_RECORD_HAND14the pointing hand
SELECTION_RECORD_LARGE_ICON15
SELECTION_RECORD_COUNT16

Definition at line 63 of file select.h.