16#define MENU_TABLE( f ) f( 0, main ) f( 1, items ) f( 2, craft ) f( 3, save ) f( 4, quit )
21#define MENU_TEXT_SZ 20
42 INPUT_VAL in_char, int16_t click_x, int16_t click_y,
45#define MENU_RENDERER_PROTOTYPES( idx, name ) void menu_renderer_ ## name( struct DSEKAI_STATE* state );
49#define MENU_HANDLER_PROTOTYPES( idx, name ) int16_t menu_handler_ ## name( INPUT_VAL in_char, int16_t click_x, int16_t click_y, struct DSEKAI_STATE* state );
58#define MENU_FLAG_DIRTY 0x80
65#define MENU_FLAG_ITEM_CRAFTABLE 0x40
67#define MENU_FLAG_ITEM_OPEN_SEL_USE 0x01
68#define MENU_FLAG_ITEM_OPEN_SEL_CRAFT 0x02
69#define MENU_FLAG_ITEM_OPEN_SEL_DROP 0x03
71#define MENU_FLAG_ITEM_OPEN_SEL_MASK 0x03
84 int8_t craft_item_ids[3];
90#define MENU_TABLE_RENDERERS( idx, name ) menu_renderer_ ## name,
96#define MENU_TABLE_HANDLERS( idx, name ) menu_handler_ ## name,
102#define MENU_TABLE_TOKENS( idx, name ) #name,
109#define MENU_TABLE_CONSTS( idx, name ) RES_CONST uint8_t gc_menu_idx_ ## name = idx;
135#define MENU_TABLE_CONSTS( idx, name ) extern RES_CONST uint8_t gc_menu_idx_ ## name;
General/shared state of the running engine in memory.
Definition: engines.h:196