Alchemy
Loading...
Searching...
No Matches

status.c File Reference

The member chooser and the Status menu: its member row, status page, Psynergy page and equipment page. More...

Go to the source code of this file.

Macros

#define CHARACTER_SELECTOR_OWNER_COUNT   8
#define STATUS_SAVED_TILE_BYTES   0x2000
#define STATUS_HELP_TEXT_MAX   0x80
#define STATUS_STAT_DIGITS   3
#define STATUS_STAT_X   200
#define STATUS_EQUIP_PAGE_SIZE   5
#define STATUS_PSYNERGY_CURSOR_X   55
#define STATUS_PSYNERGY_CURSOR_Y   60
#define STATUS_EQUIP_SLOT_X   1
#define STATUS_EQUIP_SLOT_WIDTH   12
#define SHOP_PAGE_ICONS_X   119
#define SHOP_ITEM_NAME_X   128
#define SHOP_STAT_X   80
#define SHOP_EMPTY_MESSAGE_X   120
#define STATUS_EQUIP_WINDOW_WIDTH   15
#define STATUS_EQUIPPED_NAME_X   8

Typedefs

typedef u64 ExperienceDifference

Functions

s32 Menu_OpenCharacterSelector (void)
 Lets the player choose one party member, over the field (the Colosso scenes use it).
s32 CharacterSelector_Run (void)
 The member chooser's loop. Returns the chosen member's id, or -1.
s32 StatusMenu_Run (void)
 The Status menu an event opens (window command 4) over the field: saves the first two background palettes and the window tiles it draws over, sets up the party row and, when the party has Djinn, the four Djinn sprites, runs the status pages, then puts everything back.
s32 Menu_RunActionFlow (void)
 The Status menu's pages: choose a party member, then their status page, A for their Psynergy page and A again for their equipment page; B steps back.
s32 CharacterMenu_SelectOwner (s32 slot)
 Lets the player choose a party member in slot, from the one chosen last: the member chooser when the menu is on page 3, else the Status menu's party row.
s32 DjinnMenu_ShowCurrentList (void)
 Shows every Djinn the party has found, a column of seven for each element, until A, B or Select, then puts the Djinn menu back.
static __inline__ void CharacterMenu_SetSelectedOwnerRow (struct CharacterMenuState *menu, s32 selectedOwner)
 Lowers the party figures, then raises the currently selected member.
s32 CharacterSelector_RunRearrange (void)
 The Status menu's party row: Left and Right choose a member, showing their status; L and R move the member one place along the party order; Select lists the Djinn found (once the first is caught, FLAG_DJINNI_0); A chooses the member and B backs out.
s32 PsynergyMenu_SelectOwner (void)
 The member chooser (menu page 3): Left and Right choose a party member, showing their status and Psynergy icons; A chooses and B backs out.
s32 CharacterSelector_MoveEntry (s32 selectedIndex, s32 direction)
 Moves the party member at selectedIndex one place later (direction 1) or earlier (0) in the party order.
void Menu_InitSelectorCursorAndEntries (s32 unused0, s32 unused1, s32 unused2, s32 unused3)
 Sets up the Status menu's first screen: the cursor window with the party's figures, no other windows yet, and an 8 by 2 cursor grid.
void Menu_CreateWindowAndEntryObjects (s32 resource, s32 frame)
 Shows member resource's status in the status window (0, 5, 30 by 15), opening it first with the member's portrait, the item icons on the chooser page, and the eight stat sprites; then draws the status and ailments.
s32 CharacterMenu_SelectCommand (void)
 The member's status page.
void CharacterMenu_DrawSelectionCursor (s32 mode, s32 selected, u8 *entries, s32 invert)
 Highlights (invert 0) or unhighlights (invert 1) the selected entry of the status page: in pane 0 the selected ailment row, as wide as its label (gCharacterMenu_CursorWidths); in pane 1 one of the first four status rows or of the rows below.
void CharacterMenu_DrawSelectionLabels (struct UiWindow *target, s32 selected, const u8 *entries)
 Writes the advice for the selected ailment (two lines, for example how to revive a member who is down) into window target, or that the member is well when they have no ailment.
void StatusMenu_ShowOwnerProgressMessage (struct UiWindow *destination, s32 messageVariant, s32 preserveVariant)
 Writes the help text of status entry messageVariant into destination: the entries skip Djinn when the party has none (preserveVariant 0); the experience entry says how many points the next level needs, or, at level 99, gives the plain experience text.
