Alchemy
Loading...
Searching...
No Matches

menudata.c File Reference

Go to the source code of this file.

Variables

u8 gUiMenu_CursorBobX [9] = {0, 1, 1, 2, 2, 1, 1, 0, 0}
 The hand cursor's bobbing offsets, indexed by (gFrameCount >> 1) & 7.
u8 gUiMenu_CursorBobY [9]
u8 gMenu_ListOrderDefault [11]
 The item menu's sort orders (InventoryMenu_SortByListOrder), one item type per byte, 0x80 (LIST_ORDER_EQUIPPED) for only the equipped items of that type, ending with 0xff (LIST_ORDER_END).
u8 gMenu_ListOrderMode2 [11]
u8 gMenu_ListOrderMode1 [20]
u8 gMenu_ListOrderMode0 [20]
s32 gItemMenu_CommandColumnXTable [6]
 The x of the item command cursor, three columns on each of two rows.
u8 gCharacterMenu_CursorWidths [5] = {6, 7, 7, 6, 6}
s32 gFourObjectMotion_ResourceIds [4] = {0x5a, 0x5b, 0x5c, 0x5d}
 The resource ids of the four sprites FourObjectMotion shows.

Variable Documentation

◆ gUiMenu_CursorBobX

u8 gUiMenu_CursorBobX[9] = {0, 1, 1, 2, 2, 1, 1, 0, 0}

The hand cursor's bobbing offsets, indexed by (gFrameCount >> 1) & 7.

Definition at line 12 of file menudata.c.

Referenced by UiMenu_PositionCursor().

◆ gUiMenu_CursorBobY

u8 gUiMenu_CursorBobY[9]
Initial value:
= {0, 0xff, 0xff, 0xfe, 0xfe,
0xff, 0xff, 0, 0}

Definition at line 13 of file menudata.c.

Referenced by UiMenu_PositionCursor().

◆ gMenu_ListOrderDefault

u8 gMenu_ListOrderDefault[11]
Initial value:
= {0x00, 0x01, 0x04, 0x03, 0x02, 0x05,
0x06, 0x07, 0x08, 0x09, 0xff}

The item menu's sort orders (InventoryMenu_SortByListOrder), one item type per byte, 0x80 (LIST_ORDER_EQUIPPED) for only the equipped items of that type, ending with 0xff (LIST_ORDER_END).

The item types: 0 usable items, 1 weapons, 2 armor, 3 shields, gloves and armlets, 4 helmets, 5 boots, 6 Psynergy items, 8 rings and 9 shirts.

Definition at line 21 of file menudata.c.

Referenced by Menu_CopyListOrder().

◆ gMenu_ListOrderMode2

u8 gMenu_ListOrderMode2[11]
Initial value:
= {0x01, 0x04, 0x03, 0x02, 0x05, 0x06,
0x07, 0x08, 0x09, 0x00, 0xff}

Definition at line 23 of file menudata.c.

Referenced by Menu_CopyListOrder().

◆ gMenu_ListOrderMode1

u8 gMenu_ListOrderMode1[20]
Initial value:
= {
0x81, 0x84, 0x83, 0x82, 0x85, 0x86, 0x87, 0x88, 0x89, 0x01,
0x04, 0x03, 0x02, 0x05, 0x06, 0x07, 0x08, 0x09, 0x00, 0xff,
}

Definition at line 26 of file menudata.c.

Referenced by Menu_CopyListOrder().

◆ gMenu_ListOrderMode0

u8 gMenu_ListOrderMode0[20]
Initial value:
= {
0x81, 0x84, 0x83, 0x82, 0x85, 0x86, 0x87, 0x88, 0x89, 0x00,
0x01, 0x04, 0x03, 0x02, 0x05, 0x06, 0x07, 0x08, 0x09, 0xff,
}

Definition at line 30 of file menudata.c.

Referenced by Menu_CopyListOrder().

◆ gItemMenu_CommandColumnXTable

s32 gItemMenu_CommandColumnXTable[6]
Initial value:
= {
86, 117, 166,
86, 117, 166,
}

The x of the item command cursor, three columns on each of two rows.

Definition at line 37 of file menudata.c.

Referenced by ItemMenu_CommandCursorX().

◆ gCharacterMenu_CursorWidths

u8 gCharacterMenu_CursorWidths[5] = {6, 7, 7, 6, 6}

Definition at line 51 of file menudata.c.

Referenced by CharacterMenu_DrawSelectionCursor().

◆ gFourObjectMotion_ResourceIds

s32 gFourObjectMotion_ResourceIds[4] = {0x5a, 0x5b, 0x5c, 0x5d}

The resource ids of the four sprites FourObjectMotion shows.

Definition at line 55 of file menudata.c.

Referenced by FourObjectMotion_InitializeBottomRow(), FourObjectMotion_InitializeTopRow(), and FourObjectMotion_ReplaceSlot().