mirror of
https://github.com/Zelda64Recomp/Zelda64Recomp.git
synced 2025-10-30 08:03:03 +00:00
Center the moon fall countdown timer
This commit is contained in:
parent
0dc391077d
commit
cf7a491d80
1 changed files with 10 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue