mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-24 10:40:46 +00:00
Use multiples of 5 for the HUD scale option and cap the range at 50-100
git-svn-id: https://svn.eduke32.com/eduke32@8071 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
1ba0406b4d
commit
e262135463
5 changed files with 6 additions and 6 deletions
|
@ -4574,7 +4574,7 @@ void G_HandleLocalKeys(void)
|
|||
}
|
||||
else
|
||||
{
|
||||
G_SetStatusBarScale(ud.statusbarscale+4);
|
||||
G_SetStatusBarScale(ud.statusbarscale+5);
|
||||
}
|
||||
|
||||
G_UpdateScreenArea();
|
||||
|
@ -4600,7 +4600,7 @@ void G_HandleLocalKeys(void)
|
|||
}
|
||||
else
|
||||
{
|
||||
G_SetStatusBarScale(ud.statusbarscale-4);
|
||||
G_SetStatusBarScale(ud.statusbarscale-5);
|
||||
}
|
||||
|
||||
G_UpdateScreenArea();
|
||||
|
|
|
@ -626,7 +626,7 @@ EXTERN_INLINE_HEADER void SetIfGreater(int32_t *variable, int32_t potentialValue
|
|||
|
||||
EXTERN_INLINE void G_SetStatusBarScale(int32_t sc)
|
||||
{
|
||||
ud.statusbarscale = clamp(sc, 36, 100);
|
||||
ud.statusbarscale = clamp(sc, 50, 100);
|
||||
G_UpdateScreenArea();
|
||||
}
|
||||
|
||||
|
|
|
@ -634,7 +634,7 @@ static MenuOption_t MEO_SCREENSETUP_STATUSBARONTOP = MAKE_MENUOPTION(&MF_Redfont
|
|||
static MenuEntry_t ME_SCREENSETUP_STATUSBARONTOP = MAKE_MENUENTRY( "Status bar:", &MF_Redfont, &MEF_BigOptionsRt, &MEO_SCREENSETUP_STATUSBARONTOP, Option );
|
||||
#endif
|
||||
|
||||
static MenuRangeInt32_t MEO_SCREENSETUP_SBARSIZE = MAKE_MENURANGE( &ud.statusbarscale, &MF_Redfont, 36, 100, 0, 17, 2 );
|
||||
static MenuRangeInt32_t MEO_SCREENSETUP_SBARSIZE = MAKE_MENURANGE( &ud.statusbarscale, &MF_Redfont, 50, 100, 0, 10, 2 );
|
||||
static MenuEntry_t ME_SCREENSETUP_SBARSIZE = MAKE_MENUENTRY( s_Scale, &MF_Redfont, &MEF_BigOptions_Apply, &MEO_SCREENSETUP_SBARSIZE, RangeInt32 );
|
||||
|
||||
|
||||
|
|
|
@ -1640,7 +1640,7 @@ int32_t registerosdcommands(void)
|
|||
{ "hud_shadows", "enable/disable althud shadows", (void *)&althud_shadows, CVAR_BOOL, 0, 1 },
|
||||
{ "hud_flashing", "enable/disable althud flashing", (void *)&althud_flashing, CVAR_BOOL, 0, 1 },
|
||||
{ "hud_glowingquotes", "enable/disable \"glowing\" quote text", (void *)&hud_glowingquotes, CVAR_BOOL, 0, 1 },
|
||||
{ "hud_scale","changes the hud scale", (void *)&ud.statusbarscale, CVAR_INT|CVAR_FUNCPTR, 36, 100 },
|
||||
{ "hud_scale","changes the hud scale", (void *)&ud.statusbarscale, CVAR_INT|CVAR_FUNCPTR, 50, 100 },
|
||||
{ "hud_showmapname", "enable/disable map name display on load", (void *)&hud_showmapname, CVAR_BOOL, 0, 1 },
|
||||
{ "hud_stats", "enable/disable level statistics display", (void *)&ud.levelstats, CVAR_BOOL, 0, 1 },
|
||||
{ "hud_textscale", "sets multiplayer chat message size", (void *)&ud.textscale, CVAR_INT, 100, 400 },
|
||||
|
|
|
@ -380,7 +380,7 @@ static void G_DrawAltDigiNum(int32_t x, int32_t y, int32_t n, char s, int32_t cs
|
|||
|
||||
static int32_t invensc(int32_t maximum) // used to reposition the inventory icon selector as the HUD scales
|
||||
{
|
||||
return scale(maximum << 16, ud.statusbarscale - 36, 100 - 36);
|
||||
return scale(maximum << 16, ud.statusbarscale - 50, 100 - 50);
|
||||
}
|
||||
|
||||
void G_DrawInventory(const DukePlayer_t *p)
|
||||
|
|
Loading…
Reference in a new issue