mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
Fix errors when playing Faire games
This commit is contained in:
@ -1,5 +1,9 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
v1.14.16:
|
||||||
|
|
||||||
|
- Fixed a reported error when playing Darkmoon Faire games.
|
||||||
|
|
||||||
v1.14.15:
|
v1.14.15:
|
||||||
|
|
||||||
- Updated TOCs for 10.0.5
|
- Updated TOCs for 10.0.5
|
||||||
|
@ -616,7 +616,10 @@ function IceClassPowerCounter.prototype:SetRuneCoords(rune, percent)
|
|||||||
|
|
||||||
local left, right, top, bottom = 0, 1, 0, 1
|
local left, right, top, bottom = 0, 1, 0, 1
|
||||||
if self:GetRuneMode() == "Graphical" then
|
if self:GetRuneMode() == "Graphical" then
|
||||||
left, right, top, bottom = unpack(self.runeCoords[rune])
|
local coords = self.runeCoords[rune]
|
||||||
|
if coords then
|
||||||
|
left, right, top, bottom = unpack(coords)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if self.currentGrowMode == self.growModes["height"] then
|
if self.currentGrowMode == self.growModes["height"] then
|
||||||
@ -874,7 +877,10 @@ function IceClassPowerCounter.prototype:SetupRuneTexture(rune)
|
|||||||
local a,b,c,d = 0, 1, 0, 1
|
local a,b,c,d = 0, 1, 0, 1
|
||||||
if self:GetRuneMode() == "Graphical" then
|
if self:GetRuneMode() == "Graphical" then
|
||||||
width = self.runeWidth
|
width = self.runeWidth
|
||||||
a,b,c,d = unpack(self.runeCoords[rune])
|
local coords = self.runeCoords[rune]
|
||||||
|
if coords then
|
||||||
|
a,b,c,d = unpack(coords)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- make sure any texture aside from the special one is square and has the proper coordinates
|
-- make sure any texture aside from the special one is square and has the proper coordinates
|
||||||
|
@ -1,5 +1,9 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
v1.14.16:
|
||||||
|
|
||||||
|
- Fixed a reported error when playing Darkmoon Faire games.
|
||||||
|
|
||||||
v1.14.15:
|
v1.14.15:
|
||||||
|
|
||||||
- Updated TOCs for 10.0.5
|
- Updated TOCs for 10.0.5
|
||||||
|
Reference in New Issue
Block a user