Skip to Content
The Alchemy Project

include/window/menu_list.h

The battle menus' shared state, and the sprite shapes the menus queue.

Included by battle_state.h.

Structures

NameDescription
structCURSOR_SPRA menu cursor's sprite: its render slot link and OAM attributes 0 to 2.
structMENU_POINTA point on the screen, in pixels.
structMENU_SPRA menu sprite: a list link and its OAM attributes, as two words or as fields.
structBATTLE_MENU_STATEThe battle menus' state (HEAP_SLOT_BATTLE_MENU): what the command row and the lists remember between them while the party's commands are chosen.
structPARTY_STAT_WINDOWThe party status window and the rectangle it last drew.

Macros

NameDescription
#defineBATTLE_MENU_NO_DJINNI 0x80000000BATTLE_MENU_STATE.chosenDjinn of a command that has chosen no Djinni.
#defineMENU_SPR_INIT (sprite, shape)Gives a menu sprite its shape and clears the rest of its attributes, its tile and place still to come.
#defineBattleMenuStateWork ((BATTLE_MENU_STATE *)RamHeapSlots->battleMenuState)The battle menus' shared state, in its heap slot.
#defineBATTLE_MENU_GET_CURSOR (page_, row_, preferred_)Restores the previous selection: page, row and return row.
#defineBATTLE_MENU_SET_CURSOR (page_, row_, preferred_)Saves the selection: page, row and return row.

Enumerations

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

#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.

EnumeratorValueDescription
BATTLE_LIST_ROWS5

Definition at line 142 of file menu_list.h.