diff options
| author | octorock <79596758+octorock@users.noreply.github.com> | 2022-12-22 23:47:13 +0100 |
|---|---|---|
| committer | octorock <79596758+octorock@users.noreply.github.com> | 2022-12-22 23:47:13 +0100 |
| commit | ea9b7e7848ae5c194acd7bb13fb40b1ccfe49e1e (patch) | |
| tree | 5433636373843e18fa182c44b630b7612639fa9d /include | |
| parent | c28018843601b99907ab79ef3fd9e689b078e384 (diff) | |
Fix palette groups
Diffstat (limited to 'include')
| -rw-r--r-- | include/main.h | 1 | ||||
| -rw-r--r-- | include/structures.h | 20 |
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 |
