1
0
mirror of https://github.com/JezuzLizard/BO2-Reimagined.git synced 2025-06-07 21:59:49 -05:00

HUD: improve overheat percent image

This commit is contained in:
Jbleezy 2024-06-05 03:20:18 -07:00
parent 5113c49f79
commit 08d131e1e5

View File

@ -508,7 +508,7 @@ CoD.AmmoAreaZombie.UpdateOverheat = function(f8_arg0, f8_arg1)
end end
return return
else else
local f8_local2 = CoD.AmmoAreaZombie.Right - 90 local f8_local2 = CoD.AmmoAreaZombie.Right - 82
local f8_local3 = CoD.HUDDigit.Width local f8_local3 = CoD.HUDDigit.Width
local f8_local4 = CoD.HUDDigit.Spacing + 2 local f8_local4 = CoD.HUDDigit.Spacing + 2
local f8_local5 = CoD.HUDDigit.BigBottomNumbersY local f8_local5 = CoD.HUDDigit.BigBottomNumbersY
@ -516,29 +516,37 @@ CoD.AmmoAreaZombie.UpdateOverheat = function(f8_arg0, f8_arg1)
local f8_local7, f8_local8, f8_local9 = CoD.AmmoAreaZombie.GetThreeDigits(f8_arg1.heatPercent) local f8_local7, f8_local8, f8_local9 = CoD.AmmoAreaZombie.GetThreeDigits(f8_arg1.heatPercent)
local f8_local10 = 1 local f8_local10 = 1
f8_local2 = f8_local2 + (f8_local4 / 2)
f8_arg0.ammoDigits[f8_local10]:setDigit(CoD.HUDDigit.Slash, f8_local0) f8_arg0.ammoDigits[f8_local10]:setDigit(CoD.HUDDigit.Slash, f8_local0)
f8_arg0.ammoDigits[f8_local10]:setLeftRight(false, true, f8_local2 - f8_local3, f8_local2) f8_arg0.ammoDigits[f8_local10]:setLeftRight(false, true, f8_local2 - f8_local3, f8_local2)
f8_arg0.ammoDigits[f8_local10]:setTopBottom(false, true, f8_local5, f8_local5 + f8_local6) f8_arg0.ammoDigits[f8_local10]:setTopBottom(false, true, f8_local5, f8_local5 + f8_local6)
f8_local10 = f8_local10 + 1 f8_local10 = f8_local10 + 1
local digitRatio = 3 local digitRatio = 2
local offsetLeftRight = 17 local offsetLeftRight = 16
local offsetTopBottom = 10 local offsetTopBottom = 8
if CoD.Zombie.IsDLCMap(CoD.Zombie.DLC3Maps) then
offsetTopBottom = offsetTopBottom - 2
end
f8_arg0.ammoDigits[f8_local10]:setDigit(0, f8_local0) f8_arg0.ammoDigits[f8_local10]:setDigit(0, f8_local0)
f8_arg0.ammoDigits[f8_local10]:setLeftRight(false, true, f8_local2 - (f8_local3 / digitRatio) - offsetLeftRight, f8_local2 - offsetLeftRight) f8_arg0.ammoDigits[f8_local10]:setLeftRight(false, true, f8_local2 - (f8_local3 / digitRatio) - offsetLeftRight, f8_local2 - offsetLeftRight)
f8_arg0.ammoDigits[f8_local10]:setTopBottom(false, true, f8_local5 + offsetTopBottom, f8_local5 + (f8_local6 / digitRatio) + offsetTopBottom) f8_arg0.ammoDigits[f8_local10]:setTopBottom(false, true, f8_local5 + offsetTopBottom, f8_local5 + (f8_local6 / digitRatio) + offsetTopBottom)
f8_local10 = f8_local10 + 1 f8_local10 = f8_local10 + 1
offsetLeftRight = 4 offsetLeftRight = 0
offsetTopBottom = 33 offsetTopBottom = 24
if CoD.Zombie.IsDLCMap(CoD.Zombie.DLC3Maps) then
offsetTopBottom = offsetTopBottom + 2
end
f8_arg0.ammoDigits[f8_local10]:setDigit(0, f8_local0) f8_arg0.ammoDigits[f8_local10]:setDigit(0, f8_local0)
f8_arg0.ammoDigits[f8_local10]:setLeftRight(false, true, f8_local2 - (f8_local3 / digitRatio) - offsetLeftRight, f8_local2 - offsetLeftRight) f8_arg0.ammoDigits[f8_local10]:setLeftRight(false, true, f8_local2 - (f8_local3 / digitRatio) - offsetLeftRight, f8_local2 - offsetLeftRight)
f8_arg0.ammoDigits[f8_local10]:setTopBottom(false, true, f8_local5 + offsetTopBottom, f8_local5 + (f8_local6 / digitRatio) + offsetTopBottom) f8_arg0.ammoDigits[f8_local10]:setTopBottom(false, true, f8_local5 + offsetTopBottom, f8_local5 + (f8_local6 / digitRatio) + offsetTopBottom)
f8_local10 = f8_local10 + 1 f8_local10 = f8_local10 + 1
f8_local2 = f8_local2 - f8_local4 f8_local2 = f8_local2 - f8_local4 - 3
f8_arg0.ammoDigits[f8_local10]:setDigit(f8_local9, f8_local0) f8_arg0.ammoDigits[f8_local10]:setDigit(f8_local9, f8_local0)
f8_arg0.ammoDigits[f8_local10]:setLeftRight(false, true, f8_local2 - f8_local3, f8_local2) f8_arg0.ammoDigits[f8_local10]:setLeftRight(false, true, f8_local2 - f8_local3, f8_local2)