Stat display enable and disable luahook

This commit is contained in:
NepDisk authored and alufolie91 committed 2023-11-14 20:59:38 +01:00
1 parent 32d4a38b9e
commit 673a03e033
3 files changed
+13 -2

No files matched your search

+11 -2
View File
@@ -7590,13 +7590,19 @@ static void K_drawKartStats(void)
flags = V_SNAPTOBOTTOM|V_SNAPTOLEFT;
UINT8 splitnum = 0;
for (; splitnum < MAXSPLITSCREENPLAYERS; ++splitnum)
{
if (stplyr == &players[displayplayers[splitnum]])
break;
}
#ifdef HAVE_BLUA
if (!LUA_HudEnabled(hud_statdisplay))
return;
#endif
// I tried my best, but this is still mess :/
if (splitscreen)
{
@@ -10038,6 +10044,9 @@ void K_drawKartHUD(void)
K_drawInput();
if (!demo.title && cv_showstats.value)
#ifdef HAVE_BLUA
if (LUA_HudEnabled(hud_statdisplay))
#endif
K_drawKartStats();
if (demo.title) // Draw title logo instead in demo.titles
+1
View File
@@ -31,6 +31,7 @@ enum hud {
hud_battlecomebacktimer, // comeback timer in battlefullscreen. separated for ease of use.
hud_wanted,
hud_speedometer,
hud_statdisplay,
hud_freeplay,
hud_rankings, // Tab rankings
+1
View File
@@ -54,6 +54,7 @@ static const char *const hud_disable_options[] = {
"battlecomebacktimer", // come back timer in battlefullscreen
"wanted",
"speedometer",
"statdisplay",
"freeplay",
"rankings",
NULL};