diff --git a/IceBarElement.lua b/IceBarElement.lua index 8358c38..3a7b498 100644 --- a/IceBarElement.lua +++ b/IceBarElement.lua @@ -1135,7 +1135,11 @@ function IceBarElement.prototype:SetBarCoord(barFrame, scale, top) max_y = scale offset_y = (self.settings.barHeight * (1 - scale)) end - self:SetBarFramePoints(barFrame, 0, offset_y) + if self.moduleSettings.rotateBar then + self:SetBarFramePoints(barFrame, offset_y, 0) + else + self:SetBarFramePoints(barFrame, 0, offset_y) + end else if self.moduleSettings.inverse == "INVERSE" then min_y = 0; @@ -1392,7 +1396,7 @@ end function IceBarElement.prototype:RotateHorizontal() self:RotateFrame(self.frame) - self:RotateFrame(self.barFrame) + --self:RotateFrame(self.barFrame) for i=1, #self.Markers do self.Markers[i]:Hide() end @@ -1427,7 +1431,7 @@ function IceBarElement.prototype:RotateFrame(frame) frame.anim = grp end - local anchorPoint + local anchorPoint = "LEFT" if self.moduleSettings.inverse == "INVERSE" then anchorPoint = "TOPLEFT" elseif self.moduleSettings.inverse == "EXPAND" then diff --git a/modules/CastBar.lua b/modules/CastBar.lua index 1051110..ff8d844 100644 --- a/modules/CastBar.lua +++ b/modules/CastBar.lua @@ -34,7 +34,7 @@ function CastBar.prototype:GetDefaultSettings() settings["hideAnimationSettings"] = true settings["usesDogTagStrings"] = false settings["rangeColor"] = true - settings["shouldHideBarRotation"] = true + settings["shouldHideBarRotation"] = false settings["bAllowExpand"] = false return settings @@ -294,13 +294,7 @@ function CastBar.prototype:GetOptions() return opts end - function CastBar.prototype:Enable(core) - if self.moduleSettings.rotateBar then - self.moduleSettings.rotateBar = false - self:ResetRotation() - end - CastBar.super.prototype.Enable(self, core) self:RegisterEvent("UNIT_ENTERED_VEHICLE", "EnteringVehicle")