void CharacterMenu_DrawStatusAilments (struct UiWindow *window, s32 ownerId, s32 mode)
 Draws member ownerId's status page into window: the top rows (ItemMenu_ DrawOwnerStatus), the ailment list or "Normal", and except on the chooser page the Djinn counts by element and, in mode 1, the elemental levels, Power and Resist.
void Runtime_RunBusyWaitDelay (void)
 Spins for 256 loop passes (international editions only).
void ItemMenu_DrawOwnerStatus (struct UiWindow *window, s32 ownerId, s32 flags)
 Draws the top rows of member ownerId's status page into window: name, class, level, experience, HP and PP on the left, Attack, Defense, Agility and Luck on the right.
s32 CharacterMenu_BuildAvailability (u8 *ailments, s32 requested, s32 ownerId)
 Fills ailments[0..4] (CharacterAilment) with member ownerId's ailments: down (only when requested is 1), poison or venom, curse and haunt.
s32 Menu_BuildPageResult (struct MenuResult *result, s32 index)
 Fills result with the item list of the member in pane index for the equipment pages: their unit, the menu's item count, and the page and row of the item chosen last for them, STATUS_EQUIP_PAGE_SIZE items to a page.
static __inline__ u32 XorWord (u32 word, u32 mask)
void Menu_BuildPatternTiles (void)
 Builds twelve 8x8 tiles in the window tile area: two sets of six, each a fill of colour 4 with the rows of gMenu_PatternRowMasks XORed in, the first set growing row by row and the second skipping its top row.
void PsynergyMenu_DrawRange (struct UiWindow *window, s32 x, s32 y, s32 range, s32 unused)
 Draws a Psynergy range icon at (x, y) of window: three tiles from the range icon tiles, the left one mirrored.
s32 PsynergyMenu_DrawRangePage (struct UiWindow *window, s32 unused, struct MenuResult *state)
 Updates the Psynergy page for the row under the cursor: the Psynergy's description in the info window, where it can be used (in the field, in battle, or anywhere), and the row highlights with the range icons.
s32 PsynergyMenu_DrawListPage (struct UiWindow *window, s32 unused, const struct MenuResult *res)
s32 PsynergyMenu_SelectAction (void)
s32 PsynergyMenu_ActionReturnTrue (void)
 A page callback.
void PsynergyMenu_DrawPreparedPsynergyIcons (const void *unused, s32 ownerId)
 Draws this owner's prepared Psynergy list in the shared entry sprites.
void PsynergyMenu_PreparedIconsNoOp (void)
 Reserved empty callback for the prepared Psynergy page.
void PsynergyMenu_PreparedIconsSecondNoOp (void)
 Reserved second empty callback for the prepared Psynergy page.
s32 ItemMenu_DrawEquipPage (struct UiWindow *window, s32 unused, struct MenuResult *state)
s32 Shop_DrawItemPage (struct UiWindow *window, s32 unused, struct MenuResult *state)
s32 ItemMenu_SelectItem (void)
s32 Menu_MoveGridCursor (s32 *columnOut, s32 *rowOut, s32 direction)
 Moves through the status grid's irregular rows and returns row * 9 + column.
s32 Menu_ReservedStatusOne (void)
void ItemMenu_DrawCategory (struct UiWindow *window, s32 ownerId, s32 mode)
 Shows the owner's equipped items and optionally its category icons.
void ItemMenu_DrawEquippedItemNames (struct UiWindow *window, u16 *items)
 Draws the nonempty equipment entries by their item names.
void Menu_PlaceEntryObjectsInGrid (s32 originX, s32 originY, s32 columns)
 Positions the shared entry sprites on the requested grid.
void Menu_PlaceEntryObjectInGrid (struct RenderOutput *icon, s32 index, s32 originX, s32 originY, s32 columns)
 Positions one entry sprite in the requested number of grid columns.
void ItemMenu_ArrangeCategoryItemIcons (u16 *items)
 Loads and places the owner's equipment-category icons.
void ItemMenu_PosCategory (void)
 Moves all entry sprites off screen before arranging another category.
s32 Menu_CreateEightEntryObjects (struct UiWindow *window)
 Creates the eight shared category sprites, initially off screen.
void ItemMenu_ApplyFlags (const u8 *flags)
 Shows enabled category icons down the left edge, sixteen pixels apart.
