Skip to Content
The Alchemy Project

src/menu/menu_internal.h

What every part of the menu object shares: its includes and the declarations its parts disagreed on. More…

Included by menu.c.

Structures

NameDescription
structITEM_MENU_STATEThe item menu's state, RamHeapSlots->menuState (HEAP_SLOT_MENU): its windows, the party figures, the items listed and the two choices a command makes.
structSTATUS_SCREEN_STATEThe state of the party member chooser and the Status menu (HEAP_SLOT_MENU), which each takes as it opens and frees before it returns.
structPSYNERGY_MENU_STATEThe Psynergy menu's state (HEAP_SLOT_MENU): its windows, icons and cursors, the party members' tabs and the Psynergy listed for the chosen party member.

Macros

NameDescription
#defineTEXT_COLOR_NORMAL TEXT_COLOR_WHITEthe window text's default colour
#defineICON_SHOWN WINDOW_SPRITE_MOTION_STILLWINDOW_SPR.motion as the menu sets it: shown, or hidden but kept.
#defineICON_HIDDEN WINDOW_SPRITE_MOTION_HIDDEN
#defineMENU_ENTRY_ICONS 32The menus' list entries, each with an icon sprite.
#defineMENU_ICON_HIDDEN_X (DISPLAY_WIDTH + 8)Where an entry icon waits, just past the screen's bottom right corner, until a screen places it.
#defineMENU_ICON_HIDDEN_Y (DISPLAY_HEIGHT + 8)
#defineMENU_FIGURE_HIDDEN_Y 200The y a party or Djinn figure is parked at below the screen, where the projected placement does not draw it.
#defineMENU_SAVED_TILE_BYTES 8192The bytes of BG character block 1 the Item menu (in every edition but the Japanese) and the script's item picker (in the German, Spanish, French and Italian editions) keep aside and fill with a pattern while they are open.
#defineDJINN_BACKDROP_BORDER_TILE 150The tile of BG character block 1 the Djinn backdrop's border tile is copied to (menu_djinn.c); the preview screens blink it (menu_djinn_preview.c).
#defineDJINN_BACKDROP_BORDER_VRAM
#defineDJINN_MEMBER (entry)A Djinn list entry's party member, element and index, shifted down.
#defineDJINN_ENTRY_ELEMENT_OF (entry)
#defineDJINN_NUMBER (entry) ((entry) & DJINN_ENTRY_INDEX)
#defineMENU_FIGURE_DEPTH (OAM_DEPTH_WINDOW + 10)The draw slot of the party and Djinn figures the menus place, among the windows' sprites.
#defineMENU_ITEM_GRID_COLUMNS 5Inventory icons occupy five columns in the fifteen-slot list.
#definePAGE_NUMBERS_RIGHT 15The item and Psynergy lists' page numbers end, with their right arrow, at tile 15 of the list window's top border.
#defineCHANGE_HELP_X JAPANESE_OR(16, 0)The x of the item and Psynergy lists' help line, "L R: Change Char" (MsgChangeCharacterHelp), on the list window's bottom row: the Japanese line starts further in.
#defineMENU_DRAW_STATUS_LABELStatus labels use the Latin font's pixel positions or the Japanese tile grid.

Enumerations

NameDescription
enumDJINN_PREVIEW_MODE { DJINN_PREVIEW_ADD_AND_SET, DJINN_PREVIEW_UNSET, DJINN_PREVIE … }The Djinn change mnDjinnMenuDrawStatPreview previews, with the Djinn in the state's sides removePairSlot and addPairSlot.
enumDJINN_MENU_RESULT { DJINN_RESULT_START, DJINN_RESULT_BACK, DJINN_RESULT_CHOSEN, … }What the Djinn menu's choosers return.
enumDJINN_TUTORIAL_STEP { DJINN_TUTORIAL_OFF, DJINN_TUTORIAL_GIVE, DJINN_TUTORIAL_GIVE … }DJINN_MENU_BACKDROP.tutorialStep: where the Djinn tutorial is.
enumDJINNI_STATE { DJINNI_STATE_STANDBY, DJINNI_STATE_SET, DJINNI_STATE_RECOVER … }What mnDjinnMenuGetEntryState says of a Djinni in the list.
enumDJINN_SELECT_MODE { DJINN_SELECT_DJINNI, DJINN_SELECT_ACTION }mnDjinnMenuSelectDjinn's two choosers.
enumDJINN_COMPARE_OPERATION { DJINN_COMPARE_TRADE, DJINN_COMPARE_GIVE, DJINN_COMPARE_STAND … }The preview loop's four operations, as its confirmation text describes them (mnDjinnMenuRunPreview's mode).
enumITEM_USE_RESULT { ITEM_USE_RESULT_HP_FULLY_RECOVERED, ITEM_USE_RESULT_HP_RECOV … }The result of using an item or Psynergy from the menu: its message, counted from MsgItemUseResult (mnAbilityApplyToTargets).
enumSTAT_SCREEN_PAGE { STATUS_SCREEN_PAGE_STATUS, STATUS_SCREEN_PAGE_CHOOSER }STATUS_SCREEN_STATE.page: which screen the party member row belongs to.
enumPSYNERGY_LIST_MODE { PSYNERGY_LIST_ALL, PSYNERGY_LIST_SHORTCUTS, PSYNERGY_LIST_FI … }Which Psynergy mnPsynergyMenuCollectActions lists.
enumITEM_USE_MODE { ITEM_USE_MODE_UNUSABLE, ITEM_USE_MODE_FROM_FIELD, ITEM_USE_M … }How the item menu can use an item (mnItemClassifyUseMode).
enumUNIT_STAT { CHARACTER_DOWN, CHARACTER_POISON, CHARACTER_VENOM, CHARACTER … }The statuses the Status screens show, as mnStatusScreenListStatuses fills them: one byte each, nonzero while the party member has it.
enumDJINN_COMPARE_PAGE { DJINN_COMPARE_PAGE_GIVER, DJINN_COMPARE_PAGE_RECEIVER, DJINN … }mnDjinnMenuRunPreview's pages for a give or trade, which R cycles; the first two also index its per-member page counts.

Functions

NameDescription
voidmnPlaceEntryIconInGrid (WINDOW_SPR *icon, Sint32 index, Sint32 originX, Sint32 originY, Sint32 columns)Placing the lists' entry icons in their grids, and a window's bounds, which several screens share.
voidmnPsynergyMenuPlaceEntryIcon ( WINDOW_SPR **icons, Sint32 index, Sint32 x, Sint32 y, Sint32 columns)Places the icon in *slot at cell index of a grid of 16x16 cells, columns wide, from (originX, originY), and shows it; an index past the last entry is taken as 0.
voidmnItemMenuPlaceIcon ( WINDOW_SPR **icons, Sint32 index, Sint32 x, Sint32 y, Sint32 columns)Places the icon in *slot at slotIndex in a columns-wide grid of 24x16 cells from (originX, originY), and shows it; a slotIndex past INVENTORY_SLOTS is taken as 0.
voidmnWindowSetBounds ( WINDOW *window, Sint32 x, Sint32 y, Sint32 width, Sint32 height)Moves and resizes a window, in tiles.
voidmnStatusPanelDrawHpPp (UNIT *unit, Sint32 window)The menu object's functions its parts call before their definitions, or with declarations of their own that disagree.
voidmnTextDrawStatComparison (const UNIT *after, const UNIT *before, Sint32 window)Writes Attack, Defense and Agility into a status window as they are now (before), and beside each one that changes its new value (after) with an up or down arrow: the equipment preview.
Sint32gmInventoryEquipStub (Sint32 unitId, Sint32 slot)What several parts call, declared once here for all of them.
voidmnMarkChosenMember (Sint32 unused, Sint32 index, Sint32 count)Sets the page arrows for index and sets the chosen party member's figure apart from the others on its page of four: its y MENU_MEMBER_CHOSEN_Y, theirs MENU_MEMBER_Y.
Sint32mnMoveGridCursor (Sint32 *selection, Sint32 count, Sint32 columns)Moves the selection *cursor among count entries in rows of columns: left and right step and wrap, up and down move a row, the last row ending at the last entry.
Sint32fdSpriteStartAnimationStub (void *object, Sint32 argument)Starts an animation on a sprite, unless the sprite plays it already.
Sint32mnStatusScreenListStatuses (Uint8 *ailments, Sint32 requested, Sint32 memberId)Fills ailments (UNIT_STAT) with party member memberId's statuses, Down only when requested is 1, and returns how many they have.
voidmnItemMenuDrawEquipment (Sint32 window, Sint32 memberId, Sint32 mode)Writes the four equipment slot labels ("Weapon", "Head", "Shield" and "Chest", one a 16-pixel row) and the names of the items worn in them into window; mode 0 also shows their icons at the right.
Sint32mnAbilityApplyToTargets (Sint32 abilityId, Sint32 userId, Sint32 targetId, Sint32 plainPower)Applies the healing, curing, revival or lasting stat rise of ability abilityId, used by party member userId, to targetId, or to the whole party when its range is ABILITY_RANGE_ALL.
voidmnAbilityPlayUseSound (Sint32 abilityId)Plays the sound of a Psynergy or item used from the menu; unlike in battle, no animation is drawn and nothing waits.
voidmnFreeArrows (void)Frees the VRAM cache slots of the two arrows the menu loaded (mnLoadStatArrows or mnLoadDjinnArrows).
voidfdRenderApplyProjectedPlacementAtDepthStub (SPR *object, SPR_PLACEMENT *pos, SPR_SCALE *scale, Sint32 facing, Sint32 depth)Places a sprite through the field's projected placement, facing as an actor faces, into draw slot depth.
voidmnTextDrawNumberRightAligned (Sint32 number, Sint32 window, Sint32 x, Sint32 y)Draws a number right-aligned in a field ending at pixel x of a window: the HP and PP figures outside Japan.

Variables

NameDescription
extern Uint8MenuBackdropBorderTile []One 4-bit tile (class_change_arrow.4bpp) the Djinn menus copy into the backdrop's frame; the Djinn preview blinks it, drawing it and a fill of the window background in turn every four ticks.
extern const Uint8StatusPanelPpRowString []
extern const Uint8StatusPanelHpRowString []
extern const Uint8StatusPanelHpString []The HP label outside Japan, in each language's form ("KP" in German, "PV" in Spanish and French, "PS" in Italian).
extern const Uint8StatusPanelPpString []The PP label outside Japan, which every language writes "PP".
extern const Uint8StatusPanelSlashString []The slash between a current and maximum figure on the status panel, outside Japan.

Description

What every part of the menu object shares: its includes and the declarations its parts disagreed on. menu.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

TEXT_COLOR_NORMAL

#define TEXT_COLOR_NORMAL TEXT_COLOR_WHITE

the window text's default colour

Referenced by mnDjinnMenuDrawEntry(), mnDjinnMenuDrawPage(), mnDjinnMenuDrawStatPreview(), mnItemMenuDrawCommands(), mnPsynergyMenuDrawPage(), mnStatusPanelDrawHpPp(), mnStatusScreenDrawStatusPage(), mnStatusScreenDrawTopRows() and mnTextSetNormalColor().

Definition at line 49 of file menu_internal.h.

ICON_SHOWN

#define ICON_SHOWN WINDOW_SPRITE_MOTION_STILL

WINDOW_SPR.motion as the menu sets it: shown, or hidden but kept.

Referenced by mnDjinnMenuRunPreview(), mnDjinnMenuRunScreen(), mnDjinnMenuSelectDjinn(), mnIconCreateDjinnArrow(), mnIconCreateStatChangeArrow(), mnIconLoadSlots(), mnIconShow(), mnItemMenuDrawItemHead(), mnItemMenuRunCommands(), mnItemMenuRunMemberSelection(), mnItemMenuShowDetails(), mnItemMenuShowMessage(), mnPsynergyMenuRunList(), mnPsynergyMenuSelectPartySlot(), mnStatusScreenDrawStatusPage(), mnStatusScreenDrawTopRows(), mnStatusScreenSelectMember() and mnStatusScreenShowDjinnList().

Definition at line 52 of file menu_internal.h.

ICON_HIDDEN

#define ICON_HIDDEN WINDOW_SPRITE_MOTION_HIDDEN

Referenced by mnCursorCreate(), mnDjinnMenuRunPreview(), mnDjinnMenuRunScreen(), mnDjinnMenuShowMemberStatus(), mnHideEmptyEntryIcons(), mnItemMenuClose(), mnItemMenuHideAllIcons(), mnItemMenuHideTradedIcons(), mnItemMenuRunCommands(), mnItemMenuRunList(), mnItemMenuRunMemberSelection(), mnItemMenuSelectGiveQuantity(), mnItemMenuSelectTarget(), mnItemMenuShowDetails(), mnItemMenuShowMessage(), mnOpenBackdropScreen(), mnPsynergyMenuRunList(), mnPsynergyMenuSelectMember(), mnPsynergyMenuSelectPartySlot(), mnPsynergyMenuSelectTarget(), mnStatusScreenRunPartyRow() and mnStatusScreenShowDjinnList().

Definition at line 53 of file menu_internal.h.

MENU_ENTRY_ICONS

#define MENU_ENTRY_ICONS 32

The menus' list entries, each with an icon sprite.

Referenced by mnHideEmptyEntryIcons(), mnHideEntryIcons(), mnItemMenuCollectItems(), mnItemMenuHideAllIcons(), mnItemMenuHideTradedIcons(), mnPlaceEntryIconInGrid(), mnPlaceEntryIconsInGrid(), mnPsynergyMenuPlaceEntryIcon(), mnPsynergyMenuPlaceEntryIcons(), mnSetPageIcons() and mnSpawnIconEntries().

Definition at line 56 of file menu_internal.h.

#define MENU_ICON_HIDDEN_X (DISPLAY_WIDTH + 8)

Where an entry icon waits, just past the screen's bottom right corner, until a screen places it.

Referenced by mnHideEntryIcons() and mnSpawnIconEntries().

Definition at line 59 of file menu_internal.h.

#define MENU_ICON_HIDDEN_Y (DISPLAY_HEIGHT + 8)

Referenced by mnHideEntryIcons() and mnSpawnIconEntries().

Definition at line 60 of file menu_internal.h.

#define MENU_FIGURE_HIDDEN_Y 200

The y a party or Djinn figure is parked at below the screen, where the projected placement does not draw it.

Referenced by mnDjinnFiguresInitTopRow(), mnDjinnMenuRunPreview(), mnDjinnMenuRunScreen(), mnDjinnMenuSelectDjinn() and mnDjinnMenuShowMemberStatus().

Definition at line 63 of file menu_internal.h.

#define MENU_SAVED_TILE_BYTES 8192

The bytes of BG character block 1 the Item menu (in every edition but the Japanese) and the script's item picker (in the German, Spanish, French and Italian editions) keep aside and fill with a pattern while they are open.

Referenced by mnItemMenuRun() and mnPsynergyMenuRun().

Definition at line 67 of file menu_internal.h.

DJINN_BACKDROP_BORDER_TILE

#define DJINN_BACKDROP_BORDER_TILE 150

