Skip to Content
The Alchemy Project

src/window/screens_internal.h

What every part of the menu object shares: its includes, edition values, macros and the link turn state. More…

Included by screens.c.

Structures

NameDescription
structFILE_LIST_STATEThe menus' state (heap slot HEAP_SLOT_MENU) as the file list reads it: the party row and the four Djinn sprites of the file under the cursor.
structBATTLE_COMMAND_ROW_ICONOne icon of the command row (BATTLE_COMMAND_ROW_STATE): its sprite, where it stands and the command it stands for.
structBATTLE_COMMAND_ROW_STATEThe command row's state block: the icons' shared palette, up to six icons, the label window, the pulsing icon's transform and the selection.

Macros

NameDescription
#defineDJINN_PREVIEW_VITALS_X JAPANESE_OR(4, 5)Edition-specific text and window layout values: places and widths in tiles, except where a note says pixels.
#defineNUMBER_TEXT_FOUR_PLACES 7Where a widened number's last four characters start, room for 9999, and its last three, room for 999 (the Djinni preview's numberText).
#defineNUMBER_TEXT_THREE_PLACES 8
#defineDJINN_PREVIEW_STAT_DIGIT_OFFSETWhere the Djinni preview's old stats start in their number text, and their column.
#defineDJINN_PREVIEW_STAT_X JAPANESE_OR(4, 6)
#defineDJINN_PREVIEW_HELP_X JAPANESE_OR(40, 24)The x of the preview's ":Psynergy Gained" prompt, in pixels.
#definePSYNERGY_COST_FIRST_TILE WINDOW_TILE_PP_LABELThe two UI tiles of the PP label before a Psynergy's cost in the lists.
#definePSYNERGY_COST_SECOND_TILE WINDOW_TILE_PP_LABEL_END
#defineOWNER_STATUS_LEVEL_X FRENCH_OR(51, 56)The Status screen's level label, after the party member's name, in pixels.
#defineSUMMON_MENU_WINDOW_X JAPANESE_OR(16, 13)The summon list's window.
#defineSUMMON_MENU_WINDOW_WIDTH JAPANESE_OR(14, 17)
#defineBATTLE_PORTRAIT_X JAPANESE_OR(4, 0)While a party member's commands are chosen (mnBattleCollectPartyCommands): the screen x of the party member's portrait sprite, in pixels.
#defineBATTLE_COMMAND_NAME_X FRENCH_OR(14, 16)Where "Attack" is written in its window once chosen, in pixels.
#defineBATTLE_SUMMON_ICON_X JAPANESE_OR(104, 80)The screen x of the chosen command's icon, in pixels, while the summon list is open.
#defineBATTLE_SUMMON_WINDOW_WIDTH JAPANESE_OR(14, 17)The chosen summon's window, in tiles.
#defineBATTLE_SUMMON_ELEMENT_COLUMN JAPANESE_OR(10, 13)The tile columns of a summon's first Djinn cost in the battle's summon command: its element icon, then its count.
#defineBATTLE_SUMMON_COST_COLUMN JAPANESE_OR(11, 14)
#defineMENU_WINDOW_FLAGS (WINDOW_FLAG_INSTANT | WINDOW_FLAG_UNREAD)How the menus open their windows: at once, with no zoom.
#defineCOMMAND_ROW_ICON_TILE (BG_CHAR_SIZE / (8 * 8))BG1's tile number of the command row's first icon tile.
#defineCOMMAND_ROW_TOP 17The command window's top tile row: it runs along the bottom three rows.
#defineCOMMAND_ICON_BYTES (32 * 32)A command icon's pixels: 32x32 at a byte a pixel.
#defineMENU_PLACE_CURSOR (position, window, row, margin, sprite)Places a battle menu's pointing hand at its list window's selected row: position takes the hand's spot, margin pixels left of the window and 20 below the row's top, and sprite becomes a plain 16x16 sprite, its position still to come.
#defineBATTLE_ITEM_WINDOW_WIDTH 16
#definePASSWORD_LEVEL_WINDOW_X 7
#definePASSWORD_LEVEL_WINDOW_WIDTH 17
#definePASSWORD_HELP_WINDOW_X GERMAN_OR(1, 3)The password level menu's explanation window ("The data stored in your password depends on which level you select:"), in tiles.
#definePASSWORD_HELP_WINDOW_WIDTH GERMAN_OR(28, 25)
#defineTRANSFER_METHOD_WINDOW_X BY_LANGUAGE(9, 6, 6, 4, 5, 5)The transfer method menu (mnIconMenuChooseSendOption, SEND_OPTION_TRANSFER_METHOD): its heading window ("Transfer Method"), the heading's x in it in pixels, and the help window.
#defineTRANSFER_METHOD_WINDOW_WIDTH BY_LANGUAGE(13, 18, 18, 21, 20, 20)
#defineTRANSFER_METHOD_LABEL_X JAPANESE_OR(0, 2)The x of "Transfer Method" in its heading window, in pixels.
#defineTRANSFER_HELP_WINDOW_X 1
#defineTRANSFER_HELP_WINDOW_WIDTH 28
#defineSHOP_COMMAND_LABEL_WIDTH BY_LANGUAGE(6, 7, 8, 7, 7, 7)The width inside the border of the name window under the shop's commands and the Sanctum's services.
#defineSANCTUM_SERVICE_LABEL_WIDTH JAPANESE_OR(8, 10)The width of the Sanctum's service label window, in tiles.
#defineBATTLE_MENU_MESSAGE_CAPACITY JAPANESE_OR(32, 52)The battle menus' message buffers, in halfwords, and the copier that fills them: the Japanese edition decodes the message (mnMessageDecodeRaw), the others copy its text (mnMessageCopyExpanded).
#defineBATTLE_MENU_MESSAGE_COPY
#defineLIST_PAGE_ARROW_VRAMThe battle lists' two page arrow tiles in VRAM, which mnPageArrowsDraw draws each tick (LIST_TILE_PAGES_LEFT and LIST_TILE_PAGES_RIGHT).
#defineCOMMAND_ROW_CANCELLED -1What mnBattleCommandRowRun returns besides the command icon chosen.
#defineCOMMAND_ROW_STATUS -2L or R in a party member's row: the party's Status screens.
#defineBATTLE_OK 0x80ABILITY_DEFINITION.flags: usable in battle
#defineSAVE_SCAN_ALL_CLEARED 100What mnSaveScanFileSummaries adds to its count of files when every file is cleared (its sendFlag set by saving at the game's end).
#defineDJINN_MENU_ARROW_TILE 808The two BG tiles of the Djinn menu's arrow: DJINN_MENU_ARROW_TILE blinks, the one after it stays.
#defineDJINN_MENU_ARROW_VRAM

