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…
#include "ability_ids.h"#include "fixed_math.h"#include "flags.h"#include "item_ids.h"#include "macros.h"#include "static_assert.h"#include "system.h"#include "battle/battle.h"#include "battle/stubs.h"#include "field/field.h"#include "field/engine_stubs.h"#include "field/sprite.h"#include "field/stubs.h"#include "game/game.h"#include "game/stubs.h"#include "graphics/graphics.h"#include "menu/djinn_menu.h"#include "menu/menu.h"#include "menu/paged_list.h"#include "game/main_routine_state.h"#include "shop/stubs.h"#include "sound/stubs.h"#include "text/msg_ids.h"#include "window/battle_status.h"#include "window/message_speed.h"#include "window/screens.h"#include "window/stubs.h"#include "window/window.h"#include "window/window_sprite.h"
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
| Name | Description | |
|---|---|---|
struct | ITEM_MENU_STATE | The 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. |
struct | PSYNERGY_MENU_STATE | The Psynergy menu: its windows, icons and cursors, the party members' tabs and the Psynergy listed for the chosen party member. |
struct | STATUS_SCREEN_STATE | The 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
| Name | Description | |
|---|---|---|
#define | MENU_ENTRY_ICONS 32 | The icons the menus keep for their entries: items, Psynergy and Djinn. |
#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. |
#define | MENU_ICON_HIDDEN_Y (DISPLAY_HEIGHT + 8) | |
#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. |
#define | FLAG_MENU_START_PRESSED 0x150 | Game flags of the menus. |
#define | FLAG_MENU_INFO_KEPT 0x151 | The info window holds a message the next selection must not draw over. |
#define | MENU_TARGET_WHOLE_PARTY 9 | The target id the Psynergy screen passes for an action whose range is ABILITY_RANGE_ALL. |
#define | MENU_STATE_SIZE 2672 | The bytes of the menu state, heap block HEAP_SLOT_MENU. |
#define | MENU_ITEM_GRID_COLUMNS 5 | Inventory icons occupy five columns in the fifteen-slot list. |
#define | ICON_GRID_ROW 8 | The icon grids are eight wide: mnSpawnIconEntries and mnPsynergyMenuCreateEntryGrid make their icons a row at a time. |
#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). |
#define | STATUS_PANEL_KIND_MASK 0xff | The panel kind in mnStatusPanelDraw's mode; the bits above it are 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. |
#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. |
#define | MENU_DRAW_DESCRIPTION | |
#define | MENU_DRAW_STATUS_LABEL | Status labels use the Latin font's pixel positions or the Japanese tile grid. |
#define | TEXT_COLOR_LOW_HP TEXT_COLOR_YELLOW | Text colours of the status panel's numbers. |
#define | TEXT_COLOR_NO_HP TEXT_COLOR_RED | HP 0 |
#define | TEXT_COLOR_NORMAL TEXT_COLOR_WHITE | the window text's default colour |
#define | ICON_SHOWN 1 | WINDOW_SPR.motion as the menu sets it: shown, or hidden but kept. |
#define | ICON_HIDDEN 13 | WINDOW_SPRITE_MOTION_HIDDEN |
#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). |
#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). |
#define | DJINN_CHANGE_ARROW_VRAM | |
#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. |
#define | DJINN_ELEMENT (v) (((v) & 0xe0) >> 5) | |
#define | DJINN_NUMBER (v) ((v) & 0x1f) |
Enumerations
| Name | Description | |
|---|---|---|
enum | ITEM_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). |
enum | UNIT_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. |
enum | ITEM_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). |
enum | STAT_SCREEN_PAGE { STATUS_SCREEN_PAGE_STATUS, STATUS_SCREEN_PAGE_CHOOSER } | STATUS_SCREEN_STATE.page: which screen the party member row belongs to. |
enum | PSYNERGY_MENU_MODE { PSYNERGY_MODE_USE, PSYNERGY_MODE_SET_L, PSYNERGY_MODE_SET_R } | PSYNERGY_MENU_STATE.mode: what choosing a Psynergy does. |
enum | PSYNERGY_SHORTCUT { PSYNERGY_SHORTCUT_L, PSYNERGY_SHORTCUT_R } | The Psynergy shortcuts (mnPsynergyMenuSetShortcut). |
enum | PSYNERGY_LIST_MODE { PSYNERGY_LIST_ALL, PSYNERGY_LIST_SHORTCUTS, PSYNERGY_LIST_FI … } | Which Psynergy mnPsynergyMenuCollectActions lists. |
enum | ITEM_USE_MODE { ITEM_USE_MODE_UNUSABLE, ITEM_USE_MODE_FROM_FIELD, ITEM_USE_M … } | How the item menu can use an item (mnItemClassifyUseMode). |
enum | ITEM_TARGET_MODE { ITEM_TARGET_USE, ITEM_TARGET_GIVE } | Whom mnItemMenuSelectTarget chooses. |
enum | STAT_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. |
enum | DJINN_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. |
enum | DJINN_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. |
enum | DJINN_MENU_RESULT { DJINN_RESULT_START, DJINN_RESULT_BACK, DJINN_RESULT_CHOSEN, … } | What the Djinn menu's choosers return. |
enum | DJINN_TUTORIAL_STEP { DJINN_TUTORIAL_OFF, DJINN_TUTORIAL_GIVE, DJINN_TUTORIAL_GIVE … } | DJINN_MENU_BACKDROP.tutorialStep: where the Djinn tutorial is. |
enum | DJINN_SELECT_MODE { DJINN_SELECT_DJINNI, DJINN_SELECT_ACTION } | mnDjinnMenuSelectDjinn's two choosers. |
enum | DJINN_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
| Name | Description | |
|---|---|---|
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.
MENU_ICON_HIDDEN_X
#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.
MENU_ICON_HIDDEN_Y
#define MENU_ICON_HIDDEN_Y (DISPLAY_HEIGHT + 8)
Referenced by mnHideEntryIcons(), mnSpawnIconEntries(), mnStatusScreenCreateStatusIcons() and mnStatusScreenHideStatusIcons().
Definition at line 46 of file menu_internal.h.
MENU_FIGURE_HIDDEN_Y
#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.
MENU_TARGET_WHOLE_PARTY
#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.
MENU_STATE_SIZE
#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.
MENU_ITEM_GRID_COLUMNS
#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.
MENU_RESET_DESCRIPTION_WINDOW
#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.
MENU_DRAW_DESCRIPTION
#define MENU_DRAW_DESCRIPTION
Referenced by mnItemMenuChooseCommand(), mnItemMenuSelectTarget(), mnItemMenuShowSelectedRow(), mnPsynergyMenuSelectTarget(), mnPsynergyMenuShowSelectedRow(), mnStatusScreenShowEquipmentRow() and mnStatusScreenShowPsynergyRow().
Definition at line 502 of file menu_internal.h.
MENU_DRAW_STATUS_LABEL
#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.
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
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).
| Enumerator | Value | Description |
|---|---|---|
ITEM_COMMAND_USE | ||
ITEM_COMMAND_EQUIP | ||
ITEM_COMMAND_DETAILS | Details | |
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.
| Enumerator | Value | Description |
|---|---|---|
CHARACTER_DOWN | HP 0; listed only when the caller asks for it | |
CHARACTER_POISON | UNIT.poison 1 | |
CHARACTER_VENOM | UNIT.poison any other nonzero value | |
CHARACTER_CURSE | UNIT.curse nonzero | |
CHARACTER_HAUNT | UNIT.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).
| Enumerator | Value | Description |
|---|---|---|
ITEM_USE_RESULT_HP_FULLY_RECOVERED | 0 | "You recovered all HP!" |
ITEM_USE_RESULT_HP_RECOVERED | 1 | "You recovered HP!" |
ITEM_USE_RESULT_HP_NOT_RECOVERED | 2 | "You couldn't recover HP." |
ITEM_USE_RESULT_PARTY_HP_RECOVERED | 3 | "Everyone recovered HP!" |
ITEM_USE_RESULT_HP_FULL | 4 | "Your HP is maxed out!" |
ITEM_USE_RESULT_PP_FULLY_RECOVERED | 5 | "You recovered all PP!" |
ITEM_USE_RESULT_PP_RECOVERED | 6 | "You recovered some PP!" |
ITEM_USE_RESULT_PP_FULL | 7 | "Your PP is maxed out!" |
ITEM_USE_RESULT_PARTY_PP_RECOVERED | 8 | "Everyone recovered PP!" |
ITEM_USE_RESULT_PP_FULL_UNUSED | 9 | a second "Your PP is maxed out!", never chosen |
ITEM_USE_RESULT_POISON_PURGED | 10 | "The poison was purged!" |
ITEM_USE_RESULT_NOT_POISONED | 11 | "You're not poisoned." |
ITEM_USE_RESULT_REVIVED | 12 | "You were revived!" |
ITEM_USE_RESULT_NOT_DOWN | 13 | "You're not down." |
ITEM_USE_RESULT_CURSE_REMOVED | 14 | "The curse was removed." (never chosen) |
ITEM_USE_RESULT_NOT_CURSED | 15 | "You are not cursed." (never chosen) |
ITEM_USE_RESULT_MAX_HP_UP | 16 | "Your maximum HP increased!" |
ITEM_USE_RESULT_MAX_PP_UP | 17 | "Your maximum PP increased!" |
ITEM_USE_RESULT_AGILITY_UP | 18 | "Your Agility increased!" |
ITEM_USE_RESULT_LUCK_UP | 19 | "Your Luck increased!" |
ITEM_USE_RESULT_ATTACK_UP | 20 | "Your Attack increased!" |
ITEM_USE_RESULT_DEFENSE_UP | 21 | "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.
| Enumerator | Value | Description |
|---|---|---|
STATUS_SCREEN_PAGE_STATUS | 0 | the Status menu (mnStatusScreenRun) |
STATUS_SCREEN_PAGE_CHOOSER | 3 | The 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.
| Enumerator | Value | Description |
|---|---|---|
PSYNERGY_MODE_USE | 0 | |
PSYNERGY_MODE_SET_L | 1 | make it the L shortcut |
PSYNERGY_MODE_SET_R | 2 | make it the R shortcut |
Definition at line 414 of file menu_internal.h.
PSYNERGY_SHORTCUT
enum PSYNERGY_SHORTCUT
The Psynergy shortcuts (mnPsynergyMenuSetShortcut).
| Enumerator | Value | Description |
|---|---|---|
PSYNERGY_SHORTCUT_L | 0 | |
PSYNERGY_SHORTCUT_R | 1 |
Definition at line 422 of file menu_internal.h.
PSYNERGY_LIST_MODE
enum PSYNERGY_LIST_MODE
Which Psynergy mnPsynergyMenuCollectActions lists.
| Enumerator | Value | Description |
|---|---|---|
PSYNERGY_LIST_ALL | 0 | field effect or usable in the field first, then the rest |
PSYNERGY_LIST_SHORTCUTS | 1 | only those that work on the field |
PSYNERGY_LIST_FIELD | 2 | those 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).
| Enumerator | Value | Description |
|---|---|---|
ITEM_USE_MODE_UNUSABLE | -1 | It 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_FIELD | 0 | It 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_MEMBER | 1 | Choose a party member to use it on. |
ITEM_USE_MODE_WHOLE_PARTY | 2 | ABILITY_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.
| Enumerator | Value | Description |
|---|---|---|
ITEM_TARGET_USE | 0 | the party member to use the item on |
ITEM_TARGET_GIVE | 1 | the 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.
| Enumerator | Value | Description |
|---|---|---|
STATUS_PANEL_EXPERIENCE | 0 | class, HP, PP and experience |
STATUS_PANEL_EQUIP | 2 | stats if equipped (or removed if equipPreview); +1 draws same |
STATUS_PANEL_LEARN | 4 | the Psynergy a Psynergy item teaches |
STATUS_PANEL_CLASS | 6 | class, HP and PP; no call passes it |
STATUS_PANEL_STATS | 8 | Attack, 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.
| Enumerator | Value | Description |
|---|---|---|
DJINN_PREVIEW_ADD_AND_SET | 0 | the other's Djinni is added and set |
DJINN_PREVIEW_UNSET | 1 | the chosen Djinni is unset |
DJINN_PREVIEW_TRADE | 2 | trade: own Djinni unset if set; other's added, set if it was |
DJINN_PREVIEW_NO_CHANGE | 3 | nothing changes; maximum HP and PP shown |
DJINN_PREVIEW_ADD | 4 | the 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.
| Enumerator | Value | Description |
|---|---|---|
DJINN_COMPARE_PAGE_GIVER | 0 | the giver's stats and Psynergy |
DJINN_COMPARE_PAGE_RECEIVER | 1 | the receiver's stats and Psynergy |
DJINN_COMPARE_PAGE_BOTH | 2 | both 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.
| Enumerator | Value | Description |
|---|---|---|
DJINN_RESULT_START | -2 | Start: the Djinn menu closes. |
DJINN_RESULT_BACK | -1 | |
DJINN_RESULT_CHOSEN | 1 | A on a Djinni. |
DJINN_RESULT_CONFIRMED | 1 | A on the preview's "Is this OK?" |
DJINN_RESULT_SET | 1 | |
DJINN_RESULT_STANDBY | 2 | |
DJINN_RESULT_GIVE | 3 | |
DJINN_RESULT_TRADE | 4 | |
DJINN_RESULT_SET_NOW | 5 | The four commands applied without their |
DJINN_RESULT_STANDBY_NOW | 6 | preview, which no chooser returns. |
DJINN_RESULT_STATUS | 7 | L: the party member's status. |
DJINN_RESULT_GIVE_NOW | 8 | |
DJINN_RESULT_TRADE_NOW | 9 | |
DJINN_RESULT_HELP | 10 | Select: 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.
| Enumerator | Value | Description |
|---|---|---|
DJINN_TUTORIAL_OFF | 0 | |
DJINN_TUTORIAL_GIVE | 1 | Giving a Djinni and setting it: "To give your Djinni to someone else..." |
DJINN_TUTORIAL_GIVE_PICK | 2 | A, taking the Djinni. |
DJINN_TUTORIAL_GIVE_MOVE | 3 | Right, to the next party member. |
DJINN_TUTORIAL_GIVE_DROP | 4 | A there. |
DJINN_TUTORIAL_GIVE_PREVIEW | 5 | A on the give preview. |
DJINN_TUTORIAL_SET_AFTER_GIVE | 6 | "After choosing who will take the Djinni, you can set it." |
DJINN_TUTORIAL_SET_SPARE | 7 | As DJINN_TUTORIAL_SET_AFTER_GIVE; no step leads here. |
DJINN_TUTORIAL_SET_PICK | 8 | A, taking the Djinni. |
DJINN_TUTORIAL_SET_CHOOSE | 9 | A on its own column. |
DJINN_TUTORIAL_SET_CHANGES | 10 | "Setting a Djinni changes your attributes and maybe even your class." |
DJINN_TUTORIAL_CLASS_PSYNERGY | 11 | "When your class changes, the Psynergy you can use may also change." |
DJINN_TUTORIAL_SET_PREVIEW | 12 | A on the set preview. |
DJINN_TUTORIAL_SET_DONE | 13 | B, out of the menu. |
DJINN_TUTORIAL_POWERS | 14 | The Djinn's powers: "Each Djinni has different powers." |
DJINN_TUTORIAL_POWERS_TALK | 15 | Flint's three lines on the powers. |
DJINN_TUTORIAL_POWERS_WAIT | 16 | A wait. |
DJINN_TUTORIAL_POWERS_WAIT_MORE | 17 | Another wait. |
DJINN_TUTORIAL_POWERS_PICK | 18 | A, taking the Djinni. |
DJINN_TUTORIAL_POWERS_PICK_SPARE | 20 | As DJINN_TUTORIAL_POWERS_PICK; no step leads here. |
DJINN_TUTORIAL_POWERS_MOVE | 21 | Left. |
DJINN_TUTORIAL_POWERS_CHOOSE | 22 | A there. |
DJINN_TUTORIAL_POWERS_PREVIEW | 23 | A on the preview. |
DJINN_TUTORIAL_POWERS_DONE | 24 | B, out of the menu. |
DJINN_TUTORIAL_POWERS_END | 25 | Nothing more is pressed. |
DJINN_TUTORIAL_RECOVERY | 27 | Recovery after a summon: "After a Djinni has been used to summon..." |
DJINN_TUTORIAL_CLOSE | 28 | Waits 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.
| Enumerator | Value | Description |
|---|---|---|
DJINN_SELECT_DJINNI | 0 | a Djinni in any party member's column |
DJINN_SELECT_ACTION | 1 | what 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).
| Enumerator | Value | Description |
|---|---|---|
DJINN_COMPARE_TRADE | 0 | |
DJINN_COMPARE_GIVE | 1 | |
DJINN_COMPARE_STANDBY | 2 | |
DJINN_COMPARE_SET | 3 |
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.