Fixed Options.HudOffset being evaluated wrong in Y direction

closes #890
This commit is contained in:
Wofsauge committed 2025-07-17 20:52:54 +02:00
1 parent 3e566ecedc
commit 5b90f91b6f
1 file changed
+3 -1
+3 -1
View File
@@ -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