mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
Fixed a bug with disabled bars
This commit is contained in:
@ -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,
|
||||||
|
@ -51,6 +51,7 @@ function IceElement.prototype:Create(parent)
|
|||||||
|
|
||||||
self.parent = parent
|
self.parent = parent
|
||||||
self:CreateFrame()
|
self:CreateFrame()
|
||||||
|
self.frame:Hide()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
@ -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$
|
||||||
|
Reference in New Issue
Block a user