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