mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-11-14 08:51:09 +00:00
More cinematic title demos (hide most HUD elements, show a title logo in the bottom right hand corner).
This commit is contained in:
parent
b8477b4067
commit
5d6e15f8af
1 changed files with 24 additions and 14 deletions
16
src/k_kart.c
16
src/k_kart.c
|
@ -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)
|
||||||
;
|
;
|
||||||
|
|
Loading…
Reference in a new issue