void ItemMenu_ResetCategory (void)
 Moves each category sprite off screen before it is reused.
s32 CharacterMenu_UpdateSelectionIcons (const u8 *enabled)
 Loads each enabled ailment's icon into its category resource slot.

Variables

const struct TileMask gMenu_PatternRowMasks []

Detailed Description

The member chooser and the Status menu: its member row, status page, Psynergy page and equipment page.

Part of menu.c, the menu object, compiled only through it.

Definition in file status.c.

Macro Definition Documentation

◆ CHARACTER_SELECTOR_OWNER_COUNT

#define CHARACTER_SELECTOR_OWNER_COUNT   8

Definition at line 13 of file status.c.

Referenced by Menu_OpenCharacterSelector().

◆ STATUS_SAVED_TILE_BYTES

#define STATUS_SAVED_TILE_BYTES   0x2000

Definition at line 20 of file status.c.

Referenced by StatusMenu_Run().

◆ STATUS_HELP_TEXT_MAX

#define STATUS_HELP_TEXT_MAX   0x80

Definition at line 27 of file status.c.

Referenced by StatusMenu_ShowOwnerProgressMessage().

◆ STATUS_STAT_DIGITS

#define STATUS_STAT_DIGITS   3

Definition at line 34 of file status.c.

Referenced by ItemMenu_DrawOwnerStatus().

◆ STATUS_STAT_X

#define STATUS_STAT_X   200

Definition at line 35 of file status.c.

Referenced by ItemMenu_DrawOwnerStatus().

◆ STATUS_EQUIP_PAGE_SIZE

#define STATUS_EQUIP_PAGE_SIZE   5

Definition at line 43 of file status.c.

Referenced by Menu_BuildPageResult().

◆ STATUS_PSYNERGY_CURSOR_X

#define STATUS_PSYNERGY_CURSOR_X   55

Definition at line 50 of file status.c.

Referenced by PsynergyMenu_SelectAction().

◆ STATUS_PSYNERGY_CURSOR_Y

#define STATUS_PSYNERGY_CURSOR_Y   60

Definition at line 51 of file status.c.

Referenced by PsynergyMenu_SelectAction().

◆ STATUS_EQUIP_SLOT_X

#define STATUS_EQUIP_SLOT_X   1

Definition at line 59 of file status.c.

Referenced by ItemMenu_DrawEquipPage().

◆ STATUS_EQUIP_SLOT_WIDTH

#define STATUS_EQUIP_SLOT_WIDTH   12

Definition at line 60 of file status.c.

Referenced by ItemMenu_DrawEquipPage().

◆ SHOP_PAGE_ICONS_X

#define SHOP_PAGE_ICONS_X   119

Definition at line 69 of file status.c.

Referenced by Shop_DrawItemPage().

◆ SHOP_ITEM_NAME_X

#define SHOP_ITEM_NAME_X   128

Definition at line 70 of file status.c.

Referenced by Shop_DrawItemPage().

◆ SHOP_STAT_X

#define SHOP_STAT_X   80

Definition at line 71 of file status.c.

Referenced by Shop_DrawItemPage().

◆ SHOP_EMPTY_MESSAGE_X

#define SHOP_EMPTY_MESSAGE_X   120

Definition at line 81 of file status.c.

Referenced by Shop_DrawItemPage().

◆ STATUS_EQUIP_WINDOW_WIDTH

#define STATUS_EQUIP_WINDOW_WIDTH   15

Definition at line 86 of file status.c.

Referenced by ItemMenu_SelectItem().

◆ STATUS_EQUIPPED_NAME_X

#define STATUS_EQUIPPED_NAME_X   8

Definition at line 87 of file status.c.

Referenced by ItemMenu_DrawEquippedItemNames().

Typedef Documentation

◆ ExperienceDifference

Definition at line 913 of file status.c.

Function Documentation

◆ Menu_OpenCharacterSelector()

s32 Menu_OpenCharacterSelector ( void )

Lets the player choose one party member, over the field (the Colosso scenes use it).

Returns the chosen member's id, or -1 when the player backs out.

Definition at line 95 of file status.c.

Referenced by Colosso_OfferCheeringSpot(), and Menu_OpenCharacterSelector().

◆ CharacterSelector_Run()

s32 CharacterSelector_Run ( void )

