2017-09-05 13:01:24 +02:00
|
|
|
#ifndef GUARD_MENU_H
|
|
|
|
#define GUARD_MENU_H
|
|
|
|
|
2017-09-29 00:11:42 +02:00
|
|
|
#include "window.h"
|
2017-09-05 13:01:24 +02:00
|
|
|
|
|
|
|
struct MenuAction
|
|
|
|
{
|
|
|
|
const u8 *text;
|
2017-10-23 00:55:07 +02:00
|
|
|
union {
|
|
|
|
void (*void_u8)(u8);
|
|
|
|
u8 (*u8_void)(void);
|
|
|
|
} func;
|
2017-09-05 13:01:24 +02:00
|
|
|
};
|
|
|
|
|
2017-09-18 17:26:45 +02:00
|
|
|
void box_print(u8, u8, u8, u8, const void *, s8, const u8 *);
|
2017-09-29 00:11:42 +02:00
|
|
|
void sub_8198070(u8 windowId, bool8 copyToVram);
|
|
|
|
void SetWindowTemplateFields(struct WindowTemplate* template, u8 priority, u8 tilemapLeft, u8 tilemapTop, u8 width, u8 height, u8 palNum, u16 baseBlock);
|
|
|
|
void SetWindowBorderStyle(u8 windowId, bool8 copyToVram, u16 tileStart, u8 palette);
|
2017-10-23 00:55:07 +02:00
|
|
|
void schedule_bg_copy_tilemap_to_vram(u8 bgNum);
|
|
|
|
void PrintMenuTable(u8 idx, u8 nstrs, const struct MenuAction *strs);
|
|
|
|
void InitMenuInUpperLeftCornerPlaySoundWhenAPressed(u8 idx, u8 nstrs,u8);
|
|
|
|
u8 GetMenuCursorPos(void);
|
|
|
|
s8 ProcessMenuInput(void);
|
|
|
|
void blit_move_info_icon(u8 winId, u8 a2, u16 x, u16 y);
|
2017-10-13 04:59:01 +02:00
|
|
|
void reset_temp_tile_data_buffers(void);
|
2017-10-13 06:11:55 +02:00
|
|
|
int decompress_and_copy_tile_data_to_vram(u8 bg_id, const void *src, int size, u16 offset, u8 mode);
|
2017-10-13 04:59:01 +02:00
|
|
|
bool8 free_temp_tile_data_buffers_if_possible(void);
|
2017-10-14 15:52:56 +02:00
|
|
|
u64 sub_8198A50(struct WindowTemplate*, u8, u8, u8, u8, u8, u8, u16); // returns something but it isn't used, fix when menu.s is decomp'd
|
2017-10-22 05:23:03 +02:00
|
|
|
void CreateYesNoMenu(const struct WindowTemplate *windowTemplate, u16 borderFirstTileNum, u8 borderPalette, u8 initialCursorPos);
|
|
|
|
s8 sub_8198C58(void);
|
2017-10-29 15:38:25 +01:00
|
|
|
void do_scheduled_bg_tilemap_copies_to_vram(void);
|
|
|
|
void clear_scheduled_bg_copies_to_vram(void);
|
2017-09-18 17:26:45 +02:00
|
|
|
|
2017-09-05 13:01:24 +02:00
|
|
|
#endif // GUARD_MENU_H
|