From cf7a491d800ff184a94acd662f261538965aa346 Mon Sep 17 00:00:00 2001 From: Mr-Wiseguy Date: Mon, 28 Apr 2025 22:29:07 -0400 Subject: [PATCH] Center the moon fall countdown timer --- patches/ui_patches.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/patches/ui_patches.c b/patches/ui_patches.c index 989ddd8..7bf8955 100644 --- a/patches/ui_patches.c +++ b/patches/ui_patches.c @@ -633,6 +633,16 @@ RECOMP_PATCH void Interface_Draw(PlayState* play) { Interface_SetOrthoView(interfaceCtx); Interface_DrawMinigameIcons(play); + + // @recomp If the moon crash timer is running, center align timers and shift down. + bool moon_crash_timer_running = gSaveContext.timerStates[TIMER_ID_MOON_CRASH] != TIMER_STATE_OFF; + if (moon_crash_timer_running) { + // @recomp Use normal alignment and shift down for clock + gEXSetRectAlign(OVERLAY_DISP++, G_EX_ORIGIN_NONE, G_EX_ORIGIN_NONE, 0, margin_reduction * 4, 0, margin_reduction * 4); + gEXSetViewportAlign(OVERLAY_DISP++, G_EX_ORIGIN_NONE, 0, margin_reduction * 4); + Interface_SetOrthoView(interfaceCtx); + } + Interface_DrawTimers(play); // @recomp Restore normal alignment and shift down for minigame countdown or clock