The tile of BG character block 1 the Djinn backdrop's border tile is copied to (menu_djinn.c); the preview screens blink it (menu_djinn_preview.c).

Referenced by mnDjinnMenuDrawStatPreview() and mnDjinnMenuRunPreview().

Definition at line 168 of file menu_internal.h.

DJINN_BACKDROP_BORDER_VRAM

#define DJINN_BACKDROP_BORDER_VRAM

Referenced by mnDjinnMenuRunPreview(), mnDjinnMenuShowMemberStatus() and mnOpenBackdropScreen().

Definition at line 169 of file menu_internal.h.

DJINN_MEMBER

#define DJINN_MEMBER(entry)

A Djinn list entry's party member, element and index, shifted down.

Referenced by mnDjinnMenuGetEntryState() and mnDjinnMenuSelectDjinn().

Definition at line 183 of file menu_internal.h.

DJINN_ENTRY_ELEMENT_OF

#define DJINN_ENTRY_ELEMENT_OF(entry)

Referenced by mnDjinnMenuDrawPage(), mnDjinnMenuGetEntryState() and mnDjinnMenuSelectDjinn().

Definition at line 185 of file menu_internal.h.

DJINN_NUMBER

#define DJINN_NUMBER(entry) ((entry) & DJINN_ENTRY_INDEX)

Referenced by mnDjinnMenuDrawEntry(), mnDjinnMenuGetEntryState() and mnDjinnMenuSelectDjinn().

Definition at line 187 of file menu_internal.h.

#define MENU_FIGURE_DEPTH (OAM_DEPTH_WINDOW + 10)

The draw slot of the party and Djinn figures the menus place, among the windows' sprites.

Referenced by mnDjinnFiguresUpdateTopRow(), mnPlacePartyFigures() and mnUpdatePartyFigures().

Definition at line 530 of file menu_internal.h.

#define MENU_ITEM_GRID_COLUMNS 5

Inventory icons occupy five columns in the fifteen-slot list.

Referenced by mnItemMenuPlaceIcons().

Definition at line 607 of file menu_internal.h.

PAGE_NUMBERS_RIGHT

#define PAGE_NUMBERS_RIGHT 15

The item and Psynergy lists' page numbers end, with their right arrow, at tile 15 of the list window's top border.

Referenced by mnItemMenuDrawListPage() and mnPsynergyMenuDrawPage().

Definition at line 611 of file menu_internal.h.

CHANGE_HELP_X

#define CHANGE_HELP_X JAPANESE_OR(16, 0)

The x of the item and Psynergy lists' help line, "L R: Change Char" (MsgChangeCharacterHelp), on the list window's bottom row: the Japanese line starts further in.

Referenced by mnItemMenuRunList(), mnPsynergyMenuDrawPage() and mnPsynergyMenuRunList().

Definition at line 616 of file menu_internal.h.

#define MENU_DRAW_STATUS_LABEL

Status labels use the Latin font's pixel positions or the Japanese tile grid.

Referenced by mnStatusPanelDraw(), mnStatusScreenDrawStatusPage() and mnStatusScreenDrawTopRows().

Definition at line 631 of file menu_internal.h.

Enumerations in detail

DJINN_PREVIEW_MODE

enum DJINN_PREVIEW_MODE

The Djinn change mnDjinnMenuDrawStatPreview previews, with the Djinn in the state's sides removePairSlot and addPairSlot.

EnumeratorValueDescription
DJINN_PREVIEW_ADD_AND_SET0the other's Djinni is added and set
DJINN_PREVIEW_UNSET1the chosen Djinni is unset
DJINN_PREVIEW_TRADE2trade: own Djinni unset if set; other's added, set if it was
DJINN_PREVIEW_NO_CHANGE3nothing changes; maximum HP and PP shown
DJINN_PREVIEW_ADD4the other's Djinni is added, set if it was

Definition at line 71 of file menu_internal.h.

DJINN_MENU_RESULT