The member chooser's loop. Returns the chosen member's id, or -1.

Definition at line 124 of file status.c.

Referenced by CharacterSelector_Run(), and Menu_OpenCharacterSelector().

◆ StatusMenu_Run()

s32 StatusMenu_Run ( void )

The Status menu an event opens (window command 4) over the field: saves the first two background palettes and the window tiles it draws over, sets up the party row and, when the party has Djinn, the four Djinn sprites, runs the status pages, then puts everything back.

Returns their result.

Definition at line 145 of file status.c.

Referenced by StatusMenu_Run().

◆ Menu_RunActionFlow()

s32 Menu_RunActionFlow ( void )

The Status menu's pages: choose a party member, then their status page, A for their Psynergy page and A again for their equipment page; B steps back.

Returns the last page's result, or -1 when the player backs out or presses Start.

Definition at line 227 of file status.c.

Referenced by Menu_RunActionFlow(), and StatusMenu_Run().

◆ CharacterMenu_SelectOwner()

s32 CharacterMenu_SelectOwner ( s32 slot)

Lets the player choose a party member in slot, from the one chosen last: the member chooser when the menu is on page 3, else the Status menu's party row.

Game flag 0x172 adds a divider to the party window. Returns the chooser's result.

Definition at line 279 of file status.c.

Referenced by CharacterMenu_SelectOwner(), CharacterSelector_Run(), and Menu_RunActionFlow().

◆ DjinnMenu_ShowCurrentList()

s32 DjinnMenu_ShowCurrentList ( void )

Shows every Djinn the party has found, a column of seven for each element, until A, B or Select, then puts the Djinn menu back.

Definition at line 310 of file status.c.

Referenced by CharacterSelector_RunRearrange(), and DjinnMenu_ShowCurrentList().

◆ CharacterMenu_SetSelectedOwnerRow()

__inline__ void CharacterMenu_SetSelectedOwnerRow ( struct CharacterMenuState * menu,
s32 selectedOwner )
static

Lowers the party figures, then raises the currently selected member.

Definition at line 382 of file status.c.

Referenced by CharacterMenu_SetSelectedOwnerRow(), and CharacterSelector_RunRearrange().

◆ CharacterSelector_RunRearrange()

s32 CharacterSelector_RunRearrange ( void )

The Status menu's party row: Left and Right choose a member, showing their status; L and R move the member one place along the party order; Select lists the Djinn found (once the first is caught, FLAG_DJINNI_0); A chooses the member and B backs out.

Returns 1 or -1.

Definition at line 395 of file status.c.

Referenced by CharacterMenu_SelectOwner(), and CharacterSelector_RunRearrange().

◆ PsynergyMenu_SelectOwner()

s32 PsynergyMenu_SelectOwner ( void )

The member chooser (menu page 3): Left and Right choose a party member, showing their status and Psynergy icons; A chooses and B backs out.

Returns 1 or -1.

Definition at line 508 of file status.c.

Referenced by CharacterMenu_SelectOwner(), and PsynergyMenu_SelectOwner().

◆ CharacterSelector_MoveEntry()

s32 CharacterSelector_MoveEntry ( s32 selectedIndex,
s32 direction )

Moves the party member at selectedIndex one place later (direction 1) or earlier (0) in the party order.

Returns 1, or 0 when it cannot move.

Definition at line 577 of file status.c.

Referenced by CharacterSelector_MoveEntry(), and CharacterSelector_RunRearrange().

◆ Menu_InitSelectorCursorAndEntries()

void Menu_InitSelectorCursorAndEntries ( s32 unused0,
s32 unused1,
s32 unused2,
s32 unused3 )

Sets up the Status menu's first screen: the cursor window with the party's figures, no other windows yet, and an 8 by 2 cursor grid.

The parameters are not used.

Definition at line 643 of file status.c.

Referenced by Menu_InitSelectorCursorAndEntries(), Menu_OpenCharacterSelector(), and StatusMenu_Run().

◆ Menu_CreateWindowAndEntryObjects()

void Menu_CreateWindowAndEntryObjects ( s32 resource,
s32 frame )

Shows member resource's status in the status window (0, 5, 30 by 15), opening it first with the member's portrait, the item icons on the chooser page, and the eight stat sprites; then draws the status and ailments.

Definition at line 662 of file status.c.

Referenced by CharacterSelector_RunRearrange(), Menu_CreateWindowAndEntryObjects(), and PsynergyMenu_SelectOwner().

