From 74d759bc99d0867f086c7a3ec76b5988745a5302 Mon Sep 17 00:00:00 2001 From: rokiyo Date: Wed, 3 Nov 2010 20:25:18 +0000 Subject: [PATCH] - removed check for shouldHideBarRotation, since all bars can now be rotated. --- IceBarElement.lua | 44 ++++++++++++++++++++---------------------- modules/CastBar.lua | 1 - modules/EclipseBar.lua | 1 - 3 files changed, 21 insertions(+), 25 deletions(-) diff --git a/IceBarElement.lua b/IceBarElement.lua index 5f6a317..f7a94cb 100644 --- a/IceBarElement.lua +++ b/IceBarElement.lua @@ -487,29 +487,27 @@ do values = IceHUD.validBarList, order = 30.08 } - if not self.moduleSettings.shouldHideBarRotation then - opts["barRotate"] = - { - type = 'toggle', - name = L["Rotate 90 degrees"], - desc = L["This will rotate this module by 90 degrees to give a horizontal orientation.\n\nWARNING: This feature is brand new and a bit rough around the edges. You will need to greatly adjust the vertical and horizontal offset of this bar plus move the text around in order for it to look correct.\n\nAnd I mean greatly."], - get = function(info) - return self.moduleSettings.rotateBar - end, - set = function(info, v) - self.moduleSettings.rotateBar = v - if v then - self:RotateHorizontal() - else - self:ResetRotation() - end - end, - disabled = function() - return not self:IsEnabled() - end, - order = 30.09 - } - end + opts["barRotate"] = + { + type = 'toggle', + name = L["Rotate 90 degrees"], + desc = L["This will rotate this module by 90 degrees to give a horizontal orientation.\n\nWARNING: This feature is brand new and a bit rough around the edges. You will need to greatly adjust the vertical and horizontal offset of this bar plus move the text around in order for it to look correct.\n\nAnd I mean greatly."], + get = function(info) + return self.moduleSettings.rotateBar + end, + set = function(info, v) + self.moduleSettings.rotateBar = v + if v then + self:RotateHorizontal() + else + self:ResetRotation() + end + end, + disabled = function() + return not self:IsEnabled() + end, + order = 30.09 + } opts["textSettings"] = { type = 'group', diff --git a/modules/CastBar.lua b/modules/CastBar.lua index ff8d844..519928e 100644 --- a/modules/CastBar.lua +++ b/modules/CastBar.lua @@ -34,7 +34,6 @@ function CastBar.prototype:GetDefaultSettings() settings["hideAnimationSettings"] = true settings["usesDogTagStrings"] = false settings["rangeColor"] = true - settings["shouldHideBarRotation"] = false settings["bAllowExpand"] = false return settings diff --git a/modules/EclipseBar.lua b/modules/EclipseBar.lua index 47a623a..f14b823 100644 --- a/modules/EclipseBar.lua +++ b/modules/EclipseBar.lua @@ -45,7 +45,6 @@ function EclipseBar.prototype:GetDefaultSettings() color = {r=1, g=0, b=0, a=1}, height = 6, } - defaults.shouldHideBarRotation = false defaults.bAllowExpand = false return defaults