add Test & Hide Button

This commit is contained in:
Sumsebrum 2021-09-03 01:56:38 +02:00
parent 7108598603
commit dd75f267f4

View File

@ -213,12 +213,31 @@ function Gladdy:SetupOptions()
get = getOpt, get = getOpt,
set = setOpt, set = setOpt,
args = { args = {
test = {
order = 1,
width = "0.7",
name = L["Test"],
type = "execute",
func = function()
Gladdy:ToggleFrame(3)
end,
},
hide = {
order = 2,
width = "0.7",
name = L["Hide"],
type = "execute",
func = function()
Gladdy:Reset()
Gladdy:HideFrame()
end,
},
general = { general = {
type = "group", type = "group",
name = L["General"], name = L["General"],
desc = L["General settings"], desc = L["General settings"],
childGroups = "tab", childGroups = "tab",
order = 1, order = 3,
args = { args = {
locked = { locked = {
type = "toggle", type = "toggle",
@ -699,7 +718,7 @@ function Gladdy:SetupOptions()
}, },
} }
local order = 2 local order = 4
for k, v in pairsByKeys(self.modules) do for k, v in pairsByKeys(self.modules) do
self:SetupModule(k, v, order) self:SetupModule(k, v, order)
order = order + 1 order = order + 1