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:
@ -23,10 +23,10 @@ end
|
||||
function IceCustomBar.prototype:Enable(core)
|
||||
IceCustomBar.super.prototype.Enable(self, core)
|
||||
|
||||
self:RegisterEvent("UNIT_AURA", "UpdateCustomBar")
|
||||
self:RegisterEvent("UNIT_PET", "UpdateCustomBar")
|
||||
self:RegisterEvent("PLAYER_PET_CHANGED", "UpdateCustomBar")
|
||||
self:RegisterEvent("PLAYER_FOCUS_CHANGED", "UpdateCustomBar")
|
||||
self:RegisterEvent("UNIT_AURA", "UpdateCustomBarEvent")
|
||||
self:RegisterEvent("UNIT_PET", "UpdateCustomBarEvent")
|
||||
self:RegisterEvent("PLAYER_PET_CHANGED", "UpdateCustomBarEvent")
|
||||
self:RegisterEvent("PLAYER_FOCUS_CHANGED", "UpdateCustomBarEvent")
|
||||
|
||||
if self.moduleSettings.auraIconScale == nil then
|
||||
self.moduleSettings.auraIconScale = 1
|
||||
@ -496,6 +496,10 @@ function IceCustomBar.prototype:GetAuraDuration(unitName, buffName)
|
||||
return nil, nil, nil, nil
|
||||
end
|
||||
|
||||
function IceCustomBar.prototype:UpdateCustomBarEvent(event, unit)
|
||||
self:UpdateCustomBar(unit)
|
||||
end
|
||||
|
||||
function IceCustomBar.prototype:UpdateCustomBar(unit, fromUpdate)
|
||||
if unit and unit ~= self.unit and not (self.unit == "main hand weapon" or self.unit == "off hand weapon") then
|
||||
return
|
||||
|
Reference in New Issue
Block a user