More cinematic title demos (hide most HUD elements, show a title logo in the bottom right hand corner).

This commit is contained in:
toaster 2018-11-15 14:30:11 +00:00
parent b8477b4067
commit 5d6e15f8af

View file

@ -7503,12 +7503,19 @@ static void K_drawInput(void)
if (timeinmap < 113) if (timeinmap < 113)
{ {
INT32 count = ((INT32)(timeinmap) - 105); INT32 count = ((INT32)(timeinmap) - 105);
offs = 64; offs = (titledemo ? 128 : 64);
while (count-- > 0) while (count-- > 0)
offs >>= 1; offs >>= 1;
x += offs; x += offs;
} }
if (titledemo)
{
V_DrawTinyScaledPatch(x-54, 128, splitflags, W_CachePatchName("TTKBANNR", PU_CACHE));
V_DrawTinyScaledPatch(x-54, 128+25, splitflags, W_CachePatchName("TTKART", PU_CACHE));
return;
}
#define BUTTW 8 #define BUTTW 8
#define BUTTH 11 #define BUTTH 11
@ -7814,7 +7821,7 @@ void K_drawKartHUD(void)
if (cv_kartcheck.value && !splitscreen && !players[displayplayer].exiting) if (cv_kartcheck.value && !splitscreen && !players[displayplayer].exiting)
K_drawKartPlayerCheck(); K_drawKartPlayerCheck();
if (splitscreen == 0 && cv_kartminimap.value) if (splitscreen == 0 && cv_kartminimap.value && !titledemo)
{ {
#ifdef HAVE_BLUA #ifdef HAVE_BLUA
if (LUA_HudEnabled(hud_minimap)) if (LUA_HudEnabled(hud_minimap))
@ -7839,7 +7846,7 @@ void K_drawKartHUD(void)
} }
// If not splitscreen, draw... // If not splitscreen, draw...
if (!splitscreen) if (!splitscreen && !titledemo)
{ {
// Draw the timestamp // Draw the timestamp
#ifdef HAVE_BLUA #ifdef HAVE_BLUA
@ -7860,6 +7867,8 @@ void K_drawKartHUD(void)
if (!stplyr->spectator) // Bottom of the screen elements, don't need in spectate mode if (!stplyr->spectator) // Bottom of the screen elements, don't need in spectate mode
{ {
if (G_RaceGametype()) // Race-only elements if (G_RaceGametype()) // Race-only elements
{
if (!titledemo)
{ {
// Draw the lap counter // Draw the lap counter
#ifdef HAVE_BLUA #ifdef HAVE_BLUA
@ -7876,6 +7885,7 @@ void K_drawKartHUD(void)
#endif #endif
K_drawKartSpeedometer(); K_drawKartSpeedometer();
} }
}
if (isfreeplay) if (isfreeplay)
; ;