Fixed Options.HudOffset being evaluated wrong in Y direction
closes #890
This commit is contained in:
1 parent
3e566ecedc
commit
5b90f91b6f
1 file changed
+3
-1
@@ -1205,7 +1205,9 @@ end
|
||||
function EID:CheckPosModifiers()
|
||||
-- HUD offset adjustment, done every frame so it looks nice while changing the option
|
||||
if Options then
|
||||
EID:addTextPosModifier("HudOffset", Vector(((Options.HUDOffset * 10) * 2) - 20, (Options.HUDOffset * 10) - 10))
|
||||
-- Read the HUD offset from the Options table if it exists.
|
||||
-- +3 Y to avoid overlapping with the shadow of the charge bar hud
|
||||
EID:addTextPosModifier("HudOffset", Vector(20, 12) * (Options.HUDOffset - 1) + Vector(0, 3))
|
||||
else
|
||||
EID:addTextPosModifier("HudOffset", Vector((EID.Config["HUDOffset"] * 2) - 20, EID.Config["HUDOffset"] - 10))
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user