Merge pull request 'Add itemtimers and lapsplits into list of lua-togglable hud items' (#207) from indev/blankart:lua-toggles-for-blan-hud into next

Reviewed-on: https://codeberg.org/NepDisk/blankart/pulls/207
This commit is contained in:
NepDisk 2025-12-23 23:47:49 +01:00
commit 4b7bbf622b
4 changed files with 8 additions and 0 deletions

View file

@ -208,6 +208,7 @@ void K_DisplayItemTimers(void)
{
if (!cv_itemtimers.value) return;
// nooope
if (!LUA_HudEnabled(hud_itemtimers)) return;
if (stplyr->mo == NULL || P_MobjWasRemoved(stplyr->mo)) return;
// I love and hate you C++
std::vector<itimer_t> timers =

View file

@ -3224,6 +3224,9 @@ static INT32 K_GetRaceSplitsToggle(void)
return 0;
}
if (!LUA_HudEnabled(hud_lapsplits))
return 0;
// Not taking any chances with this stupid goddamn engine.
return max((INT32)(cv_racesplits.value), 1);
}

View file

@ -42,6 +42,8 @@ enum hud {
hud_lives,
hud_freeplay,
hud_rankings, // Tab rankings
hud_lapsplits,
hud_itemtimers,
// Intermission
hud_intermissiontally,

View file

@ -74,6 +74,8 @@ static const char *const hud_disable_options[] = {
"lives",
"freeplay",
"rankings",
"lapsplits",
"itemtimers",
"intermissiontally",
"intermissionmessages",