- removed check for shouldHideBarRotation, since all bars can now be rotated.

This commit is contained in:
rokiyo
2010-11-03 20:25:18 +00:00
parent 99e8b651d3
commit 74d759bc99
3 changed files with 21 additions and 25 deletions

View File

@ -487,29 +487,27 @@ do
values = IceHUD.validBarList, values = IceHUD.validBarList,
order = 30.08 order = 30.08
} }
if not self.moduleSettings.shouldHideBarRotation then opts["barRotate"] =
opts["barRotate"] = {
{ type = 'toggle',
type = 'toggle', name = L["Rotate 90 degrees"],
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."],
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)
get = function(info) return self.moduleSettings.rotateBar
return self.moduleSettings.rotateBar end,
end, set = function(info, v)
set = function(info, v) self.moduleSettings.rotateBar = v
self.moduleSettings.rotateBar = v if v then
if v then self:RotateHorizontal()
self:RotateHorizontal() else
else self:ResetRotation()
self:ResetRotation() end
end end,
end, disabled = function()
disabled = function() return not self:IsEnabled()
return not self:IsEnabled() end,
end, order = 30.09
order = 30.09 }
}
end
opts["textSettings"] = opts["textSettings"] =
{ {
type = 'group', type = 'group',

View File

@ -34,7 +34,6 @@ function CastBar.prototype:GetDefaultSettings()
settings["hideAnimationSettings"] = true settings["hideAnimationSettings"] = true
settings["usesDogTagStrings"] = false settings["usesDogTagStrings"] = false
settings["rangeColor"] = true settings["rangeColor"] = true
settings["shouldHideBarRotation"] = false
settings["bAllowExpand"] = false settings["bAllowExpand"] = false
return settings return settings

View File

@ -45,7 +45,6 @@ function EclipseBar.prototype:GetDefaultSettings()
color = {r=1, g=0, b=0, a=1}, color = {r=1, g=0, b=0, a=1},
height = 6, height = 6,
} }
defaults.shouldHideBarRotation = false
defaults.bAllowExpand = false defaults.bAllowExpand = false
return defaults return defaults