mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-15 01:01:33 +00:00
Make powerup HUD disableable via Lua
This commit is contained in:
parent
d6bb89fbb2
commit
3888bf95f2
3 changed files with 5 additions and 3 deletions
|
@ -19,6 +19,7 @@ enum hud {
|
|||
hud_stagetitle = 0,
|
||||
hud_textspectator,
|
||||
hud_crosshair,
|
||||
hud_powerup,
|
||||
// Singleplayer / Co-op
|
||||
hud_score,
|
||||
hud_time,
|
||||
|
|
|
@ -40,6 +40,7 @@ static const char *const hud_disable_options[] = {
|
|||
"stagetitle",
|
||||
"textspectator",
|
||||
"crosshair",
|
||||
"powerup",
|
||||
|
||||
"score",
|
||||
"time",
|
||||
|
|
|
@ -2795,14 +2795,14 @@ static void ST_overlayDrawer(void)
|
|||
|| ((splitscreen && stplyr == &players[secondarydisplayplayer]) && !camera2.chase))
|
||||
{
|
||||
ST_drawFirstPersonHUD();
|
||||
if (cv_powerupdisplay.value)
|
||||
if (cv_powerupdisplay.value && LUA_HudEnabled(hud_powerup))
|
||||
ST_drawPowerupHUD(); // same as it ever was...
|
||||
}
|
||||
else if (cv_powerupdisplay.value == 2)
|
||||
else if (cv_powerupdisplay.value == 2 && LUA_HudEnabled(hud_powerup))
|
||||
ST_drawPowerupHUD(); // same as it ever was...
|
||||
|
||||
}
|
||||
else if (!(netgame || multiplayer) && cv_powerupdisplay.value == 2)
|
||||
else if (!(netgame || multiplayer) && cv_powerupdisplay.value == 2 && LUA_HudEnabled(hud_powerup))
|
||||
ST_drawPowerupHUD(); // same as it ever was...
|
||||
|
||||
if (!(netgame || multiplayer) || !hu_showscores)
|
||||
|
|
Loading…
Reference in a new issue