Enumerations

NameDescription
enumanonymous enum { LIST_TILE_SUMMON_ELEMENT, LIST_TILE_PAGES_LEFT, LIST_TILE_PA … }Tiles the battle lists draw over their window's top edge beside the page numbers (PAGE_NUMBER_TILE): the page arrows, and the summon list's element icon.
enumCOMMAND_ROW_MODE { COMMAND_ROW_PARTY, COMMAND_ROW_MEMBER }The two battle command rows mnBattleCommandRowRun runs.
enumBATTLE_TARGET_HINT { TARGET_HINT_NONE, TARGET_HINT_HP, TARGET_HINT_PP, TARGET_HIN … }What mnBattleTargetRunSelection shows on a party member for the action being aimed (mnBattleClassifyEntryKind), and which party member it starts on.
enumBATTLE_ITEM_USE { BATTLE_ITEM_USABLE, BATTLE_ITEM_NO_EFFECT, BATTLE_ITEM_NOT_I … }Whether a party member can use an item in battle (mnItemCheckBattleUse).

Functions

NameDescription
voidmnWindowSpriteAppendToList (WINDOW_SPR_LIST *list, WINDOW_SPR *node)The menu object calls these window functions with no prototype in scope, so their arguments take the old promotions (window/window.h lists them); a current GCC, which refuses implicit declarations, gets them here.
MESSAGE *mnMessageStart (WINDOW *window, Sint32 entry, Sint32 x, Sint32 y, Uint16 *spacing, Sint32 flags)Starts a free message typing the decoded text that begins at entry into window, with the pen at pixel (x, y). spacing gives each of four lines an extra gap between characters, in 1/256 pixels (or none for NULL), and is copied, so the caller's array need not outlive the call; flags is kept with the message (nonzero keeps the window's size from page to page).
voidmnTextDrawWideStringInWindow (Sint16 *text, WINDOW *window, Sint32 x, Sint32 y)Draws a zero-terminated string of 16-bit character codes into a window's tilemap at tile (x, y) of its interior, one tile per character, skipping control codes; a NULL text draws the decoded text in WIN_STATE.textBuf.
voidmnWindowPutGlyph ( WINDOW *window, Uint32 tile, Uint32 x, Uint32 y, Sint32 mode)Puts a character into a window's tilemap as a tile at tile (x, y) of its interior.
voidmnTextDrawPrefixedNumberAtOffset (Sint32 value, const WINDOW *window, Sint32 offsetX, Sint32 offsetY, Sint32 variant)Draws a four-digit number after a two-tile label as tiles in a window at pixel (offsetX, offsetY) of its interior: the HP label (WINDOW_TILE_HP_LABEL and WINDOW_TILE_HP_LABEL_END) for variant 0, the party status window's HP; the PP label (WINDOW_TILE_PP_LABEL and WINDOW_TILE_PP_LABEL_END) for variant 1, its PP.

