Verified Commit faaa6a25 authored by Repooc's avatar Repooc
Browse files

stupid cleanup

parent 9e3b3e19
local SLE, T, E, L, V, P, G = unpack(select(2, ...))
local lib = LibStub("LibElv-GameMenu-1.0")
local _G = _G
local HideUIPanel = HideUIPanel
local ReloadUI = ReloadUI
local lib = LibStub('LibElv-GameMenu-1.0')
function SLE:BuildGameMenu()
if not E.global.sle.advanced.gameMenu.enable then return end
local buttons = {
[1] = {
["name"] = "GameMenu_SLEConfig",
["text"] = "|cff9482c9Shadow & Light|r",
["func"] = function() if InCombatLockdown() then return end; E:ToggleOptionsUI(); E.Libs["AceConfigDialog"]:SelectGroup("ElvUI", "sle"); HideUIPanel(_G["GameMenuFrame"]) end,
['name'] = 'GameMenu_SLEConfig',
['text'] = '|cff9482c9Shadow & Light|r',
['func'] = function() if InCombatLockdown() then return end; E:ToggleOptionsUI(); E.Libs['AceConfigDialog']:SelectGroup('ElvUI', 'sle'); HideUIPanel(_G.GameMenuFrame) end,
},
}
if E.global.sle.advanced.gameMenu.reload then
tinsert(buttons, {["name"] = "GameMenuReloadUI", ["text"] = L["Reload UI"], ["func"] = function() ReloadUI() end})
tinsert(buttons, {['name'] = 'GameMenuReloadUI', ['text'] = L["Reload UI"], ['func'] = function() ReloadUI() end})
end
for i = 1, #buttons do
lib:AddMenuButton(buttons[i])
......@@ -22,4 +24,4 @@ function SLE:BuildGameMenu()
lib:UpdateHolder()
end
\ No newline at end of file
end
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment