mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 22:51:53 -05:00
Fixed rotation not resetting on profile change
When the player had one profile with a bar rotated 90 degrees and another profile with the same bar not rotated, the non-rotated profile would fail to put the bar back in its original location. Thanks for the detailed report, spacegato!
This commit is contained in:
@ -946,6 +946,8 @@ function IceBarElement.prototype:CreateFrame()
|
|||||||
|
|
||||||
if self.moduleSettings.rotateBar then
|
if self.moduleSettings.rotateBar then
|
||||||
self:RotateHorizontal()
|
self:RotateHorizontal()
|
||||||
|
else
|
||||||
|
self:ResetRotation()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -203,7 +203,7 @@ end
|
|||||||
function IceUnitBar.prototype:ResetRotation()
|
function IceUnitBar.prototype:ResetRotation()
|
||||||
IceUnitBar.super.prototype.ResetRotation(self)
|
IceUnitBar.super.prototype.ResetRotation(self)
|
||||||
|
|
||||||
if self.flashFrame.anim then
|
if self.flashFrame and self.flashFrame.anim then
|
||||||
self.flashFrame.anim:Stop()
|
self.flashFrame.anim:Stop()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user