◆ CharacterMenu_SelectCommand()

s32 CharacterMenu_SelectCommand ( void )

The member's status page.

The left pane lists their ailments (or the stat help when they have none) and the right pane the status entries (name and level, experience, HP, PP, Djinn when the party has any, elemental levels, Power and Resist); the cursor's entry is highlighted and explained in the help window. Up and Down move in a pane, Left and Right switch panes, L and R switch to the previous or next member; A goes on to the Psynergy page and B backs out. Returns 1 or -1.

Definition at line 695 of file status.c.

Referenced by CharacterMenu_SelectCommand(), and Menu_RunActionFlow().

◆ CharacterMenu_DrawSelectionCursor()

void CharacterMenu_DrawSelectionCursor ( s32 mode,
s32 selected,
u8 * entries,
s32 invert )

Highlights (invert 0) or unhighlights (invert 1) the selected entry of the status page: in pane 0 the selected ailment row, as wide as its label (gCharacterMenu_CursorWidths); in pane 1 one of the first four status rows or of the rows below.

Definition at line 844 of file status.c.

Referenced by CharacterMenu_DrawSelectionCursor(), and CharacterMenu_SelectCommand().

◆ CharacterMenu_DrawSelectionLabels()

void CharacterMenu_DrawSelectionLabels ( struct UiWindow * target,
s32 selected,
const u8 * entries )

Writes the advice for the selected ailment (two lines, for example how to revive a member who is down) into window target, or that the member is well when they have no ailment.

Definition at line 890 of file status.c.

Referenced by CharacterMenu_DrawSelectionLabels(), and CharacterMenu_SelectCommand().

◆ StatusMenu_ShowOwnerProgressMessage()

void StatusMenu_ShowOwnerProgressMessage ( struct UiWindow * destination,
s32 messageVariant,
s32 preserveVariant )

Writes the help text of status entry messageVariant into destination: the entries skip Djinn when the party has none (preserveVariant 0); the experience entry says how many points the next level needs, or, at level 99, gives the plain experience text.

Definition at line 922 of file status.c.

Referenced by CharacterMenu_SelectCommand(), and StatusMenu_ShowOwnerProgressMessage().

◆ CharacterMenu_DrawStatusAilments()

void CharacterMenu_DrawStatusAilments ( struct UiWindow * window,
s32 ownerId,
s32 mode )

Draws member ownerId's status page into window: the top rows (ItemMenu_ DrawOwnerStatus), the ailment list or "Normal", and except on the chooser page the Djinn counts by element and, in mode 1, the elemental levels, Power and Resist.

mode's 0x100 keeps what is drawn instead of clearing it.

Definition at line 956 of file status.c.

Referenced by CharacterMenu_DrawStatusAilments(), CharacterMenu_SelectCommand(), and Menu_CreateWindowAndEntryObjects().

◆ Runtime_RunBusyWaitDelay()

void Runtime_RunBusyWaitDelay ( void )

Spins for 256 loop passes (international editions only).

Definition at line 1066 of file status.c.

Referenced by Runtime_RunBusyWaitDelay().

◆ ItemMenu_DrawOwnerStatus()

void ItemMenu_DrawOwnerStatus ( struct UiWindow * window,
s32 ownerId,
s32 flags )

Draws the top rows of member ownerId's status page into window: name, class, level, experience, HP and PP on the left, Attack, Defense, Agility and Luck on the right.

flags' 0x100 keeps what is drawn instead of clearing it.

Definition at line 1080 of file status.c.

Referenced by CharacterMenu_DrawStatusAilments(), and ItemMenu_DrawOwnerStatus().

◆ CharacterMenu_BuildAvailability()

s32 CharacterMenu_BuildAvailability ( u8 * ailments,
s32 requested,
s32 ownerId )

Fills ailments[0..4] (CharacterAilment) with member ownerId's ailments: down (only when requested is 1), poison or venom, curse and haunt.

Returns how many they have.

Definition at line 1130 of file status.c.

Referenced by CharacterMenu_BuildAvailability(), CharacterMenu_DrawStatusAilments(), CharacterMenu_SelectCommand(), and Menu_DrawOwnerStatusPanel().

◆ Menu_BuildPageResult()

s32 Menu_BuildPageResult ( struct MenuResult * result,
s32 index )

