mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
- replaced AceEvent-2.0 with AceEvent-3.0/AceTimer-3.0
This commit is contained in:
@ -25,8 +25,8 @@ end
|
||||
function IceCustomCDBar.prototype:Enable(core)
|
||||
IceCustomCDBar.super.prototype.Enable(self, core)
|
||||
|
||||
self:RegisterEvent("SPELL_UPDATE_COOLDOWN", "UpdateCustomBar")
|
||||
self:RegisterEvent("SPELL_UPDATE_USEABLE", "UpdateCustomBar")
|
||||
self:RegisterEvent("SPELL_UPDATE_COOLDOWN", "UpdateCustomBarEvent")
|
||||
self:RegisterEvent("SPELL_UPDATE_USEABLE", "UpdateCustomBarEvent")
|
||||
|
||||
self:Show(true)
|
||||
|
||||
@ -439,6 +439,10 @@ function IceCustomCDBar.prototype:UpdateIcon()
|
||||
end
|
||||
end
|
||||
|
||||
function IceCustomCDBar.prototype:UpdateCustomBarEvent()
|
||||
self:UpdateCustomBar()
|
||||
end
|
||||
|
||||
function IceCustomCDBar.prototype:UpdateCustomBar(fromUpdate)
|
||||
local now = GetTime()
|
||||
local remaining = nil
|
||||
|
Reference in New Issue
Block a user