enum DJINN_MENU_RESULT

What the Djinn menu's choosers return.

EnumeratorValueDescription
DJINN_RESULT_START-2Start: the Djinn menu closes.
DJINN_RESULT_BACK-1
DJINN_RESULT_CHOSEN1A on a Djinni.
DJINN_RESULT_CONFIRMED1A on the preview's "Is this OK?".
DJINN_RESULT_SET1
DJINN_RESULT_STANDBY2
DJINN_RESULT_GIVE3
DJINN_RESULT_TRADE4
DJINN_RESULT_SET_NOW5The four commands applied without their
DJINN_RESULT_STANDBY_NOW6preview, which no chooser returns.
DJINN_RESULT_STATUS7L: the party member's status.
DJINN_RESULT_GIVE_NOW8
DJINN_RESULT_TRADE_NOW9
DJINN_RESULT_HELP10Select: the help.

Definition at line 82 of file menu_internal.h.

DJINN_TUTORIAL_STEP

enum DJINN_TUTORIAL_STEP

DJINN_MENU_BACKDROP.tutorialStep: where the Djinn tutorial is. The tutorial plays the menu itself, one scripted press a step, after a wait counted in ticks (mnDjinnMenuSelectDjinn and, on the preview screens, mnDjinnMenuRunPreview).

EnumeratorValueDescription
DJINN_TUTORIAL_OFF0
DJINN_TUTORIAL_GIVE1Giving a Djinni and setting it: "To give your Djinni to someone else, move it like this."
DJINN_TUTORIAL_GIVE_PICK2A on the Djinni.
DJINN_TUTORIAL_GIVE_MOVE3Right, to the next party member.
DJINN_TUTORIAL_GIVE_DROP4A there.
DJINN_TUTORIAL_GIVE_PREVIEW5A on the preview.
DJINN_TUTORIAL_SET6"After choosing who gets the Djinni, you can "set" it."
DJINN_TUTORIAL_SET_SPARE7As DJINN_TUTORIAL_SET; no step leads here.
DJINN_TUTORIAL_SET_PICK8A on the Djinni.
DJINN_TUTORIAL_SET_CHOOSE9A on its own column.
DJINN_TUTORIAL_SET_CHANGES10The preview: "Setting a Djinni changes your attributes and sometimes even your class."
DJINN_TUTORIAL_CLASS_PSYNERGY11The preview: "When your class changes, the Psynergy you can use may also change."
DJINN_TUTORIAL_SET_PREVIEW12A on the preview.
DJINN_TUTORIAL_SET_DONE13B, out of the menu.
DJINN_TUTORIAL_POWERS14The Djinn's powers: a wait, then "Each Djinni has different, unique powers." and the two lines after it.
DJINN_TUTORIAL_POWERS_TALK15
DJINN_TUTORIAL_POWERS_WAIT16
DJINN_TUTORIAL_POWERS_WAIT_MORE17
DJINN_TUTORIAL_POWERS_PICK18A on the Djinni.
DJINN_TUTORIAL_POWERS_PICK_SPARE20As DJINN_TUTORIAL_POWERS_PICK; no step leads here.
DJINN_TUTORIAL_POWERS_MOVE21Left.
DJINN_TUTORIAL_POWERS_CHOOSE22A there.
DJINN_TUTORIAL_POWERS_PREVIEW23A on the preview.
DJINN_TUTORIAL_POWERS_DONE24B, out of the menu.
DJINN_TUTORIAL_POWERS_END25Nothing more is pressed.
DJINN_TUTORIAL_RECOVERY27Recovery after a summon.
DJINN_TUTORIAL_CLOSE28Waits for the player's A, then presses B.

Definition at line 108 of file menu_internal.h.

DJINNI_STATE

enum DJINNI_STATE

What mnDjinnMenuGetEntryState says of a Djinni in the list.