Variables

NameDescription
extern const Uint8DjinnMenuBlinkTile [32]The Djinn menu's blinking arrow (djinn_blink.list.tsv), and where each element's standby count sits in the party status window (icon_menu_tables.c).
extern const Uint8DjinnMenuElementXOffsets [4]Where each element's standby Djinn count sits in the party status window's Djinn column, a two-by-two grid of tiles: it blinks while the Djinni under the Djinn menu's cursor is of that element, on standby and ready to summon.
extern const Uint8DjinnMenuElementYOffsets [4]Each element's icon row in the Djinn menu, in tiles.

Description

What every part of the menu object shares: its includes, edition values, macros and the link turn state. screens.c includes it before the parts, and each part includes it too, so that a part read on its own still resolves.

Macros in detail

DJINN_PREVIEW_VITALS_X

#define DJINN_PREVIEW_VITALS_X JAPANESE_OR(4, 5)

Edition-specific text and window layout values: places and widths in tiles, except where a note says pixels. The column of the old HP and PP in the Djinni preview.

Referenced by mnBattleDjinnMenuShowChangePreview().

Definition at line 64 of file screens_internal.h.

NUMBER_TEXT_FOUR_PLACES

#define NUMBER_TEXT_FOUR_PLACES 7

Where a widened number's last four characters start, room for 9999, and its last three, room for 999 (the Djinni preview's numberText).

Referenced by mnBattleDjinnMenuShowChangePreview().

Definition at line 68 of file screens_internal.h.

NUMBER_TEXT_THREE_PLACES

#define NUMBER_TEXT_THREE_PLACES 8

Referenced by mnBattleDjinnMenuShowChangePreview().

Definition at line 69 of file screens_internal.h.

DJINN_PREVIEW_STAT_DIGIT_OFFSET

#define DJINN_PREVIEW_STAT_DIGIT_OFFSET

Where the Djinni preview's old stats start in their number text, and their column.

Referenced by mnBattleDjinnMenuShowChangePreview().

Definition at line 73 of file screens_internal.h.

DJINN_PREVIEW_STAT_X

#define DJINN_PREVIEW_STAT_X JAPANESE_OR(4, 6)

Referenced by mnBattleDjinnMenuShowChangePreview().

Definition at line 75 of file screens_internal.h.

DJINN_PREVIEW_HELP_X

#define DJINN_PREVIEW_HELP_X JAPANESE_OR(40, 24)

The x of the preview's ":Psynergy Gained" prompt, in pixels.

Referenced by mnBattleDjinnMenuShowChangePreview().

Definition at line 78 of file screens_internal.h.

