mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-26 12:01:47 +00:00
Merge branch 'restart-time-attack-prompt' into 'master'
Time Attack HUD tweak See merge request KartKrew/Kart!2004
This commit is contained in:
commit
492b3df1a9
1 changed files with 20 additions and 7 deletions
|
|
@ -1987,8 +1987,13 @@ void K_drawKartTimestamp(tic_t drawtime, INT32 TX, INT32 TY, INT32 splitflags, U
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
workx -= V_ThinStringWidth(stickermedalinfo.targettext, splitflags);
|
using srb2::Draw;
|
||||||
V_DrawThinString(workx, worky, splitflags, stickermedalinfo.targettext);
|
Draw::TextElement text(stickermedalinfo.targettext);
|
||||||
|
text.flags(splitflags);
|
||||||
|
text.font(Draw::Font::kZVote);
|
||||||
|
|
||||||
|
workx -= text.width();
|
||||||
|
Draw(workx, worky).text(text);
|
||||||
}
|
}
|
||||||
|
|
||||||
workx -= (6 + (i*5));
|
workx -= (6 + (i*5));
|
||||||
|
|
@ -5953,11 +5958,19 @@ void K_drawKartHUD(void)
|
||||||
{
|
{
|
||||||
// Draw the timestamp
|
// Draw the timestamp
|
||||||
if (LUA_HudEnabled(hud_time))
|
if (LUA_HudEnabled(hud_time))
|
||||||
K_drawKartTimestamp(stplyr->realtime,
|
{
|
||||||
TIME_X,
|
bool ta = modeattacking && !demo.playback;
|
||||||
TIME_Y,
|
INT32 flags = V_HUDTRANS|V_SLIDEIN|V_SNAPTOTOP|V_SNAPTORIGHT;
|
||||||
V_HUDTRANS|V_SLIDEIN|V_SNAPTOTOP|V_SNAPTORIGHT,
|
K_drawKartTimestamp(stplyr->realtime, TIME_X, TIME_Y + (ta ? 2 : 0), flags, 0);
|
||||||
0);
|
if (ta)
|
||||||
|
{
|
||||||
|
using srb2::Draw;
|
||||||
|
Draw(BASEVIDWIDTH - 19, 2)
|
||||||
|
.flags(flags | V_YELLOWMAP)
|
||||||
|
.align(Draw::Align::kRight)
|
||||||
|
.text("\xBE Restart");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
islonesome = K_drawKartPositionFaces();
|
islonesome = K_drawKartPositionFaces();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue