sovereignx/include/menu.h

27 lines
760 B
C
Raw Normal View History

2017-09-05 12:01:24 +01:00
#ifndef GUARD_MENU_H
#define GUARD_MENU_H
2017-09-28 23:11:42 +01:00
#include "window.h"
2017-09-05 12:01:24 +01:00
struct MenuAction
{
const u8 *text;
u8 (*func)();
};
struct MenuAction2
{
const u8 *text;
void (*func)(u8);
};
2017-09-18 16:26:45 +01:00
void box_print(u8, u8, u8, u8, const void *, s8, const u8 *);
2017-09-28 23:11:42 +01: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-13 03:59:01 +01:00
void reset_temp_tile_data_buffers(void);
2017-10-13 05:11:55 +01:00
int decompress_and_copy_tile_data_to_vram(u8 bg_id, const void *src, int size, u16 offset, u8 mode);
2017-10-13 03:59:01 +01:00
bool8 free_temp_tile_data_buffers_if_possible(void);
2017-09-18 16:26:45 +01:00
2017-09-05 12:01:24 +01:00
#endif // GUARD_MENU_H