Skip to Content
The Alchemy Project

struct BATTLE_COMMAND_ROW_STATE

The command row's state block: the icons' shared palette, up to six icons, the label window, the pulsing icon's transform and the selection.

Declared in screens_internal.h.

Fields

NameDescription
ICON_PALETTEpaletteBG palette slots for the icons'
BATTLE_COMMAND_ROW_ICONentries [6]256-colour pixels, filled as each icon is loaded (mnBattleCommandRowLoadIconTiles).
WINDOW *windowshows the selected command's name
Sint32iconCount
AFFINE_TRANSFORMaffineThe selected icon's scale, 8.8 fixed point: it pulses between 304 and 336 (1.19 and 1.31 times) every 16 ticks.
Sint32affineIndex, selectedIndex, drawnIndex , selectedIndex, drawnIndexaffineIndex: the OAM matrix built from affine this tick. selectedIndex: the icon under the cursor. drawnIndex: the icon whose name the window shows, -1 before the first is drawn.
Sint32commandKinds [6]The commands in row order, ended by -1 when fewer than six (see mnBattleCommandRowRun for the kinds).

Description

The command row's state block: the icons' shared palette, up to six icons, the label window, the pulsing icon's transform and the selection.

struct BATTLE_COMMAND_ROW_STATE

Referenced by mnBattleCommandRowLoadIcon() and mnBattleCommandRowRun().

Definition at line 315 of file screens_internal.h.

Fields in detail

palette

ICON_PALETTE palette

BG palette slots for the icons'

entries

BATTLE_COMMAND_ROW_ICON entries[6]

256-colour pixels, filled as each icon is loaded (mnBattleCommandRowLoadIconTiles).

window

WINDOW *window

shows the selected command's name

iconCount

Sint32 iconCount

affine

AFFINE_TRANSFORM affine

The selected icon's scale, 8.8 fixed point: it pulses between 304 and 336 (1.19 and 1.31 times) every 16 ticks.

affineIndex, selectedIndex, drawnIndex

Sint32 affineIndex, selectedIndex, drawnIndex

affineIndex: the OAM matrix built from affine this tick. selectedIndex: the icon under the cursor. drawnIndex: the icon whose name the window shows, -1 before the first is drawn.

commandKinds

Sint32 commandKinds[6]

The commands in row order, ended by -1 when fewer than six (see mnBattleCommandRowRun for the kinds).