mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 22:51:53 -05:00
Fixed arcane charges not showing on first login
This commit is contained in:
@ -7,11 +7,6 @@ function ArcaneCharges.prototype:init()
|
|||||||
self:SetDefaultColor("ArcaneChargesNumeric", 150, 150, 255)
|
self:SetDefaultColor("ArcaneChargesNumeric", 150, 150, 255)
|
||||||
|
|
||||||
self.unit = "player"
|
self.unit = "player"
|
||||||
self.numRunes = UnitPowerMax(self.unit, SPELL_POWER_ARCANE_CHARGES)
|
|
||||||
self.runeCoords = { }
|
|
||||||
for i = 1, self.numRunes do
|
|
||||||
self.runeCoords[#self.runeCoords + 1] = {0, 1, 0, 1}
|
|
||||||
end
|
|
||||||
self.numericColor = "ArcaneChargesNumeric"
|
self.numericColor = "ArcaneChargesNumeric"
|
||||||
self.unitPower = SPELL_POWER_ARCANE_CHARGES
|
self.unitPower = SPELL_POWER_ARCANE_CHARGES
|
||||||
self.minLevel = 0
|
self.minLevel = 0
|
||||||
@ -21,9 +16,14 @@ function ArcaneCharges.prototype:init()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function ArcaneCharges.prototype:Enable(core)
|
function ArcaneCharges.prototype:Enable(core)
|
||||||
|
self.numRunes = UnitPowerMax(self.unit, SPELL_POWER_ARCANE_CHARGES)
|
||||||
|
self.runeCoords = { }
|
||||||
|
for i = 1, self.numRunes do
|
||||||
|
self.runeCoords[#self.runeCoords + 1] = {0, 1, 0, 1}
|
||||||
|
end
|
||||||
|
|
||||||
ArcaneCharges.super.prototype.Enable(self, core)
|
ArcaneCharges.super.prototype.Enable(self, core)
|
||||||
|
|
||||||
self:Redraw()
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function ArcaneCharges.prototype:GetOptions()
|
function ArcaneCharges.prototype:GetOptions()
|
||||||
|
Reference in New Issue
Block a user