summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/main.h1
-rw-r--r--include/structures.h20
2 files changed, 18 insertions, 3 deletions
diff --git a/include/main.h b/include/main.h
index bb301dcc..a5680d10 100644
--- a/include/main.h
+++ b/include/main.h
@@ -71,6 +71,7 @@ typedef struct {
/**
* HUD structure.
*/
+// TODO Rather a structure more generally about gfx?
typedef struct {
/*0x000*/ u8 nextToLoad;
/*0x001*/ u8 _1;
diff --git a/include/structures.h b/include/structures.h
index 8de98b91..27287719 100644
--- a/include/structures.h
+++ b/include/structures.h
@@ -90,9 +90,23 @@ typedef struct {
u32* firstTile;
} UIElement;
+typedef enum {
+ HUD_HIDE_NONE,
+ HUD_HIDE_1 = 0x1, // A
+ HUD_HIDE_2 = 0x2, // B
+ HUD_HIDE_4 = 0x4, // R
+ HUD_HIDE_8 = 0x8,
+ HUD_HIDE_HEARTS = 0x10,
+ HUD_HIDE_CHARGE_BAR = 0x20,
+ HUD_HIDE_RUPEES = 0x40,
+ HUD_HIDE_KEYS = 0x80,
+
+ HUD_HIDE_ALL = 0xff
+} HUDHideFlags;
+
typedef struct {
u8 unk_0;
- u8 unk_1;
+ u8 hideFlags;
u8 unk_2;
u8 health;
u8 maxHealth;
@@ -125,8 +139,8 @@ typedef struct {
u8 unk_32;
u8 unk_33;
UIElement elements[MAX_UI_ELEMENTS];
-} struct_0200AF00;
-extern struct_0200AF00 gUnk_0200AF00;
+} HUD;
+extern HUD gHUD;
#define MAX_GFX_SLOTS 44