Added two new events for boss health and edge arrows

This commit is contained in:
KiritoDv 2024-12-29 00:59:57 -06:00
parent e48ef51adc
commit fd0cd322f8
4 changed files with 11 additions and 3 deletions

View File

@ -568,9 +568,13 @@ void Game_Update(void) {
Radio_Draw();
if (gShowHud) {
HUD_Draw();
HUD_EdgeArrows_Update();
CALL_CANCELLABLE_EVENT(DrawEdgeArrowsHUDEvent){
HUD_EdgeArrows_Update();
}
}
CALL_CANCELLABLE_EVENT(DrawBossHealthHUDEvent){
HUD_DrawBossHealth();
}
HUD_DrawBossHealth();
}
} else {
for (i = 0; i < gCamCount; i++) {

View File

@ -15,6 +15,8 @@ DEFINE_EVENT(DrawIncomingMsgHUDEvent);
DEFINE_EVENT(DrawGoldRingsHUDEvent);
DEFINE_EVENT(DrawLivesCounterHUDEvent);
DEFINE_EVENT(DrawTrainingRingPassCountHUDEvent);
DEFINE_EVENT(DrawEdgeArrowsHUDEvent);
DEFINE_EVENT(DrawBossHealthHUDEvent);
DEFINE_EVENT(DrawGlobalHUDPreEvent);
DEFINE_EVENT(DrawGlobalHUDPostEvent);

View File

@ -4,6 +4,6 @@
#include "sf64object.h"
#include "port/hooks/impl/EventSystem.h"
DEFINE_EVENT(ItemDropEvent,
DEFINE_EVENT(ItemDropEvent,
Item* item;
);

View File

@ -172,6 +172,8 @@ void PortEnhancements_Init() {
REGISTER_EVENT(DrawGoldRingsHUDEvent);
REGISTER_EVENT(DrawLivesCounterHUDEvent);
REGISTER_EVENT(DrawTrainingRingPassCountHUDEvent);
REGISTER_EVENT(DrawEdgeArrowsHUDEvent);
REGISTER_EVENT(DrawBossHealthHUDEvent);
REGISTER_EVENT(DrawGlobalHUDPreEvent);
REGISTER_EVENT(DrawGlobalHUDPostEvent);