src/menu/menu_internal.h
What every part of the menu object shares: its includes and the declarations its parts disagreed on. More…
#include "types.h"#include "battle/battle.h"#include "battle/blitter.h"#include "battle/battle_action_run.h"#include "battle/battle_unit.h"#include "game/stubs.h"#include "debug/debug.h"#include "djinn_ids.h"#include "edition.h"#include "field/field.h"#include "field/field_script.h"#include "field/sprite.h"#include "fixed_math.h"#include "flags.h"#include "game/character.h"#include "game/game.h"#include "game/inventory.h"#include "game/item.h"#include "shop/stubs.h"#include "graphics/display_transition.h"#include "graphics/glyph.h"#include "window/window_sprite.h"#include "graphics/render_placement.h"#include "field/stubs.h"#include "item_ids.h"#include "macros.h"#include "menu/djinn_menu.h"#include "menu/menu.h"#include "menu/paged_list.h"#include "window/select.h"#include "sound/sound.h"#include "static_assert.h"#include "system.h"#include "game/main_routine_state.h"#include "text/msg_ids.h"#include "edition_values.h"#include "window/battle_status.h"#include "window/screens.h"#include "window/stubs.h"#include "window/window.h"
Included by menu.c.
Structures
| Name | Description | |
|---|---|---|
struct | ITEM_MENU_STATE | The item menu's state, RamHeapSlots->menuState (HEAP_SLOT_MENU): its windows, the party figures, the items listed and the two choices a command makes. |
struct | STATUS_SCREEN_STATE | The state of the party member chooser and the Status menu (HEAP_SLOT_MENU), which each takes as it opens and frees before it returns. |
struct | PSYNERGY_MENU_STATE | The 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
| Name | Description | |
|---|---|---|
#define | TEXT_COLOR_NORMAL TEXT_COLOR_WHITE | the window text's default colour |
#define | ICON_SHOWN WINDOW_SPRITE_MOTION_STILL | WINDOW_SPR.motion as the menu sets it: shown, or hidden but kept. |
#define | ICON_HIDDEN WINDOW_SPRITE_MOTION_HIDDEN | |
#define | MENU_ENTRY_ICONS 32 | The menus' list entries, each with an icon sprite. |
#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. |
#define | MENU_ICON_HIDDEN_Y (DISPLAY_HEIGHT + 8) | |
#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. |
#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. |
#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). |
#define | DJINN_BACKDROP_BORDER_VRAM | |
#define | DJINN_MEMBER (entry) | A Djinn list entry's party member, element and index, shifted down. |
#define | DJINN_ENTRY_ELEMENT_OF (entry) | |
#define | DJINN_NUMBER (entry) ((entry) & DJINN_ENTRY_INDEX) | |
#define | MENU_FIGURE_DEPTH (OAM_DEPTH_WINDOW + 10) | The draw slot of the party and Djinn figures the menus place, among the windows' sprites. |
#define | MENU_ITEM_GRID_COLUMNS 5 | Inventory icons occupy five columns in the fifteen-slot list. |
#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. |
#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. |
#define | MENU_DRAW_STATUS_LABEL | Status labels use the Latin font's pixel positions or the Japanese tile grid. |
Enumerations
| Name | Description | |
|---|---|---|
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_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 | DJINNI_STATE { DJINNI_STATE_STANDBY, DJINNI_STATE_SET, DJINNI_STATE_RECOVER … } | What mnDjinnMenuGetEntryState says of a Djinni in the list. |
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). |
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_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 | 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 | 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. |
Functions
| Name | Description | |
|---|---|---|
void | mnPlaceEntryIconInGrid (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. |
void | mnPsynergyMenuPlaceEntryIcon ( 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. |
void | mnItemMenuPlaceIcon ( 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. |
void | mnWindowSetBounds ( WINDOW *window, Sint32 x, Sint32 y, Sint32 width, Sint32 height) | Moves and resizes a window, in tiles. |
void | mnStatusPanelDrawHpPp (UNIT *unit, Sint32 window) | The menu object's functions its parts call before their definitions, or with declarations of their own that disagree. |
void | mnTextDrawStatComparison (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. |
Sint32 | gmInventoryEquipStub (Sint32 unitId, Sint32 slot) | What several parts call, declared once here for all of them. |
void | mnMarkChosenMember (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. |
Sint32 | mnMoveGridCursor (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. |
Sint32 | fdSpriteStartAnimationStub (void *object, Sint32 argument) | Starts an animation on a sprite, unless the sprite plays it already. |
Sint32 | mnStatusScreenListStatuses (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. |
void | mnItemMenuDrawEquipment (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. |
Sint32 | mnAbilityApplyToTargets (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. |
void | mnAbilityPlayUseSound (Sint32 abilityId) | Plays the sound of a Psynergy or item used from the menu; unlike in battle, no animation is drawn and nothing waits. |
void | mnFreeArrows (void) | Frees the VRAM cache slots of the two arrows the menu loaded (mnLoadStatArrows or mnLoadDjinnArrows). |
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. |
void | mnTextDrawNumberRightAligned (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
| Name | Description | |
|---|---|---|
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. |
extern const Uint8 | StatusPanelPpRowString [] | |
extern const Uint8 | StatusPanelHpRowString [] | |
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). |
extern const Uint8 | StatusPanelPpString [] | The PP label outside Japan, which every language writes "PP". |
extern const Uint8 | StatusPanelSlashString [] | 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.
MENU_ICON_HIDDEN_X
#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.
MENU_ICON_HIDDEN_Y
#define MENU_ICON_HIDDEN_Y (DISPLAY_HEIGHT + 8)
Referenced by mnHideEntryIcons() and mnSpawnIconEntries().
Definition at line 60 of file menu_internal.h.
MENU_FIGURE_HIDDEN_Y
#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.
MENU_SAVED_TILE_BYTES
#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.
MENU_FIGURE_DEPTH
#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.
MENU_ITEM_GRID_COLUMNS
#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.
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 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.
| 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 71 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 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).
| Enumerator | Value | Description |
|---|---|---|
DJINN_TUTORIAL_OFF | 0 | |
DJINN_TUTORIAL_GIVE | 1 | Giving a Djinni and setting it: "To give your Djinni to someone else, move it like this." |
DJINN_TUTORIAL_GIVE_PICK | 2 | A on 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 preview. |
DJINN_TUTORIAL_SET | 6 | "After choosing who gets the Djinni, you can "set" it." |
DJINN_TUTORIAL_SET_SPARE | 7 | As DJINN_TUTORIAL_SET; no step leads here. |
DJINN_TUTORIAL_SET_PICK | 8 | A on the Djinni. |
DJINN_TUTORIAL_SET_CHOOSE | 9 | A on its own column. |
DJINN_TUTORIAL_SET_CHANGES | 10 | The preview: "Setting a Djinni changes your attributes and sometimes even your class." |
DJINN_TUTORIAL_CLASS_PSYNERGY | 11 | The preview: "When your class changes, the Psynergy you can use may also change." |
DJINN_TUTORIAL_SET_PREVIEW | 12 | A on the preview. |
DJINN_TUTORIAL_SET_DONE | 13 | B, out of the menu. |
DJINN_TUTORIAL_POWERS | 14 | The Djinn's powers: a wait, then "Each Djinni has different, unique powers." and the two lines after it. |
DJINN_TUTORIAL_POWERS_TALK | 15 | |
DJINN_TUTORIAL_POWERS_WAIT | 16 | |
DJINN_TUTORIAL_POWERS_WAIT_MORE | 17 | |
DJINN_TUTORIAL_POWERS_PICK | 18 | A on 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. |
DJINN_TUTORIAL_CLOSE | 28 | Waits 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.
| Enumerator | Value | Description |
|---|---|---|
DJINNI_STATE_STANDBY | 0 | on standby: R sets it |
DJINNI_STATE_SET | 1 | set: R puts it on standby |
DJINNI_STATE_RECOVERING | 2 | neither: recovering from a summon |
Definition at line 152 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 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).
| Enumerator | Value | Description |
|---|---|---|
DJINN_COMPARE_TRADE | 0 | |
DJINN_COMPARE_GIVE | 1 | |
DJINN_COMPARE_STANDBY | 2 | |
DJINN_COMPARE_SET | 3 |
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).
| 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 | second "Your PP is maxed out!" (no use chooses it) |
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." (no use chooses it) |
ITEM_USE_RESULT_NOT_CURSED | 15 | "You are not cursed." (no use chooses it) |
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 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.
| 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 571 of file menu_internal.h.
PSYNERGY_LIST_MODE
enum PSYNERGY_LIST_MODE
Which Psynergy mnPsynergyMenuCollectActions lists.
| Enumerator | Value | Description |
|---|---|---|
PSYNERGY_LIST_ALL | 0 | those with a field effect or field-usable 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 579 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 (fdHasPsynergyCueStub), 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 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.
| 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 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.
| 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 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
MenuBackdropBorderTile
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.