src/menu/menu_status.c
The party member chooser and the Status menu: its party member row and its status, Psynergy, range and equipment pages. More…
Included by menu.c.
Macros
| Name | Description | |
|---|---|---|
#define | STATUS_PAGE_NO_CLEAR (1 << 8) | A bit over the page mode: draw without clearing the window first, as for a window just opened. |
#define | STATUS_PAGE_MODE_MASK (STATUS_PAGE_NO_CLEAR - 1) | |
#define | EQUIPPED_ROW_Y (row) ((row) * 16) | The worn items' rows in mnItemMenuDrawEquipment's window, 16 pixels apart: weapon, helm, shield and armor from the top. |
#define | EQUIPPED_ICON_X 216 | |
#define | EQUIPPED_ICON_Y (row) (EQUIPPED_ROW_Y(row) + 32) | |
#define | STATUS_FIGURE_X (index) (130 + (index) * 32) | The Djinn figures stand in a row 32 pixels apart, at y STATUS_FIGURE_ROW_Y, over the status page's Djinn counts. |
#define | STATUS_FIGURE_ROW_Y 128 | |
#define | STATUS_FIGURE_FULL_PAGE_ROW_Y 104 | |
#define | STATUS_FIGURE_HIDDEN_Y -16 | |
#define | DJINN_LIST_COLUMN_WIDTH 56 | The Djinn list (mnStatusScreenShowDjinnList): a column for each element, its Djinni figure standing over it. |
#define | DJINN_LIST_FIGURE_X (element) (32 + (element) * DJINN_LIST_COLUMN_WIDTH) | |
#define | DJINN_LIST_FIGURE_Y 56 | |
#define | DJINN_LIST_PAGE_ROWS 9 | The rows of each element's column on a page of the Djinn list. |
#define | STATUS_LIST_PAGE_ROWS JAPANESE_OR(6, 5) | The rows a page of the Psynergy and item lists shows: Japanese fits six, the other editions five. |
#define | STATUS_ELEMENT_TILE (BG_TILE_PALETTE(STATUS_COLORS_PALETTE) | 1) | The window map entry of the first element icon, in STATUS_COLORS_PALETTE as TILEMAP_ENTRY_ICON gives it; the four elements follow it in order. |
#define | STATUS_ELEMENT_X (element) (((element) * 4 + 15) * 8) | The status page's four element columns, 4 tiles apart from tile 15, where each element's icon stands; its figures end left of it. |
#define | mnStatusScreenClearInfo mnWindowSpriteClearListStub | |
#define | mnStatusScreenDrawInfo mnTextDrawMessageStub | |
#define | STATUS_SAVED_TILE_BYTES 10240 | The window tiles the Status menu saves and restores. |
#define | SWITCH_CHARACTER_HELP_X JAPANESE_OR(64, 80) | The switch-characters help follows the A-button label on the help line: Japanese starts it 64 pixels in, the other editions 80. |
#define | HELP_LENGTH 80 | |
#define | STATUS_STAT_DIGITS JAPANESE_OR(4, 3) | The stat column of the status page's top rows: three digits from 200 or four from 192, both ending at pixel 224. |
#define | STATUS_STAT_X JAPANESE_OR(192, 200) | |
#define | STAT_LABEL (stat) | Stat label stat, 0 to 3, of "Attack", "Defense", "Agility" and "Luck", MsgStatLabel and the three after it, counted back from MsgExpLabel. |
#define | RANGE_PATTERN_PAIR_WORDS 16 | The words of one range icon's two tiles. |
#define | STATUS_RANGE_ICON_FIRST_TILE 768 | The first of the Status menu's range icon BG tiles, which mnPsynergyMenuDrawRange draws as tilemap entries; the battle menu builds its own elsewhere (mnRangeIconBuildTiles). |
#define | FIRST_TILE_ROW 1 | |
#define | USABLE_TOP 72 | |
#define | USABLE_RIGHT 64 | |
#define | USABLE_BOTTOM 96 | |
#define | USABLE_IN_FIELD_MESSAGE ((Sint32)MsgExpLabel + 2) | まちやダンジョン ("towns and dungeons"), the message two after MsgExpLabel. |
#define | USABLE_IN_BATTLE_MESSAGE ((Sint32)MsgExpLabel + 1) | せんとう ("battle"), the message after MsgExpLabel. |
#define | CAN_BE_USED_MESSAGE ((Sint32)MsgDjinnListHelp - 1) | でつかえます ("can be used"), the message before MsgDjinnListHelp. |
#define | WORKS_IN_BATTLE 1 | Where an ability works, as bits: the sentence says the field, battle, or anywhere. |
#define | WORKS_IN_FIELD 2 | |
#define | PAGE_ICONS_X JAPANESE_OR(86, 80) | The Japanese page lists six abilities rather than five, a row higher, and lays its heading, names, costs, page icons and "no Psynergy" message out on its own columns. |
#define | PAGE_ICONS_Y JAPANESE_OR(53, 58) | |
#define | STATUS_PSYNERGY_PP_HEADING_X JAPANESE_OR(144, 176) | |
#define | FIRST_ROW_Y JAPANESE_OR(8, 16) | |
#define | STATUS_PSYNERGY_NAME_X JAPANESE_OR(96, 88) | |
#define | STATUS_PSYNERGY_COST_X JAPANESE_OR(168, 176) | |
#define | FIRST_RANGE_ROW JAPANESE_OR(1, 2) | |
#define | EMPTY_MESSAGE_Y JAPANESE_OR(8, 17) | |
#define | STATUS_PSYNERGY_CURSOR_X JAPANESE_OR(58, 55) | Where the cursor points at the list's first row: a row higher on the Japanese page. |
#define | CURSOR_Y JAPANESE_OR(52, 60) | |
#define | EQUIP_SLOT_X 2 | The tile column the equipment slots' highlight starts at. |
#define | EQUIP_SLOT_WIDTH BY_LANGUAGE(9, 9, 10, 10, 10, 10) | The equipment slots' highlight is a tile wider in the European editions. |
#define | ITEM_NAME_X BY_LANGUAGE(136, 136, 136, 128, 136, 128) | |
#define | EMPTY_MESSAGE_X GERMAN_OR(112, 120) | |
#define | STAT_X BY_LANGUAGE(72, 72, 72, 80, 80, 72) | |
#define | EQUIP_WINDOW_WIDTH JAPANESE_OR(13, 15) | The equip window's width in tiles, narrower in Japanese. |
#define | STATUS_EQUIPMENT_CURSOR_X FRENCH_OR(100, 96) | The French list puts its cursor 4 pixels further right. |
#define | ENTRY_ICON_CELL_SIZE 16 | The side of a cell of the grids mnPlaceEntryIconInGrid places icons in. |
Enumerations
| Name | Description | |
|---|---|---|
enum | STATUS_SCREEN_STEP { STATUS_STEP_MEMBER, STATUS_STEP_STATUS, STATUS_STEP_PSYNERGY … } | The steps of the Status menu (mnStatusScreenRunPages). |
enum | anonymous enum { STATUS_PAGE_SUMMARY, STATUS_PAGE_FULL } | The page modes of mnStatusScreenDrawStatusPage and mnStatusScreenDrawTopRows, in the mode's low byte: the party row's summary, or the full status page, with the elemental levels, Power and Resist. |
enum | STATUS_HELP_LINE { STATUS_HELP_NAME_AND_LEVEL, STATUS_HELP_EXPERIENCE, STATUS_H … } | The help lines of the status page's right-hand column, counted from MsgYourNameAndLevelExperience. |
enum | STATUS_PAGE_REFRESH { STATUS_PAGE_REFRESH_NONE, STATUS_PAGE_REFRESH_ROWS, STATUS_P … } | What the Psynergy and equipment pages redraw on their next pass: nothing, the rows for the cursor's new place, or everything for a new party member. |
Functions
| Name | Description | |
|---|---|---|
void | mnStatusScreenInit (Sint32 unusedA, Sint32 unusedB, Sint32 unusedC, Sint32 unusedD) | Sets up the party row of the Status menu and the party member chooser: the top-left window with the hand cursor and the party's figures, no other window yet, and an 8 by 2 cursor grid. |
Sint32 | mnPartyMemberChooserRun (void) | The party member chooser's loop. |
Sint32 | mnPartyMemberChooserOpen (void) | Lets the player choose one party member, over the field. |
Sint32 | mnStatusScreenSelectMember (Sint32 slot) | Lets the player choose a party member in slot, from the one chosen last: the party member chooser on the chooser page, else the Status menu's party row. |
Sint32 | mnStatusScreenRunPages (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, whose A goes back round to the status page; B on any page goes back to the party member row. |
void | mnIconLoadSlots (void) | Loads the five status icons (StatusScreenStatusIcons), one for each status mnPanelDrawEntryList lists (UNIT_STAT), into free VRAM cache slots, and starts drawing them (mnIconPushSlots). |
void | mnIconReleaseSlots (void) | Stops drawing the five status icons and frees their VRAM cache slots. |
Sint32 | mnStatusScreenRun (void) | The Status screen, the field menu's Status, over the field: saves the background palettes and the window tiles it draws over, sets up the party row, the five command icons and, when the party has Djinn, the Djinn figures, runs the status pages, then puts everything back. |
void | mnIconSetActive (Sint32 active) | Shows the five status icons (1) or hides them (0). |
Sint32 | mnStatusScreenRunStatusPage (void) | The Status menu's status page: Up and Down choose one of the party member's statuses, whose advice the help window gives, Right the other column, its entries explained in turn; L and R change party member. |
Sint32 | mnStatusScreenRunPsynergyPage (void) | The Status menu's Psynergy page: the party member's Psynergy, STATUS_LIST_PAGE_ROWS to a page, each with its PP cost and range icon; the cursor's Psynergy is described in the info window with where it can be used. |
Sint32 | mnStatusScreenRunEquipmentPage (void) | The Status menu's equipment page: the party member's items, STATUS_LIST_PAGE_ROWS to a page, beside the equipment window of what they wear. |
Sint32 | mnPartyMemberChooserChooseMember (void) | The party member chooser (STATUS_SCREEN_PAGE_CHOOSER): Left and Right choose a party member, showing their status and Psynergy icons; A chooses and B backs out. |
Sint32 | mnStatusScreenRunPartyRow (void) | The Status menu's party row: Left and Right choose a party member, showing their status; L and R move the party member one place along the party order; Select lists the Djinn found (once Echo, the first Djinni, has joined); A chooses the party member and B backs out. |
void | mnStatusScreenShowDjinnList (void) | The Djinn list Select opens from the party row: every Djinni the party has found, a column for each element, nine a page over two pages, The Lost Age's own first and The Broken Seal's after them, until A, B or Select. |
void | mnStatusScreenShowMemberStatus (Sint32 ownerId, Sint32 page) | Shows party member ownerId's status in the party row's status window, opening it the first time with the party member's portrait (and, for the party member chooser, the Psynergy icons). page is not used. |
Bool | mnStatusScreenMovePartyMember (Sint32 selection, Sint32 direction) | Moves the party member at selectedIndex one place later (direction 1) or earlier (0) in the party order. |
void | mnPlaceEntryIconsInGrid (Sint32 x, Sint32 y, Sint32 columns) | Places each of the 32 entry icons on the grid. |
void | mnStatusScreenDrawStatusPage (Sint32 window, Sint32 ownerId, Sint32 mode) | Draws party member memberId's status page into window: the top rows (mnStatusScreenDrawTopRows), the status list or "Normal", and except on the chooser page the Djinn counts by element and, on the full page (STATUS_PAGE_FULL), the elemental levels, Power and Resist. |
void | mnStatusScreenDrawSelectionCursor (Sint32 column, Sint32 selected, Uint8 *entries, Sint32 clear) | Highlights (clear 0) or unhighlights (clear 1) the selected entry of the status page: in column 0 the selected status row, as wide as its label (StatusScreenCursorWidths); in column 1 one of the first four rows or of the rows below. |
void | mnStatusScreenDrawSelectionLabels (Sint32 window, Sint32 selected, const Uint8 *entries) | Writes the advice for the selected status (two lines, for example how to revive a party member who is down) into window, or that the party member is well when they have no status. |
void | mnStatusScreenShowMemberProgressMessage (void *window, Sint32 help, Sint32 hasDjinn) | Writes help line help of the status page's right-hand column into window, skipping the Djinn line unless hasDjinn says the party has Djinn. |
Uint32 | gmUnitGetExperienceForLevelStub (Sint32 memberId, Sint32 level) | Returns the experience party member memberId needs for level. |
void | mnStatusScreenDrawTopRows (Sint32 window, Sint32 owner, Sint32 flags) | Draws the top rows of party member owner's status page into window: name, class, level, experience, HP and PP on the left, Attack, Defense, Agility and Luck on the right. |
void | mnPanelDrawEntryList (WINDOW *panel, Sint32 x, Sint32 y, const Uint8 *enabled) | Lists the statuses enabled marks into panel from (x, y), one a 16-pixel row with its icon, or "Your status is normal." when there are none; the icons of the others go off screen. |
Sint32 | gmUnitGetElementLevelStub (Sint32 ownerId, Sint32 element) | Returns how strongly a unit is attuned to element, its whole element level (a tenth of what gmUnitGetElementLevels counts), and 0 for ELEMENT_NONE. |
Sint32 | mnPagedListBuild (PAGED_LIST *list, Sint32 side) | Fills list with the item list of the party member in side for the equipment pages: their unit, the menu's item count, and the page and row of the item chosen last for them, STATUS_LIST_PAGE_ROWS items to a page. |
void | mnBuildPatternTiles (void) | Builds the twelve range icons mnPsynergyMenuDrawRange draws, as the 24 BG tiles from STATUS_RANGE_ICON_FIRST_TILE: icon n is a centre tile and an end tile, filled with WINDOW_BACKGROUND_COLOR, then marked row by row by XOR with MenuPatternRowMasks, the first set's marks growing row by row, the second set's leaving row 1 bare. |
void | mnPsynergyMenuDrawRange ( Sint32 window, Sint32 x, Sint32 y, Sint32 range, Sint32 unused) | Draws a Psynergy range icon at tile (x, y) of window: three tiles from pair range of the range icon tiles (mnBuildPatternTiles), the side tile on both ends, mirrored on the left, and the centre tile between. range is the ability's range less one (0 for the aimed unit alone), or RANGE_ICON_ALL for ABILITY_RANGE_ALL (mnStatusScreenDrawPsynergyPage). |
Sint32 | mnStatusScreenShowPsynergyRow (Sint32 window, Sint32 unused, PAGED_LIST *list) | 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. |
Sint32 | mnStatusScreenDrawPsynergyPage (Sint32 window, Sint32 unused, const PAGED_LIST *list) | Draws one page of the Status menu's Psynergy page into window: each ability's name, PP cost and range, "You have no Psynergy." when there is none, then the party member's name, class and level. |
Sint32 | mnStatusScreenShowEquipmentRow (Sint32 window, Sint32 unused, PAGED_LIST *list) | Updates the Status menu's equipment page for the row under the cursor: the item's description in the info window, the row highlights, and in the equipment window the highlight of the slot the item is worn in, if it is. |
Sint32 | mnStatusScreenDrawEquipmentPage (Sint32 window, Sint32 unused, PAGED_LIST *list) | Draws one page of the member's items into window: STATUS_LIST_PAGE_ROWS names, or "no items", then the member's name, Attack and Defense. |
void | mnItemMenuDrawEquipment (Sint32 window, Sint32 ownerId, 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. |
void | mnItemMenuDrawEquippedItemNames (Sint32 window, Uint16 *items) | Writes the name of each equipped item of the inventory into window, below its slot's label: the weapon, the helm, the shield, then the armor. |
void | mnPlaceEntryIconInGrid (WINDOW_SPR *icon, Sint32 index, Sint32 originX, Sint32 originY, Sint32 columns) | Places icon at cell index (an index above 31 is taken as 0) of a grid of ENTRY_ICON_CELL_SIZE square cells, columns wide, from (originX, originY), and shows it. |
void | mnItemMenuArrangeCategoryItemIcons (Uint16 *items) | Places the icon of each worn weapon, armor, shield and helm at x 216, on its slot's row of mnItemMenuDrawEquipment's window; the others stay off screen. |
void | mnHideEntryIcons (void) | Moves all 32 entry icons off screen, 8 pixels past its right and bottom edges, before a screen lays them out again. |
Variables
| Name | Description | |
|---|---|---|
extern const Uint8 | MenuLvString [] | The Status screen's level label: Lv; Nv. in Spanish, Niv in French. |
extern const Uint8 | MenuSlashString [] | / between a current and a maximum HP or PP, and between a set and a held Djinn count. |
extern const Uint8 | MenuHpString [] | The HP label: HP; KP in German, PV in Spanish and French, PS in Italian. |
extern const Uint8 | MenuPpString [] | The PP label: PP; EP in German. |
extern const Uint32 | MenuPatternRowMasks [][2] | Pairs of 4-bit rows of dots in colour 5, each reaching further right than the last, that mnBuildPatternTiles XORs into its tile pairs (menu_pattern_masks.c). |
Description
The party member chooser and the Status menu: its party member row and its
status, Psynergy, range and equipment pages. Part of menu.c.
Macros in detail
STATUS_PAGE_NO_CLEAR
#define STATUS_PAGE_NO_CLEAR (1 << 8)
A bit over the page mode: draw without clearing the window first, as for a window just opened.
Referenced by mnStatusScreenDrawStatusPage(), mnStatusScreenDrawTopRows() and mnStatusScreenShowMemberStatus().
Definition at line 24 of file menu_status.c.
STATUS_PAGE_MODE_MASK
#define STATUS_PAGE_MODE_MASK (STATUS_PAGE_NO_CLEAR - 1)
Referenced by mnStatusScreenDrawStatusPage().
Definition at line 25 of file menu_status.c.
EQUIPPED_ROW_Y
#define EQUIPPED_ROW_Y(row) ((row) * 16)
The worn items' rows in mnItemMenuDrawEquipment's window, 16 pixels apart:
weapon, helm, shield and armor from the top. A slot's label stands on its
row, its item's name a line below, and its icon at EQUIPPED_ICON_X on screen.
Definition at line 30 of file menu_status.c.
EQUIPPED_ICON_X
#define EQUIPPED_ICON_X 216
Referenced by mnItemMenuArrangeCategoryItemIcons().
Definition at line 31 of file menu_status.c.
EQUIPPED_ICON_Y
#define EQUIPPED_ICON_Y(row) (EQUIPPED_ROW_Y(row) + 32)
Referenced by mnItemMenuArrangeCategoryItemIcons().
Definition at line 32 of file menu_status.c.
STATUS_FIGURE_X
#define STATUS_FIGURE_X(index) (130 + (index) * 32)
The Djinn figures stand in a row 32 pixels apart, at y STATUS_FIGURE_ROW_Y,
over the status page's Djinn counts. On the full status page those stand
three tiles higher, and the figures at STATUS_FIGURE_FULL_PAGE_ROW_Y; the
pages after it put them above the screen.
Referenced by mnStatusScreenRunPartyRow() and mnStatusScreenShowDjinnList().
Definition at line 38 of file menu_status.c.
STATUS_FIGURE_ROW_Y
#define STATUS_FIGURE_ROW_Y 128
Referenced by mnStatusScreenRunPartyRow() and mnStatusScreenShowDjinnList().
Definition at line 39 of file menu_status.c.
STATUS_FIGURE_FULL_PAGE_ROW_Y
#define STATUS_FIGURE_FULL_PAGE_ROW_Y 104
Referenced by mnStatusScreenRunStatusPage().
Definition at line 40 of file menu_status.c.
STATUS_FIGURE_HIDDEN_Y
#define STATUS_FIGURE_HIDDEN_Y -16
Referenced by mnStatusScreenRunStatusPage().
Definition at line 41 of file menu_status.c.
DJINN_LIST_COLUMN_WIDTH
#define DJINN_LIST_COLUMN_WIDTH 56
The Djinn list (mnStatusScreenShowDjinnList): a column for each element, its
Djinni figure standing over it.
Referenced by mnStatusScreenShowDjinnList().
Definition at line 45 of file menu_status.c.
DJINN_LIST_FIGURE_X
#define DJINN_LIST_FIGURE_X(element) (32 + (element) * DJINN_LIST_COLUMN_WIDTH)
Referenced by mnStatusScreenShowDjinnList().
Definition at line 46 of file menu_status.c.
DJINN_LIST_FIGURE_Y
#define DJINN_LIST_FIGURE_Y 56
Referenced by mnStatusScreenShowDjinnList().
Definition at line 47 of file menu_status.c.
DJINN_LIST_PAGE_ROWS
#define DJINN_LIST_PAGE_ROWS 9
The rows of each element's column on a page of the Djinn list.
Referenced by mnStatusScreenShowDjinnList().
Definition at line 49 of file menu_status.c.
STATUS_LIST_PAGE_ROWS
#define STATUS_LIST_PAGE_ROWS JAPANESE_OR(6, 5)
The rows a page of the Psynergy and item lists shows: Japanese fits six, the other editions five.
Referenced by mnPagedListBuild(), mnStatusScreenDrawEquipmentPage(), mnStatusScreenDrawPsynergyPage(), mnStatusScreenRunEquipmentPage(), mnStatusScreenRunPsynergyPage(), mnStatusScreenShowEquipmentRow() and mnStatusScreenShowPsynergyRow().
Definition at line 52 of file menu_status.c.
STATUS_ELEMENT_TILE
#define STATUS_ELEMENT_TILE (BG_TILE_PALETTE(STATUS_COLORS_PALETTE) | 1)
The window map entry of the first element icon, in STATUS_COLORS_PALETTE as
TILEMAP_ENTRY_ICON gives it; the four elements follow it in order.
Referenced by mnStatusScreenShowDjinnList().
Definition at line 55 of file menu_status.c.
STATUS_ELEMENT_X
#define STATUS_ELEMENT_X(element) (((element) * 4 + 15) * 8)
The status page's four element columns, 4 tiles apart from tile 15, where each element's icon stands; its figures end left of it.
Referenced by mnStatusScreenDrawStatusPage().
Definition at line 59 of file menu_status.c.
mnStatusScreenClearInfo
#define mnStatusScreenClearInfo mnWindowSpriteClearListStub
#define mnStatusScreenClearInfo mnWindowSpriteRedrawSavedRectStub
Referenced by mnStatusScreenShowEquipmentRow() and mnStatusScreenShowPsynergyRow().
Definition at lines 65 and 68 of file menu_status.c.
mnStatusScreenDrawInfo
#define mnStatusScreenDrawInfo mnTextDrawMessageStub
#define mnStatusScreenDrawInfo mnTextDrawMessageAsTilesStub
Referenced by mnStatusScreenShowEquipmentRow() and mnStatusScreenShowPsynergyRow().
Definition at lines 66 and 69 of file menu_status.c.
STATUS_SAVED_TILE_BYTES
#define STATUS_SAVED_TILE_BYTES 10240
The window tiles the Status menu saves and restores.
Referenced by mnStatusScreenRun().
Definition at line 139 of file menu_status.c.
SWITCH_CHARACTER_HELP_X
#define SWITCH_CHARACTER_HELP_X JAPANESE_OR(64, 80)
The switch-characters help follows the A-button label on the help line: Japanese starts it 64 pixels in, the other editions 80.
Referenced by mnStatusScreenRunStatusPage().
Definition at line 740 of file menu_status.c.
HELP_LENGTH
#define HELP_LENGTH 80
#define HELP_LENGTH 64
Referenced by mnStatusScreenShowMemberProgressMessage().
Definition at lines 1006 and 1008 of file menu_status.c.
STATUS_STAT_DIGITS
#define STATUS_STAT_DIGITS JAPANESE_OR(4, 3)
The stat column of the status page's top rows: three digits from 200 or four from 192, both ending at pixel 224.
Referenced by mnStatusScreenDrawTopRows().
Definition at line 1199 of file menu_status.c.
STATUS_STAT_X
#define STATUS_STAT_X JAPANESE_OR(192, 200)
Referenced by mnStatusScreenDrawTopRows().
Definition at line 1200 of file menu_status.c.
STAT_LABEL
#define STAT_LABEL(stat)
Stat label stat, 0 to 3, of "Attack", "Defense", "Agility" and "Luck",
MsgStatLabel and the three after it, counted back from MsgExpLabel.
Referenced by mnStatusScreenDrawTopRows().
Definition at line 1204 of file menu_status.c.
RANGE_PATTERN_PAIR_WORDS
#define RANGE_PATTERN_PAIR_WORDS 16
The words of one range icon's two tiles.
Referenced by mnBuildPatternTiles().
Definition at line 1302 of file menu_status.c.
STATUS_RANGE_ICON_FIRST_TILE
#define STATUS_RANGE_ICON_FIRST_TILE 768
The first of the Status menu's range icon BG tiles, which
mnPsynergyMenuDrawRange draws as tilemap entries; the battle menu builds its
own elsewhere (mnRangeIconBuildTiles).
Referenced by mnBuildPatternTiles() and mnPsynergyMenuDrawRange().
Definition at line 1306 of file menu_status.c.
FIRST_TILE_ROW
#define FIRST_TILE_ROW 1
#define FIRST_TILE_ROW 2
Referenced by mnStatusScreenShowPsynergyRow().
Definition at lines 1382 and 1394 of file menu_status.c.
USABLE_TOP
#define USABLE_TOP 72
#define USABLE_TOP 96
Referenced by mnStatusScreenShowPsynergyRow().
Definition at lines 1383 and 1395 of file menu_status.c.
USABLE_RIGHT
#define USABLE_RIGHT 64
#define USABLE_RIGHT 224
Referenced by mnStatusScreenShowPsynergyRow().
Definition at lines 1384 and 1396 of file menu_status.c.
USABLE_BOTTOM
#define USABLE_BOTTOM 96
#define USABLE_BOTTOM 104
Referenced by mnStatusScreenShowPsynergyRow().
Definition at lines 1385 and 1397 of file menu_status.c.
USABLE_IN_FIELD_MESSAGE
#define USABLE_IN_FIELD_MESSAGE ((Sint32)MsgExpLabel + 2)
まちやダンジョン ("towns and dungeons"), the message two after
MsgExpLabel.
Referenced by mnStatusScreenShowPsynergyRow().
Definition at line 1388 of file menu_status.c.
USABLE_IN_BATTLE_MESSAGE
#define USABLE_IN_BATTLE_MESSAGE ((Sint32)MsgExpLabel + 1)
せんとう ("battle"), the message after MsgExpLabel.
Referenced by mnStatusScreenShowPsynergyRow().
Definition at line 1390 of file menu_status.c.
CAN_BE_USED_MESSAGE
#define CAN_BE_USED_MESSAGE ((Sint32)MsgDjinnListHelp - 1)
でつかえます ("can be used"), the message before MsgDjinnListHelp.
Referenced by mnStatusScreenShowPsynergyRow().
Definition at line 1392 of file menu_status.c.
WORKS_IN_BATTLE
#define WORKS_IN_BATTLE 1
Where an ability works, as bits: the sentence says the field, battle, or anywhere.
Definition at line 1400 of file menu_status.c.
WORKS_IN_FIELD
#define WORKS_IN_FIELD 2
Definition at line 1401 of file menu_status.c.
PAGE_ICONS_X
#define PAGE_ICONS_X JAPANESE_OR(86, 80)
#define PAGE_ICONS_X BY_LANGUAGE(123, 123, 123, 119, 123, 119)
The Japanese page lists six abilities rather than five, a row higher, and lays its heading, names, costs, page icons and "no Psynergy" message out on its own columns.
The page icons, the item names, the "no items" message and the Attack and Defense figures, as each translation lays them out.
Referenced by mnStatusScreenDrawEquipmentPage() and mnStatusScreenDrawPsynergyPage().
Definition at lines 1551 and 1921 of file menu_status.c.
PAGE_ICONS_Y
#define PAGE_ICONS_Y JAPANESE_OR(53, 58)
Referenced by mnStatusScreenDrawPsynergyPage().
Definition at line 1552 of file menu_status.c.
STATUS_PSYNERGY_PP_HEADING_X
#define STATUS_PSYNERGY_PP_HEADING_X JAPANESE_OR(144, 176)
Referenced by mnStatusScreenDrawPsynergyPage().
Definition at line 1553 of file menu_status.c.
FIRST_ROW_Y
#define FIRST_ROW_Y JAPANESE_OR(8, 16)
Referenced by mnStatusScreenDrawPsynergyPage().
Definition at line 1554 of file menu_status.c.
STATUS_PSYNERGY_NAME_X
#define STATUS_PSYNERGY_NAME_X JAPANESE_OR(96, 88)
Referenced by mnStatusScreenDrawPsynergyPage().
Definition at line 1555 of file menu_status.c.
STATUS_PSYNERGY_COST_X
#define STATUS_PSYNERGY_COST_X JAPANESE_OR(168, 176)
Referenced by mnStatusScreenDrawPsynergyPage().
Definition at line 1556 of file menu_status.c.
FIRST_RANGE_ROW
#define FIRST_RANGE_ROW JAPANESE_OR(1, 2)
Referenced by mnStatusScreenDrawPsynergyPage().
Definition at line 1557 of file menu_status.c.
EMPTY_MESSAGE_Y
#define EMPTY_MESSAGE_Y JAPANESE_OR(8, 17)
Referenced by mnStatusScreenDrawPsynergyPage().
Definition at line 1558 of file menu_status.c.
STATUS_PSYNERGY_CURSOR_X
#define STATUS_PSYNERGY_CURSOR_X JAPANESE_OR(58, 55)
Where the cursor points at the list's first row: a row higher on the Japanese page.
Referenced by mnStatusScreenRunPsynergyPage().
Definition at line 1666 of file menu_status.c.
CURSOR_Y
#define CURSOR_Y JAPANESE_OR(52, 60)
Referenced by mnStatusScreenRunPsynergyPage().
Definition at line 1667 of file menu_status.c.
EQUIP_SLOT_X
#define EQUIP_SLOT_X 2
The tile column the equipment slots' highlight starts at.
Referenced by mnStatusScreenShowEquipmentRow().
Definition at line 1788 of file menu_status.c.
EQUIP_SLOT_WIDTH
#define EQUIP_SLOT_WIDTH BY_LANGUAGE(9, 9, 10, 10, 10, 10)
The equipment slots' highlight is a tile wider in the European editions.
Referenced by mnStatusScreenShowEquipmentRow().
Definition at line 1790 of file menu_status.c.
ITEM_NAME_X
#define ITEM_NAME_X BY_LANGUAGE(136, 136, 136, 128, 136, 128)
Referenced by mnStatusScreenDrawEquipmentPage().
Definition at line 1922 of file menu_status.c.
EMPTY_MESSAGE_X
#define EMPTY_MESSAGE_X GERMAN_OR(112, 120)
Referenced by mnStatusScreenDrawEquipmentPage().
Definition at line 1923 of file menu_status.c.
STAT_X
#define STAT_X BY_LANGUAGE(72, 72, 72, 80, 80, 72)
Referenced by mnStatusScreenDrawEquipmentPage().
Definition at line 1924 of file menu_status.c.
EQUIP_WINDOW_WIDTH
#define EQUIP_WINDOW_WIDTH JAPANESE_OR(13, 15)
The equip window's width in tiles, narrower in Japanese.
Referenced by mnStatusScreenRunEquipmentPage().
Definition at line 1984 of file menu_status.c.
STATUS_EQUIPMENT_CURSOR_X
#define STATUS_EQUIPMENT_CURSOR_X FRENCH_OR(100, 96)
The French list puts its cursor 4 pixels further right.
Referenced by mnStatusScreenRunEquipmentPage().
Definition at line 1987 of file menu_status.c.
ENTRY_ICON_CELL_SIZE
#define ENTRY_ICON_CELL_SIZE 16
The side of a cell of the grids mnPlaceEntryIconInGrid places icons in.
Referenced by mnPlaceEntryIconInGrid().
Definition at line 2185 of file menu_status.c.
Enumerations in detail
STATUS_SCREEN_STEP
enum STATUS_SCREEN_STEP
The steps of the Status menu (mnStatusScreenRunPages).
| Enumerator | Value | Description |
|---|---|---|
STATUS_STEP_MEMBER | 0 | choose a party member |
STATUS_STEP_STATUS | 1 | their status page |
STATUS_STEP_PSYNERGY | 2 | their Psynergy page |
STATUS_STEP_EQUIPMENT | 3 | their equipment page |
Definition at line 5 of file menu_status.c.
anonymous enum
enum { STATUS_PAGE_SUMMARY, STATUS_PAGE_FULL }
The page modes of mnStatusScreenDrawStatusPage and mnStatusScreenDrawTopRows,
in the mode's low byte: the party row's summary, or the full status page,
with the elemental levels, Power and Resist.
| Enumerator | Value | Description |
|---|---|---|
STATUS_PAGE_SUMMARY | 0 | |
STATUS_PAGE_FULL | 1 |
Definition at line 16 of file menu_status.c.
STATUS_HELP_LINE
enum STATUS_HELP_LINE
The help lines of the status page's right-hand column, counted from
MsgYourNameAndLevelExperience.
| Enumerator | Value | Description |
|---|---|---|
STATUS_HELP_NAME_AND_LEVEL | 0 | "Your name and level. Experience..." |
STATUS_HELP_EXPERIENCE | 1 | "Experience points. You need ... more to reach..." |
STATUS_HELP_HP | 2 | "Your current and max Hit Points..." |
STATUS_HELP_PP | 3 | "Your Psynergy Points..." |
STATUS_HELP_DJINN | 4 | "Your Djinn. This also shows which ones are set." |
STATUS_HELP_LEVELS | 5 | "Elemental Levels indicate..." |
STATUS_HELP_POWER | 6 | "Power reflects the damage you..." |
STATUS_HELP_RESIST | 7 | "Resist reflects your defensive..." |
STATUS_HELP_EXPERIENCE_AT_MAX | 8 | "These are your experience points." (at max level) |
Definition at line 1016 of file menu_status.c.
STATUS_PAGE_REFRESH
enum STATUS_PAGE_REFRESH
What the Psynergy and equipment pages redraw on their next pass: nothing, the rows for the cursor's new place, or everything for a new party member.
| Enumerator | Value | Description |
|---|---|---|
STATUS_PAGE_REFRESH_NONE | 0 | |
STATUS_PAGE_REFRESH_ROWS | 1 | |
STATUS_PAGE_REFRESH_MEMBER | 2 |
Definition at line 1671 of file menu_status.c.
Functions in detail
mnStatusScreenInit
void mnStatusScreenInit(Sint32 unusedA, Sint32 unusedB, Sint32 unusedC, Sint32 unusedD)
Sets up the party row of the Status menu and the party member chooser: the top-left window with the hand cursor and the party's figures, no other window yet, and an 8 by 2 cursor grid. Its callers pass four values it does not read.
References mnCursorCreate(), mnShowPartyFigures() and Sint32.
Referenced by mnPartyMemberChooserOpen() and mnStatusScreenRun().
Definition at lines 72 and 684 of file menu_status.c.
mnPartyMemberChooserRun
Sint32 mnPartyMemberChooserRun(void)
The party member chooser's loop. Returns the chosen party member's id, or -1.
References mnStatusScreenSelectMember(), result and Sint32.
Referenced by mnPartyMemberChooserOpen().
Definition at lines 77 and 115 of file menu_status.c.
mnPartyMemberChooserOpen
Sint32 mnPartyMemberChooserOpen(void)
Lets the player choose one party member, over the field. Returns the chosen
party member's id, or -1 when the player backs out. Owns the menu state
(HEAP_SLOT_MENU) while it runs and frees it before returning.
References gmPartyListMembersStub(), mnInitState(), mnItemMenuClose(), mnPartyMemberChooserRun(), mnStatusScreenInit(), mnWindowCreateStub(), mnWindowDrawBorderStub(), mnWindowSpriteClearListStub(), result, Sint32, syHeapSlotAllocate(), syHeapSlotRelease() and sySynch().
Definition at line 82 of file menu_status.c.
mnStatusScreenSelectMember
Sint32 mnStatusScreenSelectMember(Sint32 slot)
Lets the player choose a party member in slot, from the one chosen last: the party member chooser on the chooser page, else the Status menu's party row.
References mnCursorSlide(), mnIconShow(), mnPartyMemberChooserChooseMember(), mnStatusScreenRunPartyRow(), mnWindowDrawDividerLineStub(), mnWindowSpriteRedrawSavedRectStub(), result, Sint32, syGameFlagGet() and sySynch().
Referenced by mnPartyMemberChooserRun() and mnStatusScreenRunPages().
Definition at lines 112 and 296 of file menu_status.c.
mnStatusScreenRunPages
Sint32 mnStatusScreenRunPages(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, whose A goes back round to the status page; B on any page goes back to the party member row. Returns -1 when the player backs out of the party member row or presses Start.
References mnIconSetActive(), mnStatusScreenRunEquipmentPage(), mnStatusScreenRunPsynergyPage(), mnStatusScreenRunStatusPage(), mnStatusScreenSelectMember(), mnUpdatePartyFigures(), result, Sint32, syCloseEvent(), syGameFlagGet() and sySetEvent().
Referenced by mnStatusScreenRun().
Definition at lines 133 and 237 of file menu_status.c.
mnStatusScreenRun
Sint32 mnStatusScreenRun(void)
The Status screen, the field menu's Status, over the field: saves the background palettes and the window tiles it draws over, sets up the party row, the five command icons and, when the party has Djinn, the Djinn figures, runs the status pages, then puts everything back.
References gmPartyListMembersStub(), gmPartySumDjinnCountsStub(), mnDjinnFiguresInitTopRow(), mnDjinnFiguresReleaseTopRow(), mnIconLoadSlots(), mnIconReleaseSlots(), mnInitState(), mnItemMenuClose(), mnPageArrowsDrawStub(), mnPaletteLightenHighlight(), mnResumeFieldEvents(), mnStartWatchingStart(), mnStatusScreenInit(), mnStatusScreenRunPages(), mnStopWatchingStart(), mnSuspendFieldEvents(), mnTextUseExtraTilesStub(), mnWindowCreateStub(), mnWindowDrawBorderStub(), mnWindowEraseBorderRectStub(), mnWindowMarkVisibleTextTilesStub(), mnWindowSpriteClearListStub(), result, Sint32, syDMAXCopy(), syHeapAllocateEWRAM(), syHeapRelease(), syHeapSlotAllocate(), syHeapSlotRelease(), sySynch() and syWordsCopy().
Referenced by scClearEnterPassword() and scInit().
Definition at line 145 of file menu_status.c.
mnStatusScreenRunStatusPage
Sint32 mnStatusScreenRunStatusPage(void)
The Status menu's status page: Up and Down choose one of the party member's statuses, whose advice the help window gives, Right the other column, its entries explained in turn; L and R change party member. Returns 1 for A, -1 for B.
References gmPartySumDjinnCountsStub(), gmUnitGet(), mnCursorPos(), mnCursorSlide(), mnReloadMemberPortrait(), mnStatusScreenDrawSelectionCursor(), mnStatusScreenDrawSelectionLabels(), mnStatusScreenDrawStatusPage(), mnStatusScreenListStatuses(), mnStatusScreenShowMemberProgressMessage(), mnTextDrawMessageAsTilesStub(), mnWindowSpriteClearListStub(), mnWindowSpritePrepareForRedrawStub(), mnWindowSpriteRedrawSavedRectStub(), mnWindowUpdateOrCreate(), PerWork, result, Sint32, syGameFlagGet(), sySoundPlayStub() and sySynch().
Referenced by mnStatusScreenRunPages().
Definition at lines 228 and 758 of file menu_status.c.
mnStatusScreenRunPsynergyPage
Sint32 mnStatusScreenRunPsynergyPage(void)
The Status menu's Psynergy page: the party member's Psynergy,
STATUS_LIST_PAGE_ROWS to a page, each with its PP cost and range icon; the
cursor's Psynergy is described in the info window with where it can be used.
References gmUnitGet(), mnBuildPatternTiles(), mnCursorPos(), mnItemMenuHideAllIcons(), mnPagedListBuild(), mnPagedListHandleInput(), mnPsynergyMenuCollectActions(), mnPsynergyMenuDrawPsynergyIcons(), mnReloadMemberPortrait(), mnSpawnIconEntries(), mnStatusScreenDrawPsynergyPage(), mnStatusScreenShowPsynergyRow(), mnTextDrawMessageAsTilesStub(), mnWindowSpriteClearListStub(), mnWindowSpritePrepareForRedrawStub(), mnWindowSpriteRedrawSavedRectStub(), mnWindowUpdateOrCreate(), PerWork, result, Sint32, syGameFlagGet(), sySoundPlayStub() and sySynch().
Referenced by mnStatusScreenRunPages().
Definition at lines 229 and 1681 of file menu_status.c.
mnStatusScreenRunEquipmentPage
Sint32 mnStatusScreenRunEquipmentPage(void)
The Status menu's equipment page: the party member's items,
STATUS_LIST_PAGE_ROWS to a page, beside the equipment window of what they
wear.
References gmUnitGet(), mnCursorPos(), mnItemMenuCollectItems(), mnItemMenuDrawEquipment(), mnItemMenuDrawIcons(), mnItemMenuSort(), mnPagedListBuild(), mnPagedListHandleInput(), mnReloadMemberPortrait(), mnSpawnIconEntries(), mnStatusScreenDrawEquipmentPage(), mnStatusScreenShowEquipmentRow(), mnTextDrawMessageAsTilesStub(), mnWindowSpriteClearListStub(), mnWindowSpritePrepareForRedrawStub(), mnWindowSpriteRedrawSavedRectStub(), mnWindowUpdateOrCreate(), PerWork, result, Sint32, syGameFlagGet(), sySoundPlayStub() and sySynch().
Referenced by mnStatusScreenRunPages().
Definition at lines 230 and 1992 of file menu_status.c.
mnPartyMemberChooserChooseMember
Sint32 mnPartyMemberChooserChooseMember(void)
The party member chooser (STATUS_SCREEN_PAGE_CHOOSER): Left and Right choose
a party member, showing their status and Psynergy icons; A chooses and B
backs out.
References gmUnitGet(), mnCreatePartyFigures(), mnCursorPos(), mnHideEmptyEntryIcons(), mnMarkChosenMember(), mnMoveGridCursor(), mnPlaceEntryIconsInGrid(), mnPsynergyMenuCollectActions(), mnPsynergyMenuDrawPsynergyIcons(), mnReloadMemberPortrait(), mnStatusScreenShowMemberStatus(), mnTextDrawMessageAsTilesStub(), mnWindowSpriteRedrawSavedRectStub(), PerWork, result, Sint32, sySoundPlayStub() and sySynch().
Referenced by mnStatusScreenSelectMember().
Definition at lines 291 and 571 of file menu_status.c.
mnStatusScreenRunPartyRow
Sint32 mnStatusScreenRunPartyRow(void)
The Status menu's party row: Left and Right choose a party member, showing their status; L and R move the party member one place along the party order; Select lists the Djinn found (once Echo, the first Djinni, has joined); A chooses the party member and B backs out.
References gmUnitGet(), mnCreatePartyFigures(), mnCursorPos(), mnMarkChosenMember(), mnMoveGridCursor(), mnPaletteLightenHighlight(), mnReloadMemberPortrait(), mnStatusScreenMovePartyMember(), mnStatusScreenShowDjinnList(), mnStatusScreenShowMemberStatus(), mnTextDrawMessageAsTilesStub(), mnWindowSpriteRedrawSavedRectStub(), PerWork, result, Sint32, syDMAXCopy(), syGameFlagGet(), sySoundPlayStub() and sySynch().
Referenced by mnStatusScreenSelectMember().
Definition at lines 292 and 434 of file menu_status.c.
mnStatusScreenShowDjinnList
void mnStatusScreenShowDjinnList(void)
The Djinn list Select opens from the party row: every Djinni the party has found, a column for each element, nine a page over two pages, The Lost Age's own first and The Broken Seal's after them, until A, B or Select.
References mnIconSetActive(), mnPageArrowsDrawStub(), mnPagedListDrawPageNumbers(), mnTextDrawMessageAsTilesStub(), mnTextDrawMessageStub(), mnWindowDrawDividerLineStub(), mnWindowSetTilemapEntryStub(), mnWindowSpriteClearListStub(), mnWindowSpriteRedrawSavedRectStub(), PerWork, Sint32, syGameFlagGet(), syInputResetKeyRepeat(), sySoundPlayStub() and sySynch().
Referenced by mnStatusScreenRunPartyRow().
Definition at line 330 of file menu_status.c.
mnStatusScreenShowMemberStatus
void mnStatusScreenShowMemberStatus(Sint32 ownerId, Sint32 page)
Shows party member ownerId's status in the party row's status window, opening it the first time with the party member's portrait (and, for the party member chooser, the Psynergy icons). page is not used.
References mnPortraitCreateStub(), mnSpawnIconEntries(), mnStatusScreenDrawStatusPage(), mnWindowUpdateOrCreate() and Sint32.
Referenced by mnPartyMemberChooserChooseMember() and mnStatusScreenRunPartyRow().
Definition at lines 426 and 707 of file menu_status.c.
mnStatusScreenMovePartyMember
Bool mnStatusScreenMovePartyMember(Sint32 selection, Sint32 direction)
Bool mnStatusScreenMovePartyMember(Sint32 selectedIndex, Sint32 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.
References gmPartyAddMemberStub(), gmPartyListMembersStub(), gmPartyRemoveMemberStub() and Sint32.
Referenced by mnStatusScreenRunPartyRow().
Definition at lines 428 and 635 of file menu_status.c.
mnPlaceEntryIconsInGrid
void mnPlaceEntryIconsInGrid(Sint32 x, Sint32 y, Sint32 columns)
void mnPlaceEntryIconsInGrid(Sint32 originX, Sint32 originY, Sint32 columns)
Places each of the 32 entry icons on the grid.
References mnPlaceEntryIconInGrid() and Sint32.
Referenced by mnPartyMemberChooserChooseMember().
Definition at lines 566 and 2165 of file menu_status.c.
mnStatusScreenDrawStatusPage
void mnStatusScreenDrawStatusPage(Sint32 window, Sint32 ownerId, Sint32 mode)
Draws party member memberId's status page into window: the top rows
(mnStatusScreenDrawTopRows), the status list or "Normal", and except on the
chooser page the Djinn counts by element and, on the full page
(STATUS_PAGE_FULL), the elemental levels, Power and Resist. With
STATUS_PAGE_NO_CLEAR in mode the window is not cleared first.
References gmPartySumDjinnCountsStub(), gmUnitGet(), gmUnitGetElementLevelStub(), MenuLvString, MenuSlashString, mnPanelDrawEntryList(), mnStatusScreenDrawTopRows(), mnStatusScreenListStatuses(), mnTextDrawMessageAsTilesStub(), mnTextDrawNumberInWindowStub(), mnTextSetColorStub(), mnWindowClearInteriorTilesStub(), mnWindowSetTilemapEntryStub(), Sint32 and sySynch().
Referenced by mnStatusScreenRunStatusPage() and mnStatusScreenShowMemberStatus().
Definition at lines 702 and 1087 of file menu_status.c.
mnStatusScreenDrawSelectionCursor
void mnStatusScreenDrawSelectionCursor(Sint32 column, Sint32 selected, Uint8 *entries, Sint32 clear)
Highlights (clear 0) or unhighlights (clear 1) the selected entry of the
status page: in column 0 the selected status row, as wide as its label
(StatusScreenCursorWidths); in column 1 one of the first four rows or of the
rows below.
References mnWindowSetHighlightRect(), Sint32 and StatusScreenCursorWidths.
Referenced by mnStatusScreenRunStatusPage().
Definition at lines 742 and 923 of file menu_status.c.
mnStatusScreenDrawSelectionLabels
void mnStatusScreenDrawSelectionLabels(Sint32 window, Sint32 selected, const Uint8 *entries)
Writes the advice for the selected status (two lines, for example how to revive a party member who is down) into window, or that the party member is well when they have no status.
References mnTextDrawMessageStub() and Sint32.
Referenced by mnStatusScreenRunStatusPage().
Definition at lines 747 and 978 of file menu_status.c.
mnStatusScreenShowMemberProgressMessage
void mnStatusScreenShowMemberProgressMessage(void *window, Sint32 help, Sint32 hasDjinn)
Writes help line help of the status page's right-hand column into window, skipping the Djinn line unless hasDjinn says the party has Djinn. The experience line says how many points the next level needs, or at the highest level only what they are.
References gmUnitGet(), gmUnitGetExperienceForLevelStub(), mnMessageArgumentPushStub(), mnMessageCopyExpandedStub(), mnTextDrawWideStringAtOffsetStub(), Sint32, syHeapAllocate() and syHeapRelease().
Referenced by mnStatusScreenRunStatusPage().
Definition at lines 750 and 1036 of file menu_status.c.
gmUnitGetExperienceForLevelStub
Uint32 gmUnitGetExperienceForLevelStub(Sint32 memberId, Sint32 level)
Returns the experience party member memberId needs for level.
Referenced by mnBattleStatusScreenRun() and mnStatusScreenShowMemberProgressMessage().
Definition at line 1012 of file menu_status.c.
mnStatusScreenDrawTopRows
void mnStatusScreenDrawTopRows(Sint32 window, Sint32 owner, Sint32 flags)
Draws the top rows of party member owner's status page into window: name, class, level, experience, HP and PP on the left, Attack, Defense, Agility and Luck on the right.
References gmUnitGet(), MenuHpString, MenuLvString, MenuPpString, MenuSlashString, mnTextDrawMessageAsTilesStub(), mnTextDrawNumberInWindowStub(), mnTextDrawStringAtOffsetStub(), mnTextSetColorStub(), mnWindowClearInteriorTilesStub(), MsgClassName, Sint32 and sySynch().
Referenced by mnStatusScreenDrawStatusPage().
Definition at lines 1073 and 1210 of file menu_status.c.
mnPagedListBuild
Sint32 mnPagedListBuild(PAGED_LIST *list, Sint32 side)
Fills list with the item list of the party member in side for the equipment
pages: their unit, the menu's item count, and the page and row of the item
chosen last for them, STATUS_LIST_PAGE_ROWS items to a page. Returns 1.
References gmUnitGet() and Sint32.
Referenced by mnStatusScreenRunEquipmentPage() and mnStatusScreenRunPsynergyPage().
Definition at line 1264 of file menu_status.c.
mnBuildPatternTiles
void mnBuildPatternTiles(void)
Builds the twelve range icons mnPsynergyMenuDrawRange draws, as the 24 BG
tiles from STATUS_RANGE_ICON_FIRST_TILE: icon n is a centre tile and an end
tile, filled with WINDOW_BACKGROUND_COLOR, then marked row by row by XOR with
MenuPatternRowMasks, the first set's marks growing row by row, the second
set's leaving row 1 bare.
References MenuPatternRowMasks, mnXorWord() and Sint32.
Referenced by mnStatusScreenRunPsynergyPage().
Definition at line 1313 of file menu_status.c.
mnPsynergyMenuDrawRange
void mnPsynergyMenuDrawRange( Sint32 window, Sint32 x, Sint32 y, Sint32 range, Sint32 unused)
Draws a Psynergy range icon at tile (x, y) of window: three tiles from pair
range of the range icon tiles (mnBuildPatternTiles), the side tile on both
ends, mirrored on the left, and the centre tile between. range is the
ability's range less one (0 for the aimed unit alone), or RANGE_ICON_ALL for
ABILITY_RANGE_ALL (mnStatusScreenDrawPsynergyPage).
References mnWindowSetTilemapEntryStub() and Sint32.
Referenced by mnStatusScreenDrawPsynergyPage().
Definition at line 1358 of file menu_status.c.
mnStatusScreenShowPsynergyRow
Sint32 mnStatusScreenShowPsynergyRow(Sint32 window, Sint32 unused, PAGED_LIST *list)
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.
References gmAbilityGetDefinitionStub(), mnTextDrawMessageAsTilesStub(), mnWindowClearInteriorTilesStub(), mnWindowSetHighlightRect(), mnWindowSetTilemapEntryStub(), Sint32 and sySynch().
Referenced by mnStatusScreenRunPsynergyPage().
Definition at line 1407 of file menu_status.c.
mnStatusScreenDrawPsynergyPage
Sint32 mnStatusScreenDrawPsynergyPage(Sint32 window, Sint32 unused, const PAGED_LIST *list)
Draws one page of the Status menu's Psynergy page into window: each ability's name, PP cost and range, "You have no Psynergy." when there is none, then the party member's name, class and level.
References gmAbilityGetDefinitionStub(), gmUnitGet(), MenuLvString, mnPagedListDrawPageNumbers(), mnPsynergyMenuDrawRange(), mnSetPageIcons(), mnTextDrawMessageAsTilesStub(), mnTextDrawNumberAtOffsetStub(), mnTextDrawNumberInWindowStub(), mnTextDrawStringAtOffsetStub(), mnWindowSpriteRedrawSavedRectStub(), MsgClassName and Sint32.
Referenced by mnStatusScreenRunPsynergyPage().
Definition at line 1563 of file menu_status.c.
mnStatusScreenShowEquipmentRow
Sint32 mnStatusScreenShowEquipmentRow(Sint32 window, Sint32 unused, PAGED_LIST *list)
Updates the Status menu's equipment page for the row under the cursor: the item's description in the info window, the row highlights, and in the equipment window the highlight of the slot the item is worn in, if it is.
References gmItemGetDefinitionStub(), mnWindowSetHighlightRect(), mnWindowSetTilemapEntryStub(), Sint32 and sySynch().
Referenced by mnStatusScreenRunEquipmentPage().
Definition at line 1795 of file menu_status.c.
mnStatusScreenDrawEquipmentPage
Sint32 mnStatusScreenDrawEquipmentPage(Sint32 window, Sint32 unused, PAGED_LIST *list)
Draws one page of the member's items into window: STATUS_LIST_PAGE_ROWS
names, or "no items", then the member's name, Attack and Defense.
References gmUnitGet(), mnPagedListDrawPageNumbers(), mnSetPageIcons(), mnTextDrawMessageAsTilesStub(), mnTextDrawNumberInWindowStub(), mnTextDrawStringAtOffsetStub(), mnWindowClearInteriorTilesStub() and Sint32.
Referenced by mnStatusScreenRunEquipmentPage().
Definition at line 1928 of file menu_status.c.
mnItemMenuDrawEquipment
void mnItemMenuDrawEquipment(Sint32 window, Sint32 ownerId, 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.
References mnHideEntryIcons(), mnItemMenuArrangeCategoryItemIcons(), mnItemMenuDrawEquippedItemNames(), mnItemMenuDrawIcons(), mnItemMenuHideAllIcons(), mnTextDrawMessageAsTilesStub(), Sint32 and sySynch().
Referenced by mnItemMenuShowEquipment() and mnStatusScreenRunEquipmentPage().
Definition at line 2108 of file menu_status.c.
mnItemMenuDrawEquippedItemNames
void mnItemMenuDrawEquippedItemNames(Sint32 window, Uint16 *items)
Writes the name of each equipped item of the inventory into window, below its slot's label: the weapon, the helm, the shield, then the armor.
References gmItemGetDefinitionStub(), mnTextDrawMessageAsTilesStub() and Sint32.
Referenced by mnItemMenuDrawEquipment().
Definition at line 2131 of file menu_status.c.
mnPlaceEntryIconInGrid
void mnPlaceEntryIconInGrid(WINDOW_SPR *icon, Sint32 index, Sint32 originX, Sint32 originY, Sint32 columns)
Places icon at cell index (an index above 31 is taken as 0) of a grid of
ENTRY_ICON_CELL_SIZE square cells, columns wide, from (originX, originY), and
shows it.
References mnIconShow() and Sint32.
Referenced by mnPlaceEntryIconsInGrid().
Definition at line 2190 of file menu_status.c.
mnItemMenuArrangeCategoryItemIcons
void mnItemMenuArrangeCategoryItemIcons(Uint16 *items)
Places the icon of each worn weapon, armor, shield and helm at x 216, on its
slot's row of mnItemMenuDrawEquipment's window; the others stay off screen.
References gmItemGetDefinitionStub(), mnHideEntryIcons(), mnIconShow() and Sint32.
Referenced by mnItemMenuDrawEquipment().
Definition at line 2210 of file menu_status.c.
mnHideEntryIcons
void mnHideEntryIcons(void)
Moves all 32 entry icons off screen, 8 pixels past its right and bottom edges, before a screen lays them out again.
References mnIconShow() and Sint32.
Referenced by mnItemMenuArrangeCategoryItemIcons(), mnItemMenuDrawEquipment(), mnItemMenuShowEquipment() and mnPsynergyMenuRunSteps().
Definition at line 2255 of file menu_status.c.
Variables in detail
MenuLvString
extern const Uint8 MenuLvString[]
The Status screen's level label: Lv; Nv. in Spanish, Niv in French.
Referenced by mnStatusScreenDrawPsynergyPage(), mnStatusScreenDrawStatusPage() and mnStatusScreenDrawTopRows().
Definition at line 1068 of file menu_status.c.
MenuHpString
extern const Uint8 MenuHpString[]
The HP label: HP; KP in German, PV in Spanish and French, PS in
Italian.
Referenced by mnStatusScreenDrawTopRows().
Definition at line 1193 of file menu_status.c.
MenuPpString
extern const Uint8 MenuPpString[]
The PP label: PP; EP in German.
Referenced by mnStatusScreenDrawTopRows().
Definition at line 1195 of file menu_status.c.