include/window/menu_list.h
The battle menus' shared state, and the sprite shapes the menus queue.
Included by battle_state.h.
Structures
| Name | Description | |
|---|---|---|
struct | CURSOR_SPR | A menu cursor's sprite: its render slot link and OAM attributes 0 to 2. |
struct | MENU_POINT | A point on the screen, in pixels. |
struct | MENU_SPR | A menu sprite: a list link and its OAM attributes, as two words or as fields. |
struct | BATTLE_MENU_STATE | The battle menus' state (HEAP_SLOT_BATTLE_MENU): what the command row and the lists remember between them while the party's commands are chosen. |
struct | PARTY_STAT_WINDOW | The party status window and the rectangle it last drew. |
Macros
| Name | Description | |
|---|---|---|
#define | BATTLE_MENU_NO_DJINNI 0x80000000 | BATTLE_MENU_STATE.chosenDjinn of a command that has chosen no Djinni. |
#define | MENU_SPR_INIT (sprite, shape) | Gives a menu sprite its shape and clears the rest of its attributes, its tile and place still to come. |
#define | BattleMenuStateWork ((BATTLE_MENU_STATE *)RamHeapSlots->battleMenuState) | The battle menus' shared state, in its heap slot. |
#define | BATTLE_MENU_GET_CURSOR (page_, row_, preferred_) | Restores the previous selection: page, row and return row. |
#define | BATTLE_MENU_SET_CURSOR (page_, row_, preferred_) | Saves the selection: page, row and return row. |
Enumerations
| Name | Description | |
|---|---|---|
enum | anonymous enum { BATTLE_LIST_ROWS } | The rows a battle list window shows. |
Description
The battle menus' shared state, and the sprite shapes the menus queue.
Macros in detail
BATTLE_MENU_NO_DJINNI
#define BATTLE_MENU_NO_DJINNI 0x80000000
BATTLE_MENU_STATE.chosenDjinn of a command that has chosen no Djinni.
Referenced by mnBattleCollectPartyCommands().
Definition at line 128 of file menu_list.h.
MENU_SPR_INIT
#define MENU_SPR_INIT(sprite, shape)
Gives a menu sprite its shape and clears the rest of its attributes, its tile and place still to come. The battle lists, the status screen and the command row start their sprites so.
Referenced by btMessageWaitForAdvance(), btMessageWaitForAdvanceAt(), btPlaybackRun(), mnBattleCollectPartyCommands(), mnBattleCommandRowLoadIcon(), mnBattleItemMenuRun(), mnBattlePsynergyMenuRun(), mnBattleStatusScreenRun() and mnBattleSummonMenuRun().
Definition at line 150 of file menu_list.h.
BattleMenuStateWork
#define BattleMenuStateWork ((BATTLE_MENU_STATE *)RamHeapSlots->battleMenuState)
The battle menus' shared state, in its heap slot.
Referenced by mnBattleCollectPartyCommands(), mnBattleCommandRowRun(), mnBattleDjinnMenuRun(), mnBattleItemMenuRun(), mnBattlePsynergyMenuRun(), mnBattleRefuseFlee(), mnBattleStatusScreenRun(), mnBattleSummonMenuRun() and mnBattleTargetRunSelection().
Definition at line 158 of file menu_list.h.
BATTLE_MENU_GET_CURSOR
#define BATTLE_MENU_GET_CURSOR(page_, row_, preferred_)
Restores the previous selection: page, row and return row.
Referenced by mnBattleDjinnMenuRun(), mnBattleItemMenuRun(), mnBattlePsynergyMenuRun() and mnBattleSummonMenuRun().
Definition at line 161 of file menu_list.h.
BATTLE_MENU_SET_CURSOR
#define BATTLE_MENU_SET_CURSOR(page_, row_, preferred_)
Saves the selection: page, row and return row.
Referenced by mnBattleCollectPartyCommands(), mnBattleItemMenuRun(), mnBattlePsynergyMenuRun() and mnBattleSummonMenuRun().
Definition at line 170 of file menu_list.h.
Enumerations in detail
anonymous enum
enum { BATTLE_LIST_ROWS }
The rows a battle list window shows.
| Enumerator | Value | Description |
|---|---|---|
BATTLE_LIST_ROWS | 5 |
Definition at line 142 of file menu_list.h.