PSYNERGY_COST_FIRST_TILE

#define PSYNERGY_COST_FIRST_TILE WINDOW_TILE_PP_LABEL

The two UI tiles of the PP label before a Psynergy's cost in the lists.

Referenced by mnBattleCollectPartyCommands(), mnBattleDjinnMenuShowChangePreview() and mnBattlePsynergyMenuRun().

Definition at line 81 of file screens_internal.h.

PSYNERGY_COST_SECOND_TILE

#define PSYNERGY_COST_SECOND_TILE WINDOW_TILE_PP_LABEL_END

Referenced by mnBattleCollectPartyCommands(), mnBattleDjinnMenuShowChangePreview() and mnBattlePsynergyMenuRun().

Definition at line 82 of file screens_internal.h.

OWNER_STATUS_LEVEL_X

#define OWNER_STATUS_LEVEL_X FRENCH_OR(51, 56)

The Status screen's level label, after the party member's name, in pixels.

Definition at line 85 of file screens_internal.h.

SUMMON_MENU_WINDOW_X

#define SUMMON_MENU_WINDOW_X JAPANESE_OR(16, 13)

The summon list's window.

Referenced by mnBattleSummonMenuRun().

Definition at line 88 of file screens_internal.h.

SUMMON_MENU_WINDOW_WIDTH

#define SUMMON_MENU_WINDOW_WIDTH JAPANESE_OR(14, 17)

Referenced by mnBattleSummonMenuRun().

Definition at line 89 of file screens_internal.h.

BATTLE_PORTRAIT_X

#define BATTLE_PORTRAIT_X JAPANESE_OR(4, 0)

While a party member's commands are chosen (mnBattleCollectPartyCommands): the screen x of the party member's portrait sprite, in pixels.

Referenced by mnBattleCollectPartyCommands().

Definition at line 93 of file screens_internal.h.

BATTLE_COMMAND_NAME_X

#define BATTLE_COMMAND_NAME_X FRENCH_OR(14, 16)

Where "Attack" is written in its window once chosen, in pixels.

Referenced by mnBattleCollectPartyCommands().

Definition at line 96 of file screens_internal.h.

BATTLE_SUMMON_ICON_X

#define BATTLE_SUMMON_ICON_X JAPANESE_OR(104, 80)

The screen x of the chosen command's icon, in pixels, while the summon list is open.

Referenced by mnBattleCollectPartyCommands().

Definition at line 100 of file screens_internal.h.

BATTLE_SUMMON_WINDOW_WIDTH

#define BATTLE_SUMMON_WINDOW_WIDTH JAPANESE_OR(14, 17)

The chosen summon's window, in tiles.

Referenced by mnBattleCollectPartyCommands().

Definition at line 103 of file screens_internal.h.

BATTLE_SUMMON_ELEMENT_COLUMN

#define BATTLE_SUMMON_ELEMENT_COLUMN JAPANESE_OR(10, 13)

The tile columns of a summon's first Djinn cost in the battle's summon command: its element icon, then its count.

Referenced by mnBattleCollectPartyCommands().

Definition at line 107 of file screens_internal.h.

BATTLE_SUMMON_COST_COLUMN

#define BATTLE_SUMMON_COST_COLUMN JAPANESE_OR(11, 14)

Referenced by mnBattleCollectPartyCommands().

Definition at line 108 of file screens_internal.h.

#define MENU_WINDOW_FLAGS (WINDOW_FLAG_INSTANT | WINDOW_FLAG_UNREAD)

How the menus open their windows: at once, with no zoom.

Referenced by mnBattleCollectPartyCommands(), mnBattleCommandRowRun(), mnBattleDjinnMenuRun(), mnBattleDjinnMenuShowChangePreview(), mnBattleItemMenuRun(), mnBattlePsynergyMenuRun(), mnBattleStatusScreenRun(), mnBattleSummonMenuRun(), mnBattleTargetRunSelection(), mnLinkCreateCountdownLabelWindow() and mnPartyStatusCreateWindow().

Definition at line 111 of file screens_internal.h.

COMMAND_ROW_ICON_TILE

