From e4392c23d8b3bee8b3b2fd8d9252a90a77fb9ce1 Mon Sep 17 00:00:00 2001 From: Hendrik Leppkes Date: Wed, 12 Dec 2007 15:03:31 +0000 Subject: [PATCH] small options tweak --- ActionBars.lua | 20 ++++++++++++++------ Options.lua | 11 +++++++++-- 2 files changed, 23 insertions(+), 8 deletions(-) diff --git a/ActionBars.lua b/ActionBars.lua index 85c1b8e..48821c3 100644 --- a/ActionBars.lua +++ b/ActionBars.lua @@ -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 diff --git a/Options.lua b/Options.lua index 239a011..e9ad885 100644 --- a/Options.lua +++ b/Options.lua @@ -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,