mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
- added a configuration mode to show all bars temporarily so they can be placed
- changed how frames are shown and hidden so we don't call show/hide unnecessarily - widened the min/max offset numbers to allow greater placement flexibility
This commit is contained in:
@ -54,7 +54,7 @@ function IceCastBar.prototype:Enable(core)
|
||||
self:RegisterEvent("UNIT_SPELLCAST_CHANNEL_UPDATE", "SpellCastChannelUpdate") -- unit
|
||||
self:RegisterEvent("UNIT_SPELLCAST_CHANNEL_STOP", "SpellCastChannelStop") -- unit
|
||||
|
||||
self.frame:Hide()
|
||||
self:Show(false)
|
||||
end
|
||||
|
||||
|
||||
@ -179,7 +179,7 @@ function IceCastBar.prototype:StartBar(action, message)
|
||||
self.actionMessage = spell .. self:GetShortRank(rank)
|
||||
end
|
||||
|
||||
self.frame:Show()
|
||||
self:Show(true)
|
||||
self.frame:SetScript("OnUpdate", function() self:OnUpdate() end)
|
||||
end
|
||||
|
||||
@ -189,7 +189,7 @@ function IceCastBar.prototype:StopBar()
|
||||
self.actionStartTime = nil
|
||||
self.actionDuration = nil
|
||||
|
||||
self.frame:Hide()
|
||||
self:Show(false)
|
||||
self.frame:SetScript("OnUpdate", nil)
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user