#define COMMAND_ROW_ICON_TILE (BG_CHAR_SIZE / (8 * 8))

BG1's tile number of the command row's first icon tile.

Referenced by mnBattleCommandRowRun().

Definition at line 114 of file screens_internal.h.

COMMAND_ROW_TOP

#define COMMAND_ROW_TOP 17

The command window's top tile row: it runs along the bottom three rows.

Referenced by mnBattleCommandRowRun() and mnGraphicsInstallBg1VCountHandler().

Definition at line 116 of file screens_internal.h.

COMMAND_ICON_BYTES

#define COMMAND_ICON_BYTES (32 * 32)

A command icon's pixels: 32x32 at a byte a pixel.

Referenced by mnBattleCollectPartyCommands(), mnBattleCommandRowLoadIconTiles(), mnBattleCommandRowRun(), mnCommandIconLoad() and mnCommandIconLoadIntoSlot().

Definition at line 118 of file screens_internal.h.

#define MENU_PLACE_CURSOR(position, window, row, margin, sprite)

Places a battle menu's pointing hand at its list window's selected row: position takes the hand's spot, margin pixels left of the window and 20 below the row's top, and sprite becomes a plain 16x16 sprite, its position still to come.

Referenced by mnBattleDjinnMenuRun(), mnBattleItemMenuRun(), mnBattlePsynergyMenuRun() and mnBattleSummonMenuRun().

Definition at line 124 of file screens_internal.h.

BATTLE_ITEM_WINDOW_WIDTH

#define BATTLE_ITEM_WINDOW_WIDTH 16

#define BATTLE_ITEM_WINDOW_WIDTH 15

Referenced by mnBattleCollectPartyCommands().

Definition at lines 136 and 138 of file screens_internal.h.

PASSWORD_LEVEL_WINDOW_X

#define PASSWORD_LEVEL_WINDOW_X 7

#define PASSWORD_LEVEL_WINDOW_X 5

#define PASSWORD_LEVEL_WINDOW_X 9

Referenced by mnIconMenuChooseSendOption().

Definition at lines 146, 149, 152 and 155 of file screens_internal.h.

PASSWORD_LEVEL_WINDOW_WIDTH

#define PASSWORD_LEVEL_WINDOW_WIDTH 17

#define PASSWORD_LEVEL_WINDOW_WIDTH 21

#define PASSWORD_LEVEL_WINDOW_WIDTH 22

#define PASSWORD_LEVEL_WINDOW_WIDTH 13

Referenced by mnIconMenuChooseSendOption().

Definition at lines 147, 150, 153 and 156 of file screens_internal.h.

PASSWORD_HELP_WINDOW_X

#define PASSWORD_HELP_WINDOW_X GERMAN_OR(1, 3)

The password level menu's explanation window ("The data stored in your password depends on which level you select:"), in tiles.

Referenced by mnIconMenuChooseSendOption().

Definition at line 161 of file screens_internal.h.

PASSWORD_HELP_WINDOW_WIDTH

#define PASSWORD_HELP_WINDOW_WIDTH GERMAN_OR(28, 25)

Referenced by mnIconMenuChooseSendOption().

Definition at line 162 of file screens_internal.h.

TRANSFER_METHOD_WINDOW_X

#define TRANSFER_METHOD_WINDOW_X BY_LANGUAGE(9, 6, 6, 4, 5, 5)

The transfer method menu (mnIconMenuChooseSendOption, SEND_OPTION_TRANSFER_METHOD): its heading window ("Transfer Method"), the heading's x in it in pixels, and the help window.

Referenced by mnIconMenuChooseSendOption().

Definition at line 167 of file screens_internal.h.

TRANSFER_METHOD_WINDOW_WIDTH

#define TRANSFER_METHOD_WINDOW_WIDTH BY_LANGUAGE(13, 18, 18, 21, 20, 20)

Referenced by mnIconMenuChooseSendOption().

Definition at line 168 of file screens_internal.h.

TRANSFER_METHOD_LABEL_X

#define TRANSFER_METHOD_LABEL_X JAPANESE_OR(0, 2)

