src/menu/menu_tables.c
The menus' tables: the hand cursor's bob, the item list's sort orders, the cursor widths over the item commands and the Status screen's rows, and the sprites and icons the Djinn and Status screens load. More…
#include "menu/menu.h"#include "game/item.h"#include "window/battle_status.h"#include "sprite_ids.h"
Variables
| Name | Description | |
|---|---|---|
Uint8 | MenuCursorBobX [9] | The hand cursor's bob in pixels, a step every two ticks: right and up by up to two and back (mnCursorPos). |
Uint8 | MenuCursorBobY [9] | The hand cursor's bob in y: 0, -1, -1, -2, -2, -1, -1, 0. |
Uint8 | MenuListOrderItemsFirst [13] | The item menu's sort orders (LIST_SORT, mnCopyListOrder): one item type per byte, with LIST_ORDER_EQUIPPED for only the equipped items of that type, ending with LIST_ORDER_END. |
Uint8 | MenuListOrderEquipmentFirst [13] | LIST_SORT_EQUIPMENT_FIRST: the equipment first, the rest last. |
Uint8 | MenuListOrderEquippedThenEquipment [24] | LIST_SORT_EQUIPPED_THEN_EQUIPMENT: the equipped items, the other equipment, then the rest. |
Uint8 | MenuListOrderEquippedThenItems [24] | LIST_SORT_EQUIPPED_THEN_ITEMS: the equipped items, the items that are not equipment, then the other equipment. |
Sint32 | ItemMenuCommandColumnXTable [6] | The hand's x at each of the six item commands, in their two rows of three (mnItemMenuGetCommandCursorX): the middle column stands 9 pixels left of the even 40-pixel spacing the other editions use. |
Uint8 | StatusScreenCursorWidths [5] | The width in tiles of each status row's highlight on the status page (enum UNIT_STAT). |
Sint32 | DjinnFiguresSpriteIds [4] | The four Djinn figures' sprites, one for each element: Venus, Mercury, Mars and Jupiter (mnDjinnFiguresReplaceSlot). |
Uint16 | StatusScreenStatusIcons [5] | The status icons (mnIconLoadSlots). |
Description
The menus' tables: the hand cursor's bob, the item list's sort orders, the cursor widths over the item commands and the Status screen's rows, and the sprites and icons the Djinn and Status screens load. The menus declare them without const, so they are not const here either.
Variables in detail
MenuCursorBobX
Uint8 MenuCursorBobX[9]
The hand cursor's bob in pixels, a step every two ticks: right and up by up
to two and back (mnCursorPos). The ninth step is never reached.
Referenced by mnCursorPos().
Definition at line 13 of file menu_tables.c.
MenuCursorBobY
Uint8 MenuCursorBobY[9]
The hand cursor's bob in y: 0, -1, -1, -2, -2, -1, -1, 0.
Referenced by mnCursorPos().
Definition at line 15 of file menu_tables.c.
MenuListOrderItemsFirst
Uint8 MenuListOrderItemsFirst[13]
The item menu's sort orders (LIST_SORT, mnCopyListOrder): one item type per byte, with
LIST_ORDER_EQUIPPED for only the equipped items of that type, ending with LIST_ORDER_END. The
class-changing items stand between the boots and the Psynergy items, and the Elemental Stars
after the shirts. LIST_SORT_ITEMS_FIRST: the items that are not equipment first.
Referenced by mnCopyListOrder().
Definition at line 22 of file menu_tables.c.
MenuListOrderEquipmentFirst
Uint8 MenuListOrderEquipmentFirst[13]
LIST_SORT_EQUIPMENT_FIRST: the equipment first, the rest last.
Referenced by mnCopyListOrder().
Definition at line 29 of file menu_tables.c.
MenuListOrderEquippedThenEquipment
Uint8 MenuListOrderEquippedThenEquipment[24]
LIST_SORT_EQUIPPED_THEN_EQUIPMENT: the equipped items, the other equipment, then the rest.
Referenced by mnCopyListOrder().
Definition at line 36 of file menu_tables.c.
MenuListOrderEquippedThenItems
Uint8 MenuListOrderEquippedThenItems[24]
LIST_SORT_EQUIPPED_THEN_ITEMS: the equipped items, the items that are not equipment, then the
other equipment.
Referenced by mnCopyListOrder().
Definition at line 50 of file menu_tables.c.
ItemMenuCommandColumnXTable
Sint32 ItemMenuCommandColumnXTable[6]
The hand's x at each of the six item commands, in their two rows of three
(mnItemMenuGetCommandCursorX): the middle column stands 9 pixels left of the even 40-pixel
spacing the other editions use.
References Sint32.
Referenced by mnItemMenuGetCommandCursorX().
Definition at line 69 of file menu_tables.c.
StatusScreenCursorWidths
Uint8 StatusScreenCursorWidths[5]
Referenced by mnStatusScreenDrawSelectionCursor().
Definition at lines 79 and 81 of file menu_tables.c.
DjinnFiguresSpriteIds
Sint32 DjinnFiguresSpriteIds[4]
The four Djinn figures' sprites, one for each element: Venus, Mercury, Mars
and Jupiter (mnDjinnFiguresReplaceSlot).
References Sint32.
Referenced by mnDjinnFiguresInitTopRow() and mnDjinnFiguresReplaceSlot().
Definition at line 86 of file menu_tables.c.
StatusScreenStatusIcons
Uint16 StatusScreenStatusIcons[5]
The status icons (mnIconLoadSlots).
Referenced by mnIconLoadSlots().
Definition at line 92 of file menu_tables.c.