Mercurial > wow > kbf
diff KBF.lua @ 9:ede17cc71b66
Don't set bars to full & then actual value every update, flicker is bad
author | Chris Mellon <arkanes@gmai.com> |
---|---|
date | Tue, 12 Oct 2010 22:11:46 -0500 |
parents | d0b83b70c7f8 |
children | 7309cc67cac0 |
line wrap: on
line diff
--- 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