# HG changeset patch # User Chris Mellon # Date 1286939506 18000 # Node ID ede17cc71b667e8bb89a056f2fa12e105a6e28d8 # Parent d0b83b70c7f82a921b5c56b188c83c9680e71e5a Don't set bars to full & then actual value every update, flicker is bad diff -r d0b83b70c7f8 -r ede17cc71b66 KBF.lua --- a/KBF.lua Tue Oct 12 18:58:24 2010 -0500 +++ b/KBF.lua Tue Oct 12 22:11:46 2010 -0500 @@ -47,7 +47,8 @@ if self.dirty then local unit = self.secureFrame:GetAttribute("unit") self:BindBarToBuff(frame, unit) - elseif frame.expirationTime then + end + if frame.expirationTime then local remaining = frame.expirationTime - GetTime() remaining = math.max(0, remaining) local perc = remaining / frame.duration @@ -83,7 +84,6 @@ parentFrame.expirationTime = expirationTime parentFrame.duration = duration parentFrame.statusbar:SetMinMaxValues(0, duration) - parentFrame.statusbar:SetValue(duration) else parentFrame.expirationTime = nil parentFrame.duration = 0