summaryrefslogtreecommitdiff
path: root/src/engine
diff options
context:
space:
mode:
authorKiritoDv <kiritodev01@gmail.com>2024-12-29 00:55:40 -0600
committerLywx <kiritodev01@gmail.com>2025-01-03 16:56:49 -0600
commitf26c94c882244e683ae947a7e0359577010f3a51 (patch)
tree381d6a87c3e34be7379b4d447cd459dd3b06a521 /src/engine
parent8462aee14e3732d482c5457569d61e3f8f60e9d9 (diff)
Added functionality to draw hud events
Diffstat (limited to 'src/engine')
-rw-r--r--src/engine/fox_hud.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/engine/fox_hud.c b/src/engine/fox_hud.c
index 98fea7e4..8d5df276 100644
--- a/src/engine/fox_hud.c
+++ b/src/engine/fox_hud.c
@@ -3654,6 +3654,11 @@ void HUD_Draw(void) {
s32 i;
s32 goldRings;
bool medalStatus;
+ CALL_EVENT(DrawGlobalHUDPreEvent);
+ if (DrawGlobalHUDPreEvent_.event.cancelled){
+ return;
+ }
+
gDPSetTextureFilter(gMasterDisp++, G_TF_POINT);
if (D_hud_80161730 == 0) {
@@ -3764,6 +3769,7 @@ void HUD_Draw(void) {
HUD_RadioDamage();
HUD_PauseScreen_Update();
gDPSetTextureFilter(gMasterDisp++, G_TF_BILERP);
+ CALL_EVENT(DrawGlobalHUDPostEvent);
}
void FoBase_Draw(Boss* this) {