From cf64a468f50e3ab99332e1f5680e12d7da74fce6 Mon Sep 17 00:00:00 2001 From: Latapostrophe Date: Tue, 28 Apr 2020 17:24:33 +0200 Subject: [PATCH] Add lua toggle for check hud --- src/k_kart.c | 7 +++++-- src/lua_hud.h | 1 + src/lua_hudlib.c | 1 + 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/k_kart.c b/src/k_kart.c index 04ba8244..cc5504bb 100644 --- a/src/k_kart.c +++ b/src/k_kart.c @@ -8781,8 +8781,11 @@ void K_drawKartHUD(void) if (!demo.title && (!battlefullscreen || splitscreen)) { // Draw the CHECK indicator before the other items, so it's overlapped by everything else - if (cv_kartcheck.value && !splitscreen && !players[displayplayers[0]].exiting && !freecam) - K_drawKartPlayerCheck(); +#ifdef HAVE_BLUA + if (LUA_HudEnabled(hud_check)) // delete lua when? +#endif + if (cv_kartcheck.value && !splitscreen && !players[displayplayers[0]].exiting && !freecam) + K_drawKartPlayerCheck(); // Draw WANTED status if (G_BattleGametype()) diff --git a/src/lua_hud.h b/src/lua_hud.h index 88d7fd6b..960195cd 100644 --- a/src/lua_hud.h +++ b/src/lua_hud.h @@ -19,6 +19,7 @@ enum hud { hud_minimap, hud_item, hud_position, + hud_check, // "CHECK" f-zero indicator hud_minirankings, // Rankings to the left hud_battlebumpers, // mini rankings battle bumpers. hud_battlefullscreen, // battle huge text (WAIT, WIN, LOSE ...) + karma comeback time diff --git a/src/lua_hudlib.c b/src/lua_hudlib.c index 22c89a23..22e98315 100644 --- a/src/lua_hudlib.c +++ b/src/lua_hudlib.c @@ -46,6 +46,7 @@ static const char *const hud_disable_options[] = { "minimap", "item", "position", + "check", // "CHECK" f-zero indicator "minirankings", // Gametype rankings to the left "battlerankingsbumpers", // bumper drawer for battle. Useful if you want to make a custom battle gamemode without bumpers being involved. "battlefullscreen", // battlefullscreen func (WAIT, ATTACK OR PROTECT ...)