mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
- removed a few old CancelScheduledEvent calls on bars that weren't actually scheduling any repeating timers any more and added a few CancelTimers to modules that weren't previously canceling their scheduled timers
- converted CancelScheduledEvent to CancelTimer for modules that are still scheduling repeating timers...not sure why CancelScheduledEvent didn't throw any errors (since i don't see how it exists) but whatever - removed a bunch of "function() self:Thing() end" closures in ScheduleRepeatingTimer calls that didn't need to be there
This commit is contained in:
@ -7,6 +7,7 @@ PlayerInfo.prototype.mainHandEnchantTimeSet = 0
|
||||
PlayerInfo.prototype.mainHandEnchantEndTime = 0
|
||||
PlayerInfo.prototype.offHandEnchantTimeSet = 0
|
||||
PlayerInfo.prototype.offHandEnchantEndTime = 0
|
||||
PlayerInfo.prototype.scheduledEvent = nil
|
||||
|
||||
-- Constructor --
|
||||
function PlayerInfo.prototype:init()
|
||||
@ -102,7 +103,13 @@ function PlayerInfo.prototype:Enable(core)
|
||||
self:HideBlizz()
|
||||
end
|
||||
|
||||
self:ScheduleRepeatingTimer(function() self:RepeatingUpdateBuffs() end, 1)
|
||||
self.scheduledEvent = self:ScheduleRepeatingTimer("RepeatingUpdateBuffs", 1)
|
||||
end
|
||||
|
||||
function PlayerInfo.prototype:Disable(core)
|
||||
PlayerInfo.super.prototype.Disable(self, core)
|
||||
|
||||
self:CancelTimer(self.scheduledEvent, true)
|
||||
end
|
||||
|
||||
function PlayerInfo.prototype:ShowBlizz()
|
||||
|
Reference in New Issue
Block a user