mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
- fixed default rune frame showing up sometimes when the player has the "hide blizzard frame" option disabled in the runes module
- fixed default runes from being incorrect (showing 6 blood runes) after re-enabling them from the runes module while the game is running
This commit is contained in:
@ -192,9 +192,13 @@ end
|
||||
function Runes.prototype:Enable(core)
|
||||
Runes.super.prototype.Enable(self, core)
|
||||
|
||||
self:RegisterEvent("RUNE_POWER_UPDATE", "UpdateRunePower");
|
||||
self:RegisterEvent("RUNE_TYPE_UPDATE", "UpdateRuneType");
|
||||
self:RegisterEvent("PLAYER_ENTERING_WORLD", "ResetRuneAvailability");
|
||||
self:RegisterEvent("RUNE_POWER_UPDATE", "UpdateRunePower")
|
||||
self:RegisterEvent("RUNE_TYPE_UPDATE", "UpdateRuneType")
|
||||
self:RegisterEvent("PLAYER_ENTERING_WORLD", "ResetRuneAvailability")
|
||||
|
||||
if (self.moduleSettings.hideBlizz) then
|
||||
self:HideBlizz()
|
||||
end
|
||||
end
|
||||
|
||||
function Runes.prototype:Disable(core)
|
||||
@ -209,10 +213,6 @@ function Runes.prototype:ResetRuneAvailability()
|
||||
for i=1, self.numRunes do
|
||||
self:UpdateRunePower(nil, i, true)
|
||||
end
|
||||
|
||||
if (self.moduleSettings.hideBlizz) then
|
||||
self:HideBlizz()
|
||||
end
|
||||
end
|
||||
|
||||
-- simply shows/hides the foreground rune when it becomes usable/unusable. this allows the background transparent rune to show only
|
||||
@ -389,6 +389,7 @@ function Runes.prototype:ShowBlizz()
|
||||
RuneFrame:Show()
|
||||
|
||||
RuneFrame:GetScript("OnLoad")(RuneFrame)
|
||||
RuneFrame:GetScript("OnEvent")(frame, "PLAYER_ENTERING_WORLD")
|
||||
for i=1, self.numRunes do
|
||||
local frame = _G["RuneButtonIndividual"..i]
|
||||
if frame then
|
||||
|
Reference in New Issue
Block a user