The x of "Transfer Method" in its heading window, in pixels.

Referenced by mnIconMenuChooseSendOption().

Definition at line 171 of file screens_internal.h.

TRANSFER_HELP_WINDOW_X

#define TRANSFER_HELP_WINDOW_X 1

#define TRANSFER_HELP_WINDOW_X 0

#define TRANSFER_HELP_WINDOW_X 5

Referenced by mnIconMenuChooseSendOption().

Definition at lines 176, 179 and 182 of file screens_internal.h.

TRANSFER_HELP_WINDOW_WIDTH

#define TRANSFER_HELP_WINDOW_WIDTH 28

#define TRANSFER_HELP_WINDOW_WIDTH 30

#define TRANSFER_HELP_WINDOW_WIDTH 21

Referenced by mnIconMenuChooseSendOption().

Definition at lines 177, 180 and 183 of file screens_internal.h.

SHOP_COMMAND_LABEL_WIDTH

#define SHOP_COMMAND_LABEL_WIDTH BY_LANGUAGE(6, 7, 8, 7, 7, 7)

The width inside the border of the name window under the shop's commands and the Sanctum's services.

Referenced by mnSelectShopCommand().

Definition at line 188 of file screens_internal.h.

SANCTUM_SERVICE_LABEL_WIDTH

#define SANCTUM_SERVICE_LABEL_WIDTH JAPANESE_OR(8, 10)

The width of the Sanctum's service label window, in tiles.

Referenced by mnSelectSanctumService().

Definition at line 191 of file screens_internal.h.

BATTLE_MENU_MESSAGE_CAPACITY

#define BATTLE_MENU_MESSAGE_CAPACITY JAPANESE_OR(32, 52)

The battle menus' message buffers, in halfwords, and the copier that fills them: the Japanese edition decodes the message (mnMessageDecodeRaw), the others copy its text (mnMessageCopyExpanded).

Referenced by mnBattleCollectPartyCommands(), mnBattleDjinnMenuRun(), mnBattleItemMenuRun(), mnBattlePsynergyMenuRun(), mnBattleRefuseFlee() and mnBattleSummonMenuRun().

Definition at line 196 of file screens_internal.h.

BATTLE_MENU_MESSAGE_COPY

#define BATTLE_MENU_MESSAGE_COPY

Referenced by mnBattleCollectPartyCommands(), mnBattleDjinnMenuRun(), mnBattleItemMenuRun(), mnBattlePsynergyMenuRun(), mnBattleRefuseFlee() and mnBattleSummonMenuRun().

Definition at line 197 of file screens_internal.h.

LIST_PAGE_ARROW_VRAM

#define LIST_PAGE_ARROW_VRAM

The battle lists' two page arrow tiles in VRAM, which mnPageArrowsDraw draws each tick (LIST_TILE_PAGES_LEFT and LIST_TILE_PAGES_RIGHT).

Referenced by mnBattleCollectPartyCommands() and mnBattleMenuUpdate().

Definition at line 215 of file screens_internal.h.

COMMAND_ROW_CANCELLED

#define COMMAND_ROW_CANCELLED -1

What mnBattleCommandRowRun returns besides the command icon chosen.

B, in a party member's row

Referenced by mnBattleCollectPartyCommands() and mnBattleCommandRowRun().

Definition at line 220 of file screens_internal.h.

COMMAND_ROW_STATUS

#define COMMAND_ROW_STATUS -2

L or R in a party member's row: the party's Status screens.

Referenced by mnBattleCollectPartyCommands() and mnBattleCommandRowRun().

Definition at line 222 of file screens_internal.h.

BATTLE_OK

#define BATTLE_OK 0x80

ABILITY_DEFINITION.flags: usable in battle

Referenced by mnBattleCollectPartyCommands().

Definition at line 254 of file screens_internal.h.

SAVE_SCAN_ALL_CLEARED

#define SAVE_SCAN_ALL_CLEARED 100