EnumeratorValueDescription
DJINNI_STATE_STANDBY0on standby: R sets it
DJINNI_STATE_SET1set: R puts it on standby
DJINNI_STATE_RECOVERING2neither: recovering from a summon

Definition at line 152 of file menu_internal.h.

DJINN_SELECT_MODE

enum DJINN_SELECT_MODE

mnDjinnMenuSelectDjinn's two choosers.

EnumeratorValueDescription
DJINN_SELECT_DJINNI0a Djinni in any party member's column
DJINN_SELECT_ACTION1what to do with the Djinni chosen

Definition at line 160 of file menu_internal.h.

DJINN_COMPARE_OPERATION

enum DJINN_COMPARE_OPERATION

The preview loop's four operations, as its confirmation text describes them (mnDjinnMenuRunPreview's mode).

EnumeratorValueDescription
DJINN_COMPARE_TRADE0
DJINN_COMPARE_GIVE1
DJINN_COMPARE_STANDBY2
DJINN_COMPARE_SET3

Definition at line 174 of file menu_internal.h.

ITEM_USE_RESULT

enum ITEM_USE_RESULT

The result of using an item or Psynergy from the menu: its message, counted from MsgItemUseResult (mnAbilityApplyToTargets).

EnumeratorValueDescription
ITEM_USE_RESULT_HP_FULLY_RECOVERED0"You recovered all HP!"
ITEM_USE_RESULT_HP_RECOVERED1"You recovered HP!"
ITEM_USE_RESULT_HP_NOT_RECOVERED2"You couldn't recover HP."
ITEM_USE_RESULT_PARTY_HP_RECOVERED3"Everyone recovered HP!"
ITEM_USE_RESULT_HP_FULL4"Your HP is maxed out!"
ITEM_USE_RESULT_PP_FULLY_RECOVERED5"You recovered all PP!"
ITEM_USE_RESULT_PP_RECOVERED6"You recovered some PP!"
ITEM_USE_RESULT_PP_FULL7"Your PP is maxed out!"
ITEM_USE_RESULT_PARTY_PP_RECOVERED8"Everyone recovered PP!"
ITEM_USE_RESULT_PP_FULL_UNUSED9second "Your PP is maxed out!" (no use chooses it)
ITEM_USE_RESULT_POISON_PURGED10"The poison was purged!"
ITEM_USE_RESULT_NOT_POISONED11"You're not poisoned."
ITEM_USE_RESULT_REVIVED12"You were revived!"
ITEM_USE_RESULT_NOT_DOWN13"You're not down."
ITEM_USE_RESULT_CURSE_REMOVED14"The curse was removed." (no use chooses it)
ITEM_USE_RESULT_NOT_CURSED15"You are not cursed." (no use chooses it)
ITEM_USE_RESULT_MAX_HP_UP16"Your maximum HP increased!"
ITEM_USE_RESULT_MAX_PP_UP17"Your maximum PP increased!"
ITEM_USE_RESULT_AGILITY_UP18"Your Agility increased!"
ITEM_USE_RESULT_LUCK_UP19"Your Luck increased!"
ITEM_USE_RESULT_ATTACK_UP20"Your Attack increased!"
ITEM_USE_RESULT_DEFENSE_UP21"Your Defense increased!"

Definition at line 541 of file menu_internal.h.

STAT_SCREEN_PAGE

enum STAT_SCREEN_PAGE

STATUS_SCREEN_STATE.page: which screen the party member row belongs to.

EnumeratorValueDescription
STATUS_SCREEN_PAGE_STATUS0the Status menu (mnStatusScreenRun)
STATUS_SCREEN_PAGE_CHOOSER3The party member chooser (mnPartyMemberChooserOpen)

Definition at line 571 of file menu_internal.h.

PSYNERGY_LIST_MODE

enum PSYNERGY_LIST_MODE

Which Psynergy mnPsynergyMenuCollectActions lists.

