Skip to Content
The Alchemy Project

src/menu/menu_internal.h

What every part of the menu object shares: its includes, and the macros and types more than one part uses. More…

Included by menu.c, menu_djinn.c, menu_djinn_figures.c, menu_djinn_preview.c, menu_icons.c, menu_item.c, menu_psynergy.c, menu_shared.c, menu_status.c and menu_use.c.

Structures

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

Macros

NameDescription
#defineMENU_ENTRY_ICONS 32The icons the menus keep for their entries: items, Psynergy and Djinn.
#defineMENU_ICON_HIDDEN_X (DISPLAY_WIDTH + 8)Where an entry or category 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 Djinni figure is parked at, below the screen, while a screen has no place for it.
#defineFLAG_MENU_START_PRESSED 0x150Game flags of the menus.
#defineFLAG_MENU_INFO_KEPT 0x151The info window holds a message the next selection must not draw over.
#defineMENU_TARGET_WHOLE_PARTY 9The target id the Psynergy screen passes for an action whose range is ABILITY_RANGE_ALL.
#defineMENU_STATE_SIZE 2672The bytes of the menu state, heap block HEAP_SLOT_MENU.
#defineMENU_ITEM_GRID_COLUMNS 5Inventory icons occupy five columns in the fifteen-slot list.
#defineICON_GRID_ROW 8The icon grids are eight wide: mnSpawnIconEntries and mnPsynergyMenuCreateEntryGrid make their icons a row at a time.
#definePAGE_NUMBERS_RIGHT 15The tile of the Item and Psynergy list windows' top border where the page numbers end, with their right arrow (mnPagedListDrawPageNumbers).
#defineSTATUS_PANEL_KIND_MASK 0xffThe panel kind in mnStatusPanelDraw's mode; the bits above it are STATUS_PANEL_LOWER_ONLY.
#defineSTATUS_PANEL_LOWER_ONLY 0x100Keeps the open window, the name and the statuses, and redraws only the part below them.
#defineMENU_RESET_DESCRIPTION_WINDOWThe information side's text: outside Japanese it is drawn character by character into the window's tiles, so clearing it redraws the empty window; the Japanese edition decodes it into the text canvas (mnTextDrawMessage), so clearing it releases the canvas's window sprites.
#defineMENU_DRAW_DESCRIPTION
#defineMENU_DRAW_STATUS_LABELStatus labels use the Latin font's pixel positions or the Japanese tile grid.
#defineTEXT_COLOR_LOW_HP TEXT_COLOR_YELLOWText colours of the status panel's numbers.
#defineTEXT_COLOR_NO_HP TEXT_COLOR_REDHP 0
#defineTEXT_COLOR_NORMAL TEXT_COLOR_WHITEthe window text's default colour
#defineICON_SHOWN 1WINDOW_SPR.motion as the menu sets it: shown, or hidden but kept.
#defineICON_HIDDEN 13WINDOW_SPRITE_MOTION_HIDDEN
#defineDJINN_ELEMENT_TILE (BG_TILE_PALETTE(BASIC_COLORS_PALETTE) | 1)The window map entry of the first element icon, in BASIC_COLORS_PALETTE; the four elements follow it in order (ELEMENT).
#defineDJINN_CHANGE_ARROW_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_CHANGE_ARROW_VRAM
#defineDJINN_MEMBER (v) (((v) & 0xf00) >> 8)A Djinn list entry's party member, element and index (DJINN_ENTRY_MEMBER, _ELEMENT and _INDEX), shifted down.
#defineDJINN_ELEMENT (v) (((v) & 0xe0) >> 5)
#defineDJINN_NUMBER (v) ((v) & 0x1f)

Enumerations

NameDescription
enumITEM_MENU_COMMAND { ITEM_COMMAND_USE, ITEM_COMMAND_EQUIP, ITEM_COMMAND_DETAILS, … }The item command grid, by row * 3 + column: Use, Equip and Details on top, Give, Remove and Drop below (mnItemMenuChooseCommand).
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.
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_MENU_MODE { PSYNERGY_MODE_USE, PSYNERGY_MODE_SET_L, PSYNERGY_MODE_SET_R }PSYNERGY_MENU_STATE.mode: what choosing a Psynergy does.
enumPSYNERGY_SHORTCUT { PSYNERGY_SHORTCUT_L, PSYNERGY_SHORTCUT_R }The Psynergy shortcuts (mnPsynergyMenuSetShortcut).
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).
enumITEM_TARGET_MODE { ITEM_TARGET_USE, ITEM_TARGET_GIVE }Whom mnItemMenuSelectTarget chooses.
enumSTAT_PANEL_KIND { STATUS_PANEL_EXPERIENCE, STATUS_PANEL_EQUIP, STATUS_PANEL_LE … }What mnStatusPanelDraw shows below the name and statuses: the low byte of its mode.
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_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.
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.
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).

