lua hud disable option for driftgauge

This commit is contained in:
Alug committed 2024-02-25 18:21:03 +01:00
1 parent f3dfa53f31
commit 56259e3476
3 files changed
+10 -4

No files matched your search

+8 -4
View File
@@ -10523,12 +10523,16 @@ void K_drawKartHUD(void)
#ifdef HAVE_BLUA
if (LUA_HudEnabled(hud_item) && !freecam)
#endif
K_drawKartItem();
K_drawKartItem();
if (cv_driftgauge.value && !modeattacking)
{
#ifdef HAVE_BLUA
if (LUA_HudEnabled(hud_driftgauge))
#endif
K_drawDriftGauge();
}
if (cv_nametag.value)
{
#ifdef HAVE_BLUA
+1
View File
@@ -33,6 +33,7 @@ enum hud {
hud_speedometer,
hud_statdisplay,
hud_nametags,
hud_driftgauge,
hud_freeplay,
hud_rankings, // Tab rankings
+1
View File
@@ -58,6 +58,7 @@ static const char *const hud_disable_options[] = {
"speedometer",
"statdisplay",
"nametags",
"driftgauge",
"freeplay",
"rankings",
NULL};