From 01067740c1f66fc4dabdbe9a180fc4ebd97fc514 Mon Sep 17 00:00:00 2001 From: Tal Hayon Date: Wed, 6 Apr 2022 11:03:32 +0300 Subject: Extract ui.h --- include/fileselect.h | 1 - include/functions.h | 2 -- include/ui.h | 15 +++++++++++++++ 3 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 include/ui.h (limited to 'include') diff --git a/include/fileselect.h b/include/fileselect.h index 066e3e88..375dfeca 100644 --- a/include/fileselect.h +++ b/include/fileselect.h @@ -53,7 +53,6 @@ extern struct_02019EE0 gMapDataBottomSpecial; extern void sub_08056FEC(u32, struct_020227E8*); extern u32 sub_0805F46C(u32, Font*); -extern void RecoverUI(u32 bottomPt, u32 topPt); extern void ClearTilemaps(void); extern void sub_0805194C(u32); extern WStruct* sub_0805F2C8(void); diff --git a/include/functions.h b/include/functions.h index 2f0428a8..1f7d35cf 100644 --- a/include/functions.h +++ b/include/functions.h @@ -24,7 +24,6 @@ extern void CreateMinishEntrance(u32 tile); extern u32 CreateRandomItemDrop(Entity*, u32); extern void DrawDirect(u32, u32); extern void DrawEntities(void); -extern void DrawUIElements(void); extern bool32 EntityWithinDistance(Entity*, s32, s32, s32); extern void FlushSprites(void); extern LayerStruct* GetLayerByIndex(u32); @@ -79,7 +78,6 @@ extern void sub_08016AD2(Entity*); extern u32 sub_0801766C(Entity*); extern void sub_0801AFE4(void); extern void UpdateUIElements(void); -extern void sub_0801C25C(void); extern void sub_0801E104(void); extern void sub_08027870(Entity*); extern void sub_08030118(u32); diff --git a/include/ui.h b/include/ui.h new file mode 100644 index 00000000..05fab34d --- /dev/null +++ b/include/ui.h @@ -0,0 +1,15 @@ +#ifndef UI_H +#define UI_H + +#include "global.h" + +extern void DrawUIElements(void); +extern void CreateUIElement(u32, u32); +extern u32 sub_0801C2F0(u32, u32); +extern void sub_0801C25C(void); +extern void DrawUI(void); +extern void InitUI(bool32); +extern void RefreshUI(void); +extern void RecoverUI(u32 bottomPt, u32 topPt); + +#endif \ No newline at end of file -- cgit v1.2.3