Variables

NameDescription
STATIC_ASSERT(offsetof (PSYNERGY_MENU_STATE, sideAction[0])

Description

What every part of the menu object shares: its includes, and the macros and types more than one part uses. menu.c includes it before the parts, and each part includes it too, so that a part read on its own resolves. It places no bytes.

Macros in detail

MENU_ENTRY_ICONS

#define MENU_ENTRY_ICONS 32

The icons the menus keep for their entries: items, Psynergy and Djinn.

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

Definition at line 41 of file menu_internal.h.

#define MENU_ICON_HIDDEN_X (DISPLAY_WIDTH + 8)

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

Referenced by mnHideEntryIcons(), mnSpawnIconEntries(), mnStatusScreenCreateStatusIcons() and mnStatusScreenHideStatusIcons().

Definition at line 45 of file menu_internal.h.

#define MENU_ICON_HIDDEN_Y (DISPLAY_HEIGHT + 8)

Referenced by mnHideEntryIcons(), mnSpawnIconEntries(), mnStatusScreenCreateStatusIcons() and mnStatusScreenHideStatusIcons().

Definition at line 46 of file menu_internal.h.

#define MENU_FIGURE_HIDDEN_Y 200

The y a party or Djinni figure is parked at, below the screen, while a screen has no place for it.

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

Definition at line 50 of file menu_internal.h.

FLAG_MENU_START_PRESSED

#define FLAG_MENU_START_PRESSED 0x150

Game flags of the menus. Start was pressed: every menu screen unwinds and the whole menu closes.

Referenced by mnItemMenuChooseCommand(), mnItemMenuConfirmDrop(), mnItemMenuConfirmEquip(), mnItemMenuRunCommands(), mnItemMenuRunList(), mnItemMenuRunMemberSelection(), mnItemMenuSelectGiveQuantity(), mnItemMenuSelectTarget(), mnItemMenuShowDetails(), mnPsynergyMenuRunList(), mnPsynergyMenuRunSteps(), mnPsynergyMenuSelectMember(), mnPsynergyMenuSelectTarget(), mnStartWatchingStart(), mnStatusScreenRunEquipmentPage(), mnStatusScreenRunPages(), mnStatusScreenRunPartyRow(), mnStatusScreenRunPsynergyPage(), mnStatusScreenRunStatusPage(), mnStatusScreenShowDjinnList(), mnStopWatchingStart() and mnWatchStart().

Definition at line 366 of file menu_internal.h.

FLAG_MENU_INFO_KEPT

#define FLAG_MENU_INFO_KEPT 0x151

The info window holds a message the next selection must not draw over.

Referenced by mnItemMenuSelectTarget(), mnItemMenuShowMessage(), mnPsynergyMenuSelectMember(), mnPsynergyMenuSelectTarget() and mnPsynergyMenuShowSelectedRow().

Definition at line 368 of file menu_internal.h.

#define MENU_TARGET_WHOLE_PARTY 9

The target id the Psynergy screen passes for an action whose range is ABILITY_RANGE_ALL.

Referenced by mnAbilityApplyToTargets() and mnPsynergyMenuRunSteps().

Definition at line 372 of file menu_internal.h.

#define MENU_STATE_SIZE 2672

The bytes of the menu state, heap block HEAP_SLOT_MENU. Each screen's run function takes the block as it opens and releases it as it closes.

Referenced by mnDjinnMenuRun(), mnInitState(), mnItemMenuRun(), mnPartyMemberChooserOpen(), mnPsynergyMenuRun() and mnStatusScreenRun().

Definition at line 465 of file menu_internal.h.

#define MENU_ITEM_GRID_COLUMNS 5

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

Referenced by mnItemMenuHidePageIcons() and mnItemMenuPlaceIcons().

Definition at line 468 of file menu_internal.h.

ICON_GRID_ROW

#define ICON_GRID_ROW 8

The icon grids are eight wide: mnSpawnIconEntries and mnPsynergyMenuCreateEntryGrid make their icons a row at a time.

Referenced by mnPsynergyMenuCreateEntryGrid() and mnSpawnIconEntries().

Definition at line 471 of file menu_internal.h.

PAGE_NUMBERS_RIGHT

#define PAGE_NUMBERS_RIGHT 15

The tile of the Item and Psynergy list windows' top border where the page numbers end, with their right arrow (mnPagedListDrawPageNumbers).

Referenced by mnItemMenuDrawListPage() and mnPsynergyMenuDrawPage().

Definition at line 474 of file menu_internal.h.

STATUS_PANEL_KIND_MASK

#define STATUS_PANEL_KIND_MASK 0xff

The panel kind in mnStatusPanelDraw's mode; the bits above it are STATUS_PANEL_LOWER_ONLY.

Referenced by mnStatusPanelDraw().

Definition at line 491 of file menu_internal.h.

STATUS_PANEL_LOWER_ONLY

#define STATUS_PANEL_LOWER_ONLY 0x100

Keeps the open window, the name and the statuses, and redraws only the part below them.

Referenced by mnItemMenuDrawEquipPreview() and mnStatusPanelDraw().

Definition at line 494 of file menu_internal.h.

#define MENU_RESET_DESCRIPTION_WINDOW

The information side's text: outside Japanese it is drawn character by character into the window's tiles, so clearing it redraws the empty window; the Japanese edition decodes it into the text canvas (mnTextDrawMessage), so clearing it releases the canvas's window sprites.

Referenced by mnItemMenuChooseCommand(), mnItemMenuSelectTarget(), mnItemMenuShowSelectedRow(), mnPsynergyMenuSelectTarget() and mnPsynergyMenuShowSelectedRow().

Definition at line 500 of file menu_internal.h.

#define MENU_DRAW_DESCRIPTION

Referenced by mnItemMenuChooseCommand(), mnItemMenuSelectTarget(), mnItemMenuShowSelectedRow(), mnPsynergyMenuSelectTarget(), mnPsynergyMenuShowSelectedRow(), mnStatusScreenShowEquipmentRow() and mnStatusScreenShowPsynergyRow().

Definition at line 502 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 506 of file menu_internal.h.

TEXT_COLOR_LOW_HP

#define TEXT_COLOR_LOW_HP TEXT_COLOR_YELLOW

Text colours of the status panel's numbers.

HP under a quarter of the maximum

Referenced by mnPsynergyMenuDrawPage(), mnStatusPanelDrawHpPp() and mnWindowPaletteSetLowHpTextColor().

Definition at line 510 of file menu_internal.h.

TEXT_COLOR_NO_HP

#define TEXT_COLOR_NO_HP TEXT_COLOR_RED

HP 0

Referenced by mnPsynergyMenuDrawPage(), mnStatusPanelDrawHpPp() and mnWindowPaletteSetNoHpTextColor().

Definition at line 511 of file menu_internal.h.

TEXT_COLOR_NORMAL

#define TEXT_COLOR_NORMAL TEXT_COLOR_WHITE

the window text's default colour

Referenced by mnDjinnMenuDrawElementList(), mnDjinnMenuDrawStatPreview(), mnDjinnMenuRunPreview(), mnItemMenuDrawCommands(), mnPsynergyMenuDrawPage(), mnPsynergyMenuDrawShortcuts(), mnStatusPanelDrawHpPp(), mnStatusScreenDrawStatusPage(), mnStatusScreenDrawTopRows() and mnWindowPaletteSetNormalTextColor().

Definition at line 512 of file menu_internal.h.

ICON_SHOWN

#define ICON_SHOWN 1

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

WINDOW_SPRITE_MOTION_STILL

Referenced by mnDjinnMenuRunPreview(), mnDjinnMenuRunScreen(), mnDjinnMenuSelectDjinn(), mnIconCreateDjinnArrow(), mnIconCreateStatChangeArrow(), mnIconShow(), mnItemMenuDrawItemHead(), mnItemMenuRunCommands(), mnItemMenuShowDetails(), mnItemMenuShowMessage(), mnPsynergyMenuRunList(), mnPsynergyMenuSelectPartySlot(), mnSetPageIcons(), mnStatusScreenDrawStatusPage(), mnStatusScreenDrawTopRows(), mnStatusScreenRunEquipmentPage(), mnStatusScreenRunPsynergyPage(), mnStatusScreenRunStatusPage(), mnStatusScreenSelectMember() and mnStatusScreenShowDjinnList().

Definition at line 515 of file menu_internal.h.

ICON_HIDDEN

#define ICON_HIDDEN 13

WINDOW_SPRITE_MOTION_HIDDEN

Referenced by mnCursorCreate(), mnDjinnMenuRunPreview(), mnDjinnMenuRunScreen(), mnDjinnMenuShowMemberStatus(), mnHideEmptyEntryIcons(), mnItemMenuClose(), mnItemMenuHideAllIcons(), mnItemMenuHidePageIcons(), mnItemMenuRunCommands(), mnItemMenuRunList(), mnItemMenuRunMemberSelection(), mnItemMenuSelectGiveQuantity(), mnItemMenuSelectTarget(), mnItemMenuShowDetails(), mnItemMenuShowMessage(), mnPsynergyMenuCreateEntryGrid(), mnPsynergyMenuRunList(), mnPsynergyMenuSelectMember(), mnPsynergyMenuSelectPartySlot(), mnPsynergyMenuSelectTarget(), mnSetPageIcons(), mnStatusScreenRunPages() and mnStatusScreenShowDjinnList().

Definition at line 516 of file menu_internal.h.

DJINN_ELEMENT_TILE

#define DJINN_ELEMENT_TILE (BG_TILE_PALETTE(BASIC_COLORS_PALETTE) | 1)

The window map entry of the first element icon, in BASIC_COLORS_PALETTE; the four elements follow it in order (ELEMENT).

Referenced by mnDjinnMenuDrawElementList(), mnDjinnMenuDrawStatPreview(), mnDjinnMenuRunPreview() and mnDjinnMenuSelectDjinn().

Definition at line 618 of file menu_internal.h.

DJINN_CHANGE_ARROW_TILE

#define DJINN_CHANGE_ARROW_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(), mnDjinnMenuRunPreview() and mnOpenBackdropScreen().

Definition at line 622 of file menu_internal.h.

DJINN_CHANGE_ARROW_VRAM

#define DJINN_CHANGE_ARROW_VRAM

Referenced by mnDjinnMenuRunPreview() and mnDjinnMenuShowMemberStatus().

Definition at line 623 of file menu_internal.h.

DJINN_MEMBER

#define DJINN_MEMBER(v) (((v) & 0xf00) >> 8)

A Djinn list entry's party member, element and index (DJINN_ENTRY_MEMBER, _ELEMENT and _INDEX), shifted down.

Referenced by mnDjinnMenuSelectDjinn().

Definition at line 628 of file menu_internal.h.

DJINN_ELEMENT

#define DJINN_ELEMENT(v) (((v) & 0xe0) >> 5)

Referenced by mnDjinnMenuDrawElementList(), mnDjinnMenuRunPreview() and mnDjinnMenuSelectDjinn().

Definition at line 629 of file menu_internal.h.

DJINN_NUMBER

#define DJINN_NUMBER(v) ((v) & 0x1f)

Referenced by mnDjinnMenuDrawElementList(), mnDjinnMenuRunPreview() and mnDjinnMenuSelectDjinn().

Definition at line 630 of file menu_internal.h.

Enumerations in detail

ITEM_MENU_COMMAND

enum ITEM_MENU_COMMAND

The item command grid, by row * 3 + column: Use, Equip and Details on top, Give, Remove and Drop below (mnItemMenuChooseCommand).

EnumeratorValueDescription
ITEM_COMMAND_USE
ITEM_COMMAND_EQUIP
ITEM_COMMAND_DETAILSDetails
ITEM_COMMAND_GIVE
ITEM_COMMAND_REMOVE
ITEM_COMMAND_DROP

Definition at line 173 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 354 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_UNUSED9a second "Your PP is maxed out!", never chosen
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." (never chosen)
ITEM_USE_RESULT_NOT_CURSED15"You are not cursed." (never chosen)
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 376 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 406 of file menu_internal.h.

PSYNERGY_MENU_MODE

enum PSYNERGY_MENU_MODE

PSYNERGY_MENU_STATE.mode: what choosing a Psynergy does.

EnumeratorValueDescription
PSYNERGY_MODE_USE0
PSYNERGY_MODE_SET_L1make it the L shortcut
PSYNERGY_MODE_SET_R2make it the R shortcut

Definition at line 414 of file menu_internal.h.

PSYNERGY_SHORTCUT

enum PSYNERGY_SHORTCUT

The Psynergy shortcuts (mnPsynergyMenuSetShortcut).

EnumeratorValueDescription
PSYNERGY_SHORTCUT_L0
PSYNERGY_SHORTCUT_R1

Definition at line 422 of file menu_internal.h.

PSYNERGY_LIST_MODE

enum PSYNERGY_LIST_MODE

Which Psynergy mnPsynergyMenuCollectActions lists.

EnumeratorValueDescription
PSYNERGY_LIST_ALL0field effect or usable in the field 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 429 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 (fdHasItemCueStub), 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 439 of file menu_internal.h.

ITEM_TARGET_MODE

enum ITEM_TARGET_MODE

Whom mnItemMenuSelectTarget chooses.

EnumeratorValueDescription
ITEM_TARGET_USE0the party member to use the item on
ITEM_TARGET_GIVE1the party member to give it to

Definition at line 457 of file menu_internal.h.

STAT_PANEL_KIND

enum STAT_PANEL_KIND

What mnStatusPanelDraw shows below the name and statuses: the low byte of its mode.

EnumeratorValueDescription
STATUS_PANEL_EXPERIENCE0class, HP, PP and experience
STATUS_PANEL_EQUIP2stats if equipped (or removed if equipPreview); +1 draws same
STATUS_PANEL_LEARN4the Psynergy a Psynergy item teaches
STATUS_PANEL_CLASS6class, HP and PP; no call passes it
STATUS_PANEL_STATS8Attack, Defense, Agility and Luck (R held on Item screen)

Definition at line 478 of file menu_internal.h.

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 520 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 532 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 540 of file menu_internal.h.

DJINN_TUTORIAL_STEP

enum DJINN_TUTORIAL_STEP

DJINN_MENU_BACKDROP.tutorialStep: where the Djinn tutorial is. Each lesson's own steps follow it: each waits its ticks, then presses a key for the player and goes on to the next. mnDjinnMenuSelectDjinn runs most; mnDjinnMenuRunPreview presses A on each preview.

EnumeratorValueDescription
DJINN_TUTORIAL_OFF0
DJINN_TUTORIAL_GIVE1Giving a Djinni and setting it: "To give your Djinni to someone else..."
DJINN_TUTORIAL_GIVE_PICK2A, taking the Djinni.
DJINN_TUTORIAL_GIVE_MOVE3Right, to the next party member.
DJINN_TUTORIAL_GIVE_DROP4A there.
DJINN_TUTORIAL_GIVE_PREVIEW5A on the give preview.
DJINN_TUTORIAL_SET_AFTER_GIVE6"After choosing who will take the Djinni, you can set it."
DJINN_TUTORIAL_SET_SPARE7As DJINN_TUTORIAL_SET_AFTER_GIVE; no step leads here.
DJINN_TUTORIAL_SET_PICK8A, taking the Djinni.
DJINN_TUTORIAL_SET_CHOOSE9A on its own column.
DJINN_TUTORIAL_SET_CHANGES10"Setting a Djinni changes your attributes and maybe even your class."
DJINN_TUTORIAL_CLASS_PSYNERGY11"When your class changes, the Psynergy you can use may also change."
DJINN_TUTORIAL_SET_PREVIEW12A on the set preview.
DJINN_TUTORIAL_SET_DONE13B, out of the menu.
DJINN_TUTORIAL_POWERS14The Djinn's powers: "Each Djinni has different powers."
DJINN_TUTORIAL_POWERS_TALK15Flint's three lines on the powers.
DJINN_TUTORIAL_POWERS_WAIT16A wait.
DJINN_TUTORIAL_POWERS_WAIT_MORE17Another wait.
DJINN_TUTORIAL_POWERS_PICK18A, taking 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: "After a Djinni has been used to summon..."
DJINN_TUTORIAL_CLOSE28Waits for the player's A, then presses B.

Definition at line 566 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 610 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 634 of file menu_internal.h.

Variables in detail

offsetof

STATIC_ASSERT(offsetof(PSYNERGY_MENU_STATE, sideAction[0])

Definition at line 271 of file menu_internal.h.