small options tweak
This commit is contained in:
+14
-6
@@ -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
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user