Alchemy
Loading...
Searching...
No Matches

command_row.c File Reference

The row of command icons the player picks a command from. More...

Go to the source code of this file.

Macros

#define WINDOW_X   22

Functions

struct UiWindow * UiText_ShowMessageAndWaitComplete (s32 message, s32 x, s32 y)
 Opens a message at (x, y), waits for its text to finish, and returns its window so the caller can hold it open for a separate prompt.
s32 Menu_RunCommandRow (s32 mode)
 Selects a command icon, returning its kind, -1 for cancel or -2 for a shoulder-button switch.
void Ui_SetRectHighlight (s32 x, s32 y, s32 width, s32 height, s32 paletteBit)
 Sets bit 12 of each tile in a screen-space rectangle, preserving the other tile attributes.
s32 BattleLayout_HighlightPartyPanels (u16 *ids)
 Dims the party strip, then highlight the actor IDs up to the 0xff terminator.

Detailed Description

The row of command icons the player picks a command from.

Part of battle_command.c, the menu object, compiled only through it.

Definition in file command_row.c.

Macro Definition Documentation

◆ WINDOW_X

#define WINDOW_X   22

Definition at line 19 of file command_row.c.

Referenced by Menu_RunCommandRow().

Function Documentation

◆ UiText_ShowMessageAndWaitComplete()

struct UiWindow * UiText_ShowMessageAndWaitComplete ( s32 message,
s32 x,
s32 y )

Opens a message at (x, y), waits for its text to finish, and returns its window so the caller can hold it open for a separate prompt.

Definition at line 9 of file command_row.c.

Referenced by Battle_CollectPartyCommands(), Menu_RunCommandRow(), NameEntry_CountLetters(), and UiText_ShowMessageAndWaitComplete().

◆ Menu_RunCommandRow()

s32 Menu_RunCommandRow ( s32 mode)

Selects a command icon, returning its kind, -1 for cancel or -2 for a shoulder-button switch.

Mode 0 is the top menu; the other mode selects a battle command and remembers its own cursor. Tutorial input is replayed through the same selection path.

Definition at line 28 of file command_row.c.

Referenced by Battle_CollectPartyCommands(), Menu_RunCommandRow(), and NameEntry_CountLetters().

◆ Ui_SetRectHighlight()

void Ui_SetRectHighlight ( s32 x,
s32 y,
s32 width,
s32 height,
s32 paletteBit )

Sets bit 12 of each tile in a screen-space rectangle, preserving the other tile attributes.

Keep the original bottom-edge test (29) and height (20).

Definition at line 329 of file command_row.c.

Referenced by Battle_SelectAbility(), BattleLayout_HighlightPartyPanels(), BattleMenu_RunActionSelection(), ItemList_SelectEntry(), NameEntry_CountLetters(), SummonMenu_SelectSummon(), Ui_RunOwnerStatusScreen(), and Ui_SetRectHighlight().

◆ BattleLayout_HighlightPartyPanels()

s32 BattleLayout_HighlightPartyPanels ( u16 * ids)

Dims the party strip, then highlight the actor IDs up to the 0xff terminator.

Missing IDs are ignored; the search stops at the party's own terminator.

Definition at line 375 of file command_row.c.

Referenced by Battle_CollectPartyCommands(), BattleLayout_HighlightPartyPanels(), and NameEntry_CountLetters().