Skip to Content
The Alchemy Project

src/menu/menu_tables.c

The menu tables: cursor bobbing, sort orders, highlight widths and resource ids. More…

Variables

NameDescription
Uint8MenuCursorBobX [9]The hand cursor's bobbing offsets in pixels, which mnCursorPos adds to its x at step (TickCount >> 1) & 7; the ninth entry is never read.
Uint8MenuCursorBobY [9]The same for y: in the cursor's 8-bit OAM y, -1 and -2 wrap to one and two pixels up.
Uint8MenuListOrderItemsFirst [11]LIST_SORT_ITEMS_FIRST: the items that are not equipment first.
Uint8MenuListOrderEquipmentFirst [11]LIST_SORT_EQUIPMENT_FIRST: the equipment first, the rest last.
Uint8MenuListOrderEquippedThenEquipment [20]LIST_SORT_EQUIPPED_THEN_EQUIPMENT: the equipped items, the other equipment, then the rest.
Uint8MenuListOrderEquippedThenItems [20]LIST_SORT_EQUIPPED_THEN_ITEMS: the equipped items, the items that are not equipment, then the other equipment.
Sint32ItemMenuCommandColumnXTable [6]The x in pixels of the item command cursor, three columns on each of two rows (mnItemMenuCommandCursorX; the Japanese edition has neither).
Uint8StatusScreenCursorWidths [5]The Status screen highlight's width in tiles on each status row: Down, Poison, Venom, Curse and Haunt.
Sint32DjinnFiguresSpriteIds [4]The sprites of the four Djinn DjinnFigures shows: a Venus, a Mercury, a Mars and a Jupiter Djinni.

Description

The menu tables: cursor bobbing, sort orders, highlight widths and resource ids. None of these is const: the code that reads them declares them without it.

Variables in detail

Uint8 MenuCursorBobX[9]

The hand cursor's bobbing offsets in pixels, which mnCursorPos adds to its x at step (TickCount >> 1) & 7; the ninth entry is never read.

Referenced by mnCursorPos().

Definition at line 11 of file menu_tables.c.

Uint8 MenuCursorBobY[9]

The same for y: in the cursor's 8-bit OAM y, -1 and -2 wrap to one and two pixels up.

Referenced by mnCursorPos().

Definition at line 14 of file menu_tables.c.

Uint8 MenuListOrderItemsFirst[11]

LIST_SORT_ITEMS_FIRST: the items that are not equipment first.

Referenced by mnCopyListOrder().

Definition at line 23 of file menu_tables.c.

Uint8 MenuListOrderEquipmentFirst[11]

LIST_SORT_EQUIPMENT_FIRST: the equipment first, the rest last.

Referenced by mnCopyListOrder().

Definition at line 29 of file menu_tables.c.

Uint8 MenuListOrderEquippedThenEquipment[20]

LIST_SORT_EQUIPPED_THEN_EQUIPMENT: the equipped items, the other equipment, then the rest.

Referenced by mnCopyListOrder().

Definition at line 35 of file menu_tables.c.

Uint8 MenuListOrderEquippedThenItems[20]

LIST_SORT_EQUIPPED_THEN_ITEMS: the equipped items, the items that are not equipment, then the other equipment.

Referenced by mnCopyListOrder().

Definition at line 47 of file menu_tables.c.

ItemMenuCommandColumnXTable

Sint32 ItemMenuCommandColumnXTable[6]

The x in pixels of the item command cursor, three columns on each of two rows (mnItemMenuCommandCursorX; the Japanese edition has neither).

References Sint32.

Referenced by mnItemMenuCommandCursorX().

Definition at line 62 of file menu_tables.c.

StatusScreenCursorWidths

Uint8 StatusScreenCursorWidths[5]

Referenced by mnStatusScreenDrawSelectionCursor().

Definition at lines 72, 74 and 76 of file menu_tables.c.

DjinnFiguresSpriteIds

Sint32 DjinnFiguresSpriteIds[4]

The sprites of the four Djinn DjinnFigures shows: a Venus, a Mercury, a Mars and a Jupiter Djinni.

References Sint32.

Referenced by mnDjinnFiguresInitBottomRow(), mnDjinnFiguresInitTopRow() and mnDjinnFiguresReplaceSlot().

Definition at line 81 of file menu_tables.c.