Fills result with the item list of the member in pane index for the equipment pages: their unit, the menu's item count, and the page and row of the item chosen last for them, STATUS_EQUIP_PAGE_SIZE items to a page.

Returns 1.

Definition at line 1169 of file status.c.

Referenced by ItemMenu_SelectItem(), Menu_BuildPageResult(), and PsynergyMenu_SelectAction().

◆ XorWord()

__inline__ u32 XorWord ( u32 word,
u32 mask )
static

◆ Menu_BuildPatternTiles()

void Menu_BuildPatternTiles ( void )

Builds twelve 8x8 tiles in the window tile area: two sets of six, each a fill of colour 4 with the rows of gMenu_PatternRowMasks XORed in, the first set growing row by row and the second skipping its top row.

Definition at line 1209 of file status.c.

Referenced by Menu_BuildPatternTiles(), and PsynergyMenu_SelectAction().

◆ PsynergyMenu_DrawRange()

void PsynergyMenu_DrawRange ( struct UiWindow * window,
s32 x,
s32 y,
s32 range,
s32 unused )

Draws a Psynergy range icon at (x, y) of window: three tiles from the range icon tiles, the left one mirrored.

Definition at line 1247 of file status.c.

Referenced by PsynergyMenu_DrawListPage(), and PsynergyMenu_DrawRange().

◆ PsynergyMenu_DrawRangePage()

s32 PsynergyMenu_DrawRangePage ( struct UiWindow * window,
s32 unused,
struct MenuResult * state )

Updates the Psynergy page for the row under the cursor: the Psynergy's description in the info window, where it can be used (in the field, in battle, or anywhere), and the row highlights with the range icons.

Definition at line 1264 of file status.c.

Referenced by PsynergyMenu_DrawRangePage(), and PsynergyMenu_SelectAction().

◆ PsynergyMenu_DrawListPage()

s32 PsynergyMenu_DrawListPage ( struct UiWindow * window,
s32 unused,
const struct MenuResult * res )

Definition at line 1358 of file status.c.

Referenced by PsynergyMenu_DrawListPage(), and PsynergyMenu_SelectAction().

◆ PsynergyMenu_SelectAction()

s32 PsynergyMenu_SelectAction ( void )

Definition at line 1432 of file status.c.

Referenced by Menu_RunActionFlow(), and PsynergyMenu_SelectAction().

◆ PsynergyMenu_ActionReturnTrue()

s32 PsynergyMenu_ActionReturnTrue ( void )

A page callback.

Definition at line 1547 of file status.c.

Referenced by PsynergyMenu_ActionReturnTrue().

◆ PsynergyMenu_DrawPreparedPsynergyIcons()

void PsynergyMenu_DrawPreparedPsynergyIcons ( const void * unused,
s32 ownerId )

Draws this owner's prepared Psynergy list in the shared entry sprites.

Definition at line 1550 of file status.c.

Referenced by PsynergyMenu_DrawPreparedPsynergyIcons(), and PsynergyMenu_SelectAction().

◆ PsynergyMenu_PreparedIconsNoOp()

void PsynergyMenu_PreparedIconsNoOp ( void )

Reserved empty callback for the prepared Psynergy page.

Definition at line 1559 of file status.c.

Referenced by PsynergyMenu_PreparedIconsNoOp().

◆ PsynergyMenu_PreparedIconsSecondNoOp()

void PsynergyMenu_PreparedIconsSecondNoOp ( void )

Reserved second empty callback for the prepared Psynergy page.

Definition at line 1562 of file status.c.

Referenced by PsynergyMenu_PreparedIconsSecondNoOp().

◆ ItemMenu_DrawEquipPage()

s32 ItemMenu_DrawEquipPage ( struct UiWindow * window,
s32 unused,
struct MenuResult * state )

Definition at line 1564 of file status.c.

Referenced by ItemMenu_DrawEquipPage(), and ItemMenu_SelectItem().

◆ Shop_DrawItemPage()

s32 Shop_DrawItemPage ( struct UiWindow * window,
s32 unused,
struct MenuResult * state )

Definition at line 1642 of file status.c.

Referenced by ItemMenu_SelectItem(), and Shop_DrawItemPage().

◆ ItemMenu_SelectItem()

s32 ItemMenu_SelectItem ( void )

Definition at line 1685 of file status.c.

Referenced by ItemMenu_SelectItem(), and Menu_RunActionFlow().

