mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
- fixed up several "hide blizzard frame" options to re-display when the module is disabled and to call blizzard's OnLoad for the frame instead of manually entering every event to re-register
- fixed "show incoming heals" option to be properly toggleable on 4.0 (bad conditional on the 'disabled' option) - hid "cooldown mode" option on the totems module since there was never more than one choice
This commit is contained in:
@ -147,7 +147,7 @@ function IceClassPowerCounter.prototype:GetOptions()
|
||||
end,
|
||||
order = 35
|
||||
}
|
||||
|
||||
|
||||
opts["inactiveDisplayMode"] = {
|
||||
type = 'select',
|
||||
name = 'Inactive mode',
|
||||
@ -216,7 +216,7 @@ end
|
||||
-- OVERRIDE
|
||||
function IceClassPowerCounter.prototype:Redraw()
|
||||
IceClassPowerCounter.super.prototype.Redraw(self)
|
||||
|
||||
|
||||
self:CreateFrame()
|
||||
end
|
||||
|
||||
@ -234,6 +234,14 @@ function IceClassPowerCounter.prototype:Enable(core)
|
||||
end
|
||||
end
|
||||
|
||||
function IceClassPowerCounter.prototype:Disable(core)
|
||||
IceClassPowerCounter.super.prototype.Disable(self, core)
|
||||
|
||||
if self.moduleSettings.hideBlizz then
|
||||
self:ShowBlizz()
|
||||
end
|
||||
end
|
||||
|
||||
function IceClassPowerCounter.prototype:UpdateRunePower()
|
||||
local numReady = UnitPower("player", self.unitPower)
|
||||
|
||||
@ -294,7 +302,7 @@ function IceClassPowerCounter.prototype:CreateFrame()
|
||||
self.frame:SetPoint("TOP", self.parent, "BOTTOM", self.moduleSettings.hpos, self.moduleSettings.vpos)
|
||||
|
||||
self:CreateRuneFrame()
|
||||
|
||||
|
||||
self:SetDisplayMode()
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user