add Test & Hide Button
This commit is contained in:
parent
7108598603
commit
dd75f267f4
23
Options.lua
23
Options.lua
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user