mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 14:50:13 -05:00
Fixed minor inefficient texture access
Also fixed an issue where we were looking for a variable that was not declared in the scope we were looking for it in.
This commit is contained in:
@ -784,10 +784,10 @@ function IceClassPowerCounter.prototype:SetupRuneTexture(rune)
|
||||
self.frame.graphical[rune]:SetPoint("CENTER", 0, -1 * (runeAdjust * (self.runeHeight-5) + runeAdjust + (runeAdjust * self.moduleSettings.runeGap)))
|
||||
end
|
||||
|
||||
local tex = self:GetRuneTexture(rune)
|
||||
if self:GetRuneMode() == "Graphical" then
|
||||
local tex = self:GetRuneTexture(rune)
|
||||
if tex then
|
||||
self.frame.graphical[rune].rune:SetTexture(self:GetRuneTexture(rune))
|
||||
self.frame.graphical[rune].rune:SetTexture(tex)
|
||||
else
|
||||
self.frame.graphical[rune].rune:SetAtlas(self:GetRuneAtlas(rune), self:UseAtlasSize(rune))
|
||||
end
|
||||
@ -801,7 +801,7 @@ function IceClassPowerCounter.prototype:SetupRuneTexture(rune)
|
||||
self.frame.graphical[rune].rune:SetTexture(IceElement.TexturePath .. "ComboCleanCurves")
|
||||
end
|
||||
if tex then
|
||||
self.frame.graphical[rune].runebg:SetTexture(self.frame.graphical[rune].rune:GetTexture())
|
||||
self.frame.graphical[rune].runebg:SetTexture(tex)
|
||||
else
|
||||
self.frame.graphical[rune].runebg:SetAtlas(self.frame.graphical[rune].rune:GetAtlas())
|
||||
end
|
||||
|
Reference in New Issue
Block a user