Fixed a bug with disabled bars

This commit is contained in:
iceroth
2006-07-21 18:08:50 +00:00
parent 0106530c98
commit 30d82c07fe
3 changed files with 21 additions and 24 deletions

View File

@ -48,35 +48,31 @@ function IceBarElement.prototype:GetOptions()
opts["side"] =
{
type = 'group',
name = 'side',
type = 'text',
name = 'Side',
desc = 'Side of the HUD where the bar appears',
args = {
left = {
type = 'execute',
name = 'left',
desc = "Left side",
func = function()
self.moduleSettings.side = IceCore.Side.Left
self:Redraw()
get = function()
if (self.moduleSettings.side == IceCore.Side.Right) then
return "Right"
else
return "Left"
end
},
right = {
type = 'execute',
name = 'right',
desc = "Right side",
func = function()
end,
set = function(value)
if (value == "Right") then
self.moduleSettings.side = IceCore.Side.Right
self:Redraw()
else
self.moduleSettings.side = IceCore.Side.Left
end
}
},
self:Redraw()
end,
validate = { "Left", "Right" },
order = 30
}
opts["offset"] =
{
type = 'range',
name = 'offset',
name = 'Offset',
desc = 'Offset of the bar',
min = -1,
max = 10,

View File

@ -51,6 +51,7 @@ function IceElement.prototype:Create(parent)
self.parent = parent
self:CreateFrame()
self.frame:Hide()
end

View File

@ -3,7 +3,7 @@
## Name: IceHUD
## Title: IceHUD |cff7fff7f -Ace2-|r
## Notes: Another HUD mod
## Version: 0.2 ($Revision$)
## Version: 0.2.1 ($Revision$)
## SavedVariables: IceCoreDB
## X-Category: UnitFrame
## X-Date: $Date$