mirror of
https://github.com/ENSL/NS.git
synced 2024-11-21 20:21:14 +00:00
add todo for health/ammo ultrawide inset
This commit is contained in:
parent
6fd6cb8b8b
commit
a6c6f8c8e9
2 changed files with 6 additions and 0 deletions
|
@ -1400,6 +1400,9 @@ int CHudAmmo::Draw(float flTime)
|
||||||
int initialX = gHUD.GetWidth();
|
int initialX = gHUD.GetWidth();
|
||||||
if (hud_ammo_x && hud_ammo_x->value != 0.0f)
|
if (hud_ammo_x && hud_ammo_x->value != 0.0f)
|
||||||
{
|
{
|
||||||
|
//TODO: Inset position for ultrawide monitors.
|
||||||
|
//if (gHUD.GetWidth() > (gHUD.GetHeight() * 1.78f)){}
|
||||||
|
|
||||||
initialX *= min(max(0.0f, hud_ammo_x->value), 1.0f);
|
initialX *= min(max(0.0f, hud_ammo_x->value), 1.0f);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -312,6 +312,9 @@ int CHudHealth::Draw(float flTime)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
//TODO: Inset position for ultrawide monitors.
|
||||||
|
//if (gHUD.GetWidth() > (gHUD.GetHeight() * 1.78f)){}
|
||||||
|
|
||||||
x = CrossWidth / 2;
|
x = CrossWidth / 2;
|
||||||
}
|
}
|
||||||
int initialY = gHUD.GetHeight();
|
int initialY = gHUD.GetHeight();
|
||||||
|
|
Loading…
Reference in a new issue