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"] = opts["side"] =
{ {
type = 'group', type = 'text',
name = 'side', name = 'Side',
desc = 'Side of the HUD where the bar appears', desc = 'Side of the HUD where the bar appears',
args = { get = function()
left = { if (self.moduleSettings.side == IceCore.Side.Right) then
type = 'execute', return "Right"
name = 'left', else
desc = "Left side", return "Left"
func = function() end
self.moduleSettings.side = IceCore.Side.Left end,
self:Redraw() set = function(value)
end if (value == "Right") then
}, self.moduleSettings.side = IceCore.Side.Right
right = { else
type = 'execute', self.moduleSettings.side = IceCore.Side.Left
name = 'right', end
desc = "Right side", self:Redraw()
func = function() end,
self.moduleSettings.side = IceCore.Side.Right validate = { "Left", "Right" },
self:Redraw()
end
}
},
order = 30 order = 30
} }
opts["offset"] = opts["offset"] =
{ {
type = 'range', type = 'range',
name = 'offset', name = 'Offset',
desc = 'Offset of the bar', desc = 'Offset of the bar',
min = -1, min = -1,
max = 10, max = 10,

View File

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

View File

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