- fixed hud scaling slider value ranges

This commit is contained in:
Christoph Oelckers 2020-02-14 00:56:23 +01:00
parent 071a364d83
commit c643aadb4b
2 changed files with 3 additions and 3 deletions

View file

@ -179,7 +179,7 @@ CUSTOM_CVARD(Int, hud_size, 9, CVAR_ARCHIVE | CVAR_NOINITCALL, "Defines the HUD
CUSTOM_CVARD(Int, hud_scale, 100, CVAR_ARCHIVE | CVAR_NOINITCALL, "changes the hud scale")
{
if (self < 36) self = 36;
if (self < 35) self = 35;
else if (self > 100) self = 100;
else gi->set_hud_scale(hud_scale);
}

View file

@ -1180,7 +1180,7 @@ OptionMenu "HUDOptions" //protected
ifgame(duke, nam, ww2gi, redneck, redneckrides, fury)
{
Slider "$DSPLYMNU_SCREENSIZE", "hud_size", 0.0, 11.0, 1.0, -1
Slider "$DSPLYMNU_SBSCALE", "hud_scale", 0.3, 1.0, 0.1, 2
Slider "$DSPLYMNU_SBSCALE", "hud_scale", 35, 100, 5, 2
}
ifgame(blood)
{
@ -1198,7 +1198,7 @@ OptionMenu "HUDOptions" //protected
Option "$DSPLYMNU_LEVELSTATS", "hud_stats", "OnOff"
ifgame(duke, nam, ww2gi, redneck, redneckrides, fury)
{
Slider "$DSPLYMNU_TEXTSCALE", "hud_textscale", 0.3, 1.0, 0.1, 2
Slider "$DSPLYMNU_TEXTSCALE", "hud_textscale", 100, 400, 20, 2
}
StaticText ""
Option "$DSPLYMNU_MESSAGES", "hud_messages", "HudMessages"