mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-24 18:21:34 +00:00
NiGHTS mode: move timer and closed caption positions
This commit is contained in:
parent
39d3b1cbd5
commit
4557ce0253
2 changed files with 12 additions and 13 deletions
|
@ -493,11 +493,9 @@ void SCR_ClosedCaptions(void)
|
|||
basey -= 42;
|
||||
else if (splitscreen)
|
||||
basey -= 8;
|
||||
else if ((modeattacking == ATTACKING_NIGHTS)
|
||||
|| (!(maptol & TOL_NIGHTS)
|
||||
&& LUA_HudEnabled(hud_powerups)
|
||||
else if (LUA_HudEnabled(hud_powerups)
|
||||
&& ((cv_powerupdisplay.value == 2) // "Always"
|
||||
|| (cv_powerupdisplay.value == 1 && !camera.chase)))) // "First-person only"
|
||||
|| (cv_powerupdisplay.value == 1 && !camera.chase))) // "First-person only"
|
||||
basey -= 16;
|
||||
}
|
||||
|
||||
|
|
|
@ -2078,24 +2078,25 @@ static void ST_drawNiGHTSHUD(void)
|
|||
if (!stplyr->exiting && !oldspecialstage && LUA_HudEnabled(hud_nightsscore))
|
||||
ST_DrawNightsOverlayNum(304<<FRACBITS, 14<<FRACBITS, FRACUNIT, V_PERPLAYER|V_SNAPTOTOP|V_SNAPTORIGHT, stplyr->marescore, nightsnum, SKINCOLOR_AZURE);
|
||||
|
||||
// TODO give this its own section for Lua
|
||||
// TODO: give this its own section for Lua
|
||||
// TODO: on multi-mare maps, show time & grade for each completed mare
|
||||
if (!stplyr->exiting && LUA_HudEnabled(hud_nightsscore))
|
||||
{
|
||||
if (modeattacking == ATTACKING_NIGHTS)
|
||||
{
|
||||
INT32 maretime = max(stplyr->realtime - stplyr->marebegunat, 0);
|
||||
|
||||
#define VFLAGS V_SNAPTOBOTTOM|V_SNAPTORIGHT|V_PERPLAYER|V_HUDTRANS
|
||||
V_DrawScaledPatch(BASEVIDWIDTH-22, BASEVIDHEIGHT-20, VFLAGS, W_CachePatchName("NGRTIMER", PU_HUDGFX));
|
||||
V_DrawPaddedTallNum(BASEVIDWIDTH-22, BASEVIDHEIGHT-20, VFLAGS, G_TicsToCentiseconds(maretime), 2);
|
||||
V_DrawScaledPatch(BASEVIDWIDTH-46, BASEVIDHEIGHT-20, VFLAGS, sboperiod);
|
||||
#define VFLAGS V_SNAPTOTOP|V_SNAPTORIGHT|V_PERPLAYER|V_HUDTRANS
|
||||
V_DrawScaledPatch(BASEVIDWIDTH-16, 40, VFLAGS, W_CachePatchName("NGRTIMER", PU_HUDGFX));
|
||||
V_DrawPaddedTallNum(BASEVIDWIDTH-16, 40, VFLAGS, G_TicsToCentiseconds(maretime), 2);
|
||||
V_DrawScaledPatch(BASEVIDWIDTH-40, 40, VFLAGS, sboperiod);
|
||||
if (maretime < 60*TICRATE)
|
||||
V_DrawTallNum(BASEVIDWIDTH-46, BASEVIDHEIGHT-20, VFLAGS, G_TicsToSeconds(maretime));
|
||||
V_DrawTallNum(BASEVIDWIDTH-40, 40, VFLAGS, G_TicsToSeconds(maretime));
|
||||
else
|
||||
{
|
||||
V_DrawPaddedTallNum(BASEVIDWIDTH-46, BASEVIDHEIGHT-20, VFLAGS, G_TicsToSeconds(maretime), 2);
|
||||
V_DrawScaledPatch(BASEVIDWIDTH-70, BASEVIDHEIGHT-20, VFLAGS, sbocolon);
|
||||
V_DrawTallNum(BASEVIDWIDTH-70, BASEVIDHEIGHT-20, VFLAGS, G_TicsToMinutes(maretime, true));
|
||||
V_DrawPaddedTallNum(BASEVIDWIDTH-40, 40, VFLAGS, G_TicsToSeconds(maretime), 2);
|
||||
V_DrawScaledPatch(BASEVIDWIDTH-64, 40, VFLAGS, sbocolon);
|
||||
V_DrawTallNum(BASEVIDWIDTH-64, 40, VFLAGS, G_TicsToMinutes(maretime, true));
|
||||
}
|
||||
#undef VFLAGS
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue