add reload ui button
This commit is contained in:
parent
73b01c28d7
commit
b651eb39ce
14
Options.lua
14
Options.lua
@ -1,6 +1,7 @@
|
|||||||
local type, pairs, tinsert, tsort = type, pairs, table.insert, table.sort
|
local type, pairs, tinsert, tsort = type, pairs, table.insert, table.sort
|
||||||
local tostring, str_match, tonumber, string_format = tostring, string.match, tonumber, string.format
|
local tostring, str_match, tonumber, string_format = tostring, string.match, tonumber, string.format
|
||||||
local ceil, floor = ceil, floor
|
local ceil, floor = ceil, floor
|
||||||
|
local ReloadUI = ReloadUI
|
||||||
|
|
||||||
local InterfaceOptionsFrame_OpenToFrame = InterfaceOptionsFrame_OpenToFrame
|
local InterfaceOptionsFrame_OpenToFrame = InterfaceOptionsFrame_OpenToFrame
|
||||||
local GetSpellInfo = GetSpellInfo
|
local GetSpellInfo = GetSpellInfo
|
||||||
@ -232,12 +233,21 @@ function Gladdy:SetupOptions()
|
|||||||
Gladdy:HideFrame()
|
Gladdy:HideFrame()
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
reload = {
|
||||||
|
order = 3,
|
||||||
|
width = "0.7",
|
||||||
|
name = L["ReloadUI"],
|
||||||
|
type = "execute",
|
||||||
|
func = function()
|
||||||
|
ReloadUI()
|
||||||
|
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 = 3,
|
order = 4,
|
||||||
args = {
|
args = {
|
||||||
locked = {
|
locked = {
|
||||||
type = "toggle",
|
type = "toggle",
|
||||||
@ -718,7 +728,7 @@ function Gladdy:SetupOptions()
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
local order = 4
|
local order = 5
|
||||||
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