Alchemy
Loading...
Searching...
No Matches

menudata.c

Go to the documentation of this file.
1#include "menu.h"
2#include "field.h"
3#include "edition.h"
4#include "types.h"
5
6// The menu tables: cursor bobbing, sort orders, highlight widths and
7// resource ids.
8//
9// None of these is const: the code that reads them declares them without it.
10
11/// The hand cursor's bobbing offsets, indexed by (gFrameCount >> 1) & 7.
12u8 gUiMenu_CursorBobX[9] = {0, 1, 1, 2, 2, 1, 1, 0, 0};
13u8 gUiMenu_CursorBobY[9] = {0, 0xff, 0xff, 0xfe, 0xfe,
14 0xff, 0xff, 0, 0}; // 0, -1, -1, -2 ...
15
16/// The item menu's sort orders (InventoryMenu_SortByListOrder), one item type
17/// per byte, 0x80 (LIST_ORDER_EQUIPPED) for only the equipped items of that
18/// type, ending with 0xff (LIST_ORDER_END). The item types: 0 usable items,
19/// 1 weapons, 2 armor, 3 shields, gloves and armlets, 4 helmets, 5 boots,
20/// 6 Psynergy items, 8 rings and 9 shirts.
21u8 gMenu_ListOrderDefault[11] = {0x00, 0x01, 0x04, 0x03, 0x02, 0x05,
22 0x06, 0x07, 0x08, 0x09, 0xff};
23u8 gMenu_ListOrderMode2[11] = {0x01, 0x04, 0x03, 0x02, 0x05, 0x06,
24 0x07, 0x08, 0x09, 0x00, 0xff};
25// clang-format off
27 0x81, 0x84, 0x83, 0x82, 0x85, 0x86, 0x87, 0x88, 0x89, 0x01,
28 0x04, 0x03, 0x02, 0x05, 0x06, 0x07, 0x08, 0x09, 0x00, 0xff,
29};
31 0x81, 0x84, 0x83, 0x82, 0x85, 0x86, 0x87, 0x88, 0x89, 0x00,
32 0x01, 0x04, 0x03, 0x02, 0x05, 0x06, 0x07, 0x08, 0x09, 0xff,
33};
34
35#if (LANGUAGE != LANGUAGE_JAPANESE)
36/// The x of the item command cursor, three columns on each of two rows.
38 86, 117, 166,
39 86, 117, 166,
40};
41// clang-format on
42#endif
43
44// The width in tiles of the status screen's highlight on each ailment row
45// (Down, Poison, Venom, Curse and Haunt).
46#if (LANGUAGE == LANGUAGE_JAPANESE)
47u8 gCharacterMenu_CursorWidths[5] = {9, 4, 6, 5, 7};
48#elif (LANGUAGE == LANGUAGE_GERMAN)
49u8 gCharacterMenu_CursorWidths[5] = {7, 5, 7, 6, 5};
50#else
51u8 gCharacterMenu_CursorWidths[5] = {6, 7, 7, 6, 6};
52#endif
53
54/// The resource ids of the four sprites FourObjectMotion shows.
55s32 gFourObjectMotion_ResourceIds[4] = {0x5a, 0x5b, 0x5c, 0x5d};
The edition's language, for C to compare (LANGUAGE == LANGUAGE_GERMAN).
u8 gMenu_ListOrderDefault[11]
The item menu's sort orders (InventoryMenu_SortByListOrder), one item type per byte,...
Definition menudata.c:21
s32 gItemMenu_CommandColumnXTable[6]
The x of the item command cursor, three columns on each of two rows.
Definition menudata.c:37
u8 gMenu_ListOrderMode2[11]
Definition menudata.c:23
u8 gCharacterMenu_CursorWidths[5]
Definition menudata.c:51
s32 gFourObjectMotion_ResourceIds[4]
The resource ids of the four sprites FourObjectMotion shows.
Definition menudata.c:55
u8 gMenu_ListOrderMode1[20]
Definition menudata.c:26
u8 gUiMenu_CursorBobY[9]
Definition menudata.c:13
u8 gMenu_ListOrderMode0[20]
Definition menudata.c:30
u8 gUiMenu_CursorBobX[9]
The hand cursor's bobbing offsets, indexed by (gFrameCount >> 1) & 7.
Definition menudata.c:12
The integer types, TRUE, UNUSED and the fixed-address macros.
signed int s32
Definition types.h:14
unsigned char u8
Definition types.h:11