What mnSaveScanFileSummaries adds to its count of files when every file is cleared (its sendFlag set by saving at the game's end).

Referenced by mnFileListSelectAction() and mnSaveScanFileSummaries().

Definition at line 294 of file screens_internal.h.

DJINN_MENU_ARROW_TILE

#define DJINN_MENU_ARROW_TILE 808

The two BG tiles of the Djinn menu's arrow: DJINN_MENU_ARROW_TILE blinks, the one after it stays.

Referenced by mnBattleDjinnMenuShowChangePreview().

Definition at line 349 of file screens_internal.h.

DJINN_MENU_ARROW_VRAM

#define DJINN_MENU_ARROW_VRAM

Referenced by mnBattleDjinnMenuRun().

Definition at line 350 of file screens_internal.h.

Enumerations in detail

anonymous enum

enum { LIST_TILE_SUMMON_ELEMENT, LIST_TILE_PAGES_LEFT, LIST_TILE_PAGES_RIGHT }

Tiles the battle lists draw over their window's top edge beside the page numbers (PAGE_NUMBER_TILE): the page arrows, and the summon list's element icon.

EnumeratorValueDescription
LIST_TILE_SUMMON_ELEMENTBG_TILE_PALETTE(BASIC_COLORS_PALETTE) | 1Element icon: + ELEMENT, in BASIC_COLORS_PALETTE.
LIST_TILE_PAGES_LEFTWINDOW_TILE(820)Left arrow, tile 820, which mnPageArrowsDraw slides.
LIST_TILE_PAGES_RIGHTWINDOW_TILE(821)Right arrow, tile 821

Definition at line 203 of file screens_internal.h.

COMMAND_ROW_MODE

enum COMMAND_ROW_MODE

The two battle command rows mnBattleCommandRowRun runs.

EnumeratorValueDescription
COMMAND_ROW_PARTY0the start of a turn: Fight, Flee and Status
COMMAND_ROW_MEMBER1a party member's commands; any mode but 0 is this row

Definition at line 225 of file screens_internal.h.

BATTLE_TARGET_HINT

enum BATTLE_TARGET_HINT

What mnBattleTargetRunSelection shows on a party member for the action being aimed (mnBattleClassifyEntryKind), and which party member it starts on.

EnumeratorValueDescription
TARGET_HINT_NONE0
TARGET_HINT_HP1Heals HP: the party member's HP.
TARGET_HINT_PP2Restores PP: the party member's PP.
TARGET_HINT_CURE_POISON3Cures poison (ABILITY_EFFECT_CURE_POISON): starts on a poisoned party member.
TARGET_HINT_RESTORE4Cures what Restore cures (ABILITY_EFFECT_RESTORE): starts on a party member who has one of those statuses, and lists them.
TARGET_HINT_REVIVE5Revives (gmBattleIsReviveEffectStub): starts on a downed party member.
TARGET_HINT_CURE_ALL6Cures Restore's statuses, poison and the evil spirit, as Tonic does (ABILITY_EFFECT_CURE_ALL).
TARGET_HINT_SET_DJINNI7Setting a Djinni: "Set Djinni".

Definition at line 234 of file screens_internal.h.

BATTLE_ITEM_USE

enum BATTLE_ITEM_USE

Whether a party member can use an item in battle (mnItemCheckBattleUse).

EnumeratorValueDescription
BATTLE_ITEM_USABLE0
BATTLE_ITEM_NO_EFFECT1"Using this will have no effect.": no item, one that only teaches Psynergy while equipped, one with no action, or equipment the party member cannot equip.
BATTLE_ITEM_NOT_IN_BATTLE2"Cannot be used during battle.": its action lacks ABILITY_USABLE_IN_BATTLE.

Definition at line 257 of file screens_internal.h.

Variables in detail

DjinnMenuBlinkTile

extern const Uint8 DjinnMenuBlinkTile[32]

The Djinn menu's blinking arrow (djinn_blink.list.tsv), and where each element's standby count sits in the party status window (icon_menu_tables.c). The arrow tile mnBattleDjinnMenuRun copies to the two BG tiles from DJINN_MENU_ARROW_TILE each tick: the first blinks (four ticks shown, four blank), the second stays.

Referenced by mnBattleDjinnMenuRun().

Definition at line 346 of file screens_internal.h.