Center the moon fall countdown timer

This commit is contained in:
Mr-Wiseguy
2025-04-28 22:29:07 -04:00
parent 0dc391077d
commit cf7a491d80

View File

@@ -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