◆ Menu_MoveGridCursor()

s32 Menu_MoveGridCursor ( s32 * columnOut,
s32 * rowOut,
s32 direction )

Moves through the status grid's irregular rows and returns row * 9 + column.

Definition at line 1811 of file status.c.

Referenced by Menu_MoveGridCursor().

◆ Menu_ReservedStatusOne()

s32 Menu_ReservedStatusOne ( void )

Definition at line 1880 of file status.c.

Referenced by Menu_ReservedStatusOne().

◆ ItemMenu_DrawCategory()

void ItemMenu_DrawCategory ( struct UiWindow * window,
s32 ownerId,
s32 mode )

Shows the owner's equipped items and optionally its category icons.

Definition at line 1883 of file status.c.

Referenced by ItemMenu_DrawCategory(), ItemMenu_OpenCategory(), and ItemMenu_SelectItem().

◆ ItemMenu_DrawEquippedItemNames()

void ItemMenu_DrawEquippedItemNames ( struct UiWindow * window,
u16 * items )

Draws the nonempty equipment entries by their item names.

Definition at line 1904 of file status.c.

Referenced by ItemMenu_DrawCategory(), and ItemMenu_DrawEquippedItemNames().

◆ Menu_PlaceEntryObjectsInGrid()

void Menu_PlaceEntryObjectsInGrid ( s32 originX,
s32 originY,
s32 columns )

Positions the shared entry sprites on the requested grid.

Definition at line 1934 of file status.c.

Referenced by Menu_PlaceEntryObjectsInGrid(), and PsynergyMenu_SelectOwner().

◆ Menu_PlaceEntryObjectInGrid()

void Menu_PlaceEntryObjectInGrid ( struct RenderOutput * icon,
s32 index,
s32 originX,
s32 originY,
s32 columns )

Positions one entry sprite in the requested number of grid columns.

Definition at line 1951 of file status.c.

Referenced by Menu_PlaceEntryObjectInGrid(), and Menu_PlaceEntryObjectsInGrid().

◆ ItemMenu_ArrangeCategoryItemIcons()

void ItemMenu_ArrangeCategoryItemIcons ( u16 * items)

Loads and places the owner's equipment-category icons.

Definition at line 1965 of file status.c.

Referenced by ItemMenu_ArrangeCategoryItemIcons(), and ItemMenu_DrawCategory().

◆ ItemMenu_PosCategory()

void ItemMenu_PosCategory ( void )

Moves all entry sprites off screen before arranging another category.

Definition at line 2001 of file status.c.

Referenced by ItemMenu_ArrangeCategoryItemIcons(), ItemMenu_DrawCategory(), ItemMenu_OpenCategory(), ItemMenu_PosCategory(), ItemMenu_SelectItem(), Menu_ResolveSelectedAction(), and PsynergyMenu_SelectAction().

◆ Menu_CreateEightEntryObjects()

s32 Menu_CreateEightEntryObjects ( struct UiWindow * window)

Creates the eight shared category sprites, initially off screen.

Definition at line 2021 of file status.c.

Referenced by Menu_CreateEightEntryObjects(), and Menu_CreateWindowAndEntryObjects().

◆ ItemMenu_ApplyFlags()

void ItemMenu_ApplyFlags ( const u8 * flags)

Shows enabled category icons down the left edge, sixteen pixels apart.

Definition at line 2043 of file status.c.

Referenced by CharacterMenu_DrawStatusAilments(), and ItemMenu_ApplyFlags().

◆ ItemMenu_ResetCategory()

void ItemMenu_ResetCategory ( void )

Moves each category sprite off screen before it is reused.

Definition at line 2076 of file status.c.

Referenced by CharacterMenu_SelectCommand(), DjinnMenu_ShowCurrentList(), ItemMenu_ApplyFlags(), and ItemMenu_ResetCategory().

◆ CharacterMenu_UpdateSelectionIcons()

s32 CharacterMenu_UpdateSelectionIcons ( const u8 * enabled)

Loads each enabled ailment's icon into its category resource slot.

Definition at line 2093 of file status.c.

Referenced by CharacterMenu_DrawStatusAilments(), and CharacterMenu_UpdateSelectionIcons().

Variable Documentation

◆ gMenu_PatternRowMasks

const struct TileMask gMenu_PatternRowMasks[]
extern

Referenced by Menu_BuildPatternTiles().