From 668aa19a14d82a9be1c3332016e79ecffd6cc4ca Mon Sep 17 00:00:00 2001 From: Parnic Date: Fri, 5 Nov 2010 05:32:40 +0000 Subject: [PATCH] - reverted r761 --- IceBarElement.lua | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/IceBarElement.lua b/IceBarElement.lua index 85592a5..1a80a58 100644 --- a/IceBarElement.lua +++ b/IceBarElement.lua @@ -22,8 +22,6 @@ local lastMarkerColorConfig = {r=1, b=0, g=0, a=1} local lastMarkerHeightConfig = 6 local lastEditMarkerConfig = 1 -local MIN_ANIMATED_UPDATED_RATE = 15 - -- Constructor -- function IceBarElement.prototype:init(name, ...) IceBarElement.super.prototype.init(self, name, ...) @@ -359,28 +357,9 @@ do end, set = function(info, value) self.moduleSettings.shouldAnimate = value - self.moduleSettings.wasAnimated = value self:Redraw() end, disabled = function() - -- If below threshold, turn off and remember if we were on - if 1/IceHUD.IceCore:UpdatePeriod() < MIN_ANIMATED_UPDATED_RATE then - if self.moduleSettings.shouldAnimate then - self.moduleSettings.wasAnimated = true - self.moduleSettings.shouldAnimate = false - IceHUD:NotifyOptionsChange() - self:Redraw() - end - return true - - -- If above threshold, if we're off but were on, turn back on - elseif not self.moduleSettings.shouldAnimate and self.moduleSettings.wasAnimated then - self.moduleSettings.shouldAnimate = true - self.moduleSettings.wasAnimated = false - IceHUD:NotifyOptionsChange() - self:Redraw() - end - return not self.moduleSettings.enabled end, order = 111