EnumeratorValueDescription
PSYNERGY_LIST_ALL0those with a field effect or field-usable first, then the rest
PSYNERGY_LIST_SHORTCUTS1only those that work on the field
PSYNERGY_LIST_FIELD2those with a field effect or usable in the field

Definition at line 579 of file menu_internal.h.

ITEM_USE_MODE

enum ITEM_USE_MODE

How the item menu can use an item (mnItemClassifyUseMode).

EnumeratorValueDescription
ITEM_USE_MODE_UNUSABLE-1It cannot be used here: it has no action, it is equipment the party member cannot wear or that teaches Psynergy, or its action is usable only in battle.
ITEM_USE_MODE_FROM_FIELD0It works on the field (fdHasPsynergyCueStub), or its action is usable neither in the field nor in battle, and is used once the menu closes.
ITEM_USE_MODE_CHOOSE_MEMBER1Choose a party member to use it on.
ITEM_USE_MODE_WHOLE_PARTY2ABILITY_RANGE_ALL: the whole party at once.

Definition at line 589 of file menu_internal.h.

UNIT_STAT

enum UNIT_STAT

The statuses the Status screens show, as mnStatusScreenListStatuses fills them: one byte each, nonzero while the party member has it.

EnumeratorValueDescription
CHARACTER_DOWNHP 0; listed only when the caller asks for it
CHARACTER_POISONUNIT.poison 1
CHARACTER_VENOMUNIT.poison any other nonzero value
CHARACTER_CURSEUNIT.curse nonzero
CHARACTER_HAUNTUNIT.haunt nonzero
CHARACTER_AILMENT_COUNT

Definition at line 620 of file menu_internal.h.

DJINN_COMPARE_PAGE

enum DJINN_COMPARE_PAGE

mnDjinnMenuRunPreview's pages for a give or trade, which R cycles; the first two also index its per-member page counts.

EnumeratorValueDescription
DJINN_COMPARE_PAGE_GIVER0the giver's stats and Psynergy
DJINN_COMPARE_PAGE_RECEIVER1the receiver's stats and Psynergy
DJINN_COMPARE_PAGE_BOTH2both party members' stats, shown first

Definition at line 636 of file menu_internal.h.

Functions in detail

gmInventoryEquipStub

Sint32 gmInventoryEquipStub(Sint32 unitId, Sint32 slot)

What several parts call, declared once here for all of them.

Referenced by btDebugParamSetLoad(), mnItemMenuConfirmEquip(), mnItemMenuRunCommands(), mnShopConfirmEquip(), mnShopOpenDebugShop() and mnStatusPanelDraw().

Definition at line 511 of file menu_internal.h.

fdRenderApplyProjectedPlacementAtDepthStub

void fdRenderApplyProjectedPlacementAtDepthStub(SPR *object, SPR_PLACEMENT *pos, SPR_SCALE *scale, Sint32 facing, Sint32 depth)

Places a sprite through the field's projected placement, facing as an actor faces, into draw slot depth.

Referenced by mnDjinnFiguresUpdateTopRow(), mnPlacePartyFigures() and mnUpdatePartyFigures().

Definition at line 533 of file menu_internal.h.

Variables in detail

extern Uint8 MenuBackdropBorderTile[]

One 4-bit tile (class_change_arrow.4bpp) the Djinn menus copy into the backdrop's frame; the Djinn preview blinks it, drawing it and a fill of the window background in turn every four ticks.

Referenced by mnDjinnMenuRunPreview(), mnDjinnMenuShowMemberStatus() and mnOpenBackdropScreen().

Definition at line 527 of file menu_internal.h.

StatusPanelHpString

extern const Uint8 StatusPanelHpString[]

The HP label outside Japan, in each language's form ("KP" in German, "PV" in Spanish and French, "PS" in Italian).

Referenced by mnStatusPanelDrawHpPp().

Definition at line 651 of file menu_internal.h.