From 1a3ba61e6d198a7a5a711d3ea8b1cea5380ce951 Mon Sep 17 00:00:00 2001 From: Parnic Date: Sun, 10 Oct 2010 00:03:15 +0000 Subject: [PATCH] - fixed the "low threshold" flash to work properly on rotated bars --- IceUnitBar.lua | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/IceUnitBar.lua b/IceUnitBar.lua index d6cdf79..81d05e2 100644 --- a/IceUnitBar.lua +++ b/IceUnitBar.lua @@ -193,6 +193,20 @@ function IceUnitBar.prototype:CreateFlashFrame() end end +function IceUnitBar.prototype:RotateHorizontal() + IceUnitBar.super.prototype.RotateHorizontal(self) + + self:RotateFrame(self.flashFrame) +end + +function IceUnitBar.prototype:ResetRotation() + IceUnitBar.super.prototype.ResetRotation(self) + + if self.flashFrame.anim then + self.flashFrame.anim:Stop() + end +end + -- OVERRIDE function IceUnitBar.prototype:Update()