Add 'inputdisplay' option for hud.enable, hud.enabled, hud.disable and hud.getOffsets
This commit is contained in:
1 parent
2550f1bee5
commit
01bf367ce1
3 files changed
+7
-8
No files matched your search
+1
-7
@@ -11286,7 +11286,7 @@ void K_drawKartHUD(void)
|
||||
{
|
||||
if (!(splitscreen || demo.title))
|
||||
{
|
||||
if (LUA_HudEnabled(hud_position))
|
||||
if (LUA_HudEnabled(hud_inputdisplay))
|
||||
K_drawInput();
|
||||
}
|
||||
|
||||
@@ -11343,12 +11343,6 @@ void K_drawKartHUD(void)
|
||||
if (LUA_HudEnabled(hud_position))
|
||||
K_DrawKartPositionNum(stplyr->kartstuff[k_position]);
|
||||
}
|
||||
else //if (!(demo.playback && hu_showscores))
|
||||
{
|
||||
// Draw the input UI
|
||||
if (LUA_HudEnabled(hud_position))
|
||||
K_drawInput();
|
||||
}
|
||||
}
|
||||
else if (G_BattleGametype()) // Battle-only
|
||||
{
|
||||
|
||||
@@ -32,6 +32,7 @@ enum hud {
|
||||
hud_wanted,
|
||||
hud_speedometer,
|
||||
hud_statdisplay,
|
||||
hud_inputdisplay,
|
||||
hud_nametags,
|
||||
hud_driftgauge,
|
||||
hud_freeplay,
|
||||
|
||||
+5
-1
@@ -61,6 +61,7 @@ static const char *const hud_disable_options[] = {
|
||||
"wanted",
|
||||
"speedometer",
|
||||
"statdisplay",
|
||||
"inputdisplay",
|
||||
"nametags",
|
||||
"driftgauge",
|
||||
"freeplay",
|
||||
@@ -187,7 +188,8 @@ enum hudoffsets {
|
||||
hudoffsets_check,
|
||||
hudoffsets_minimap,
|
||||
hudoffsets_wanted,
|
||||
hudoffsets_statdisplay
|
||||
hudoffsets_statdisplay,
|
||||
hudoffsets_inputdisplay,
|
||||
};
|
||||
|
||||
static const char *const hud_offsets_options[] = {
|
||||
@@ -203,6 +205,7 @@ static const char *const hud_offsets_options[] = {
|
||||
"minimap",
|
||||
"wanted",
|
||||
"statdisplay",
|
||||
"inputdisplay",
|
||||
NULL};
|
||||
|
||||
enum huddrawinfo {
|
||||
@@ -1290,6 +1293,7 @@ static int lib_hudgetoffsets(lua_State *L)
|
||||
case hudoffsets_minimap: OFS(mini)
|
||||
case hudoffsets_wanted: OFS(want)
|
||||
case hudoffsets_statdisplay: OFS(stat)
|
||||
case hudoffsets_inputdisplay: OFS(wheel)
|
||||
default:
|
||||
return 0; // unreachable
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user