- hid the "rotate 90 degrees" option on cast bars and eclipse bars since it just doesn't work very well and looks bad. users keep reporting that these are broken when rotating and since i don't have a good fix, i'm disabling the feature for now

This commit is contained in:
Parnic
2010-10-25 04:20:22 +00:00
parent 673fb524ba
commit 1a00681356
3 changed files with 14 additions and 2 deletions

View File

@ -453,7 +453,7 @@ end
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',
@ -475,7 +475,7 @@ end
end, end,
order = 30.09 order = 30.09
} }
end
opts["textSettings"] = opts["textSettings"] =
{ {
type = 'group', type = 'group',

View File

@ -34,6 +34,7 @@ function CastBar.prototype:GetDefaultSettings()
settings["hideAnimationSettings"] = true settings["hideAnimationSettings"] = true
settings["usesDogTagStrings"] = false settings["usesDogTagStrings"] = false
settings["rangeColor"] = true settings["rangeColor"] = true
settings["shouldHideBarRotation"] = true
return settings return settings
end end
@ -294,6 +295,11 @@ end
function CastBar.prototype:Enable(core) function CastBar.prototype:Enable(core)
if self.moduleSettings.rotateBar then
self.moduleSettings.rotateBar = false
self:ResetRotation()
end
CastBar.super.prototype.Enable(self, core) CastBar.super.prototype.Enable(self, core)
self:RegisterEvent("UNIT_ENTERED_VEHICLE", "EnteringVehicle") self:RegisterEvent("UNIT_ENTERED_VEHICLE", "EnteringVehicle")

View File

@ -45,11 +45,17 @@ 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 = true
return defaults return defaults
end end
function EclipseBar.prototype:Enable(core) function EclipseBar.prototype:Enable(core)
if self.moduleSettings.rotateBar then
self.moduleSettings.rotateBar = false
self:ResetRotation()
end
EclipseBar.super.prototype.Enable(self, core) EclipseBar.super.prototype.Enable(self, core)
self:RegisterEvent("UPDATE_SHAPESHIFT_FORM", "UpdateShown") self:RegisterEvent("UPDATE_SHAPESHIFT_FORM", "UpdateShown")