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:
@ -102,7 +102,7 @@ function PlayerInfo.prototype:Enable(core)
|
||||
self:HideBlizz()
|
||||
end
|
||||
|
||||
self:ScheduleRepeatingEvent(self.elementName, self.UpdateBuffs, 1, self, self.unit, true)
|
||||
self:ScheduleRepeatingTimer(function() self:RepeatingUpdateBuffs() end, 1)
|
||||
end
|
||||
|
||||
function PlayerInfo.prototype:ShowBlizz()
|
||||
@ -120,6 +120,10 @@ function PlayerInfo.prototype:HideBlizz()
|
||||
BuffFrame:UnregisterAllEvents()
|
||||
end
|
||||
|
||||
function PlayerInfo.prototype:RepeatingUpdateBuffs()
|
||||
self:UpdateBuffs(self.unit, true)
|
||||
end
|
||||
|
||||
function PlayerInfo.prototype:UpdateBuffs(unit, fromRepeated)
|
||||
if unit and unit ~= self.unit then
|
||||
return
|
||||
|
Reference in New Issue
Block a user