small options tweak

This commit is contained in:
Hendrik Leppkes
2007-12-12 15:03:31 +00:00
parent d56c2cc4fc
commit e4392c23d8
2 changed files with 23 additions and 8 deletions
+14 -6
View File
@@ -175,12 +175,20 @@ function BT4ActionBars:SetupOptions()
self.disabledoptions = {
enabled = {
type = "toggle",
name = "Enabled",
desc = "Enable/Disable the bar.",
set = function(info, v) if v then BT4ActionBars:EnableBar(info[2]) end end,
get = function() return false end,
general = {
type = "group",
name = "General Settings",
cmdInline = true,
order = 1,
args = {
enabled = {
type = "toggle",
name = "Enabled",
desc = "Enable/Disable the bar.",
set = function(info, v) if v then BT4ActionBars:EnableBar(info[2]) end end,
get = function() return false end,
}
}
}
}
end
+9 -2
View File
@@ -31,11 +31,18 @@ function Bartender4:SetupOptions()
general = {
order = 10,
type = "group",
cmdInline = true,
--cmdInline = true,
name = "General Settings",
get = getFunc,
set = setFunc,
args = {},
args = {
--[[ blue = {
type = "toggle",
name = "Test",
get = function() end,
set = function() end,
} ]]
},
},
lock = {
dialogHidden = true,