esc menu changes

This commit is contained in:
andrew6180
2024-04-09 15:55:28 -07:00
parent a3f0c62e62
commit 59e5160c69
7 changed files with 15 additions and 489 deletions
+3 -5
View File
@@ -141,12 +141,10 @@ local function UpdateCPU()
end
local function ToggleGameMenuFrame()
if GameMenuFrame:IsShown() then
PlaySound("igMainMenuQuit")
HideUIPanel(GameMenuFrame)
if EscapeMenu:IsShown() then
HideUIPanel(EscapeMenu)
else
PlaySound("igMainMenuOpen")
ShowUIPanel(GameMenuFrame)
ShowUIPanel(EscapeMenu)
end
end
+3 -5
View File
@@ -99,12 +99,10 @@ local menuList = {
text = MAINMENU_BUTTON,
notCheckable = 1,
func = function()
if GameMenuFrame:IsShown() then
PlaySound("igMainMenuQuit")
HideUIPanel(GameMenuFrame)
if EscapeMenu:IsShown() then
HideUIPanel(EscapeMenu)
else
PlaySound("igMainMenuOpen")
ShowUIPanel(GameMenuFrame)
ShowUIPanel(EscapeMenu)
end
end
},
+6 -22
View File
@@ -11,30 +11,14 @@ S:AddCallback("Skin_Misc", function()
if not E.private.skins.blizzard.enable or not E.private.skins.blizzard.misc then return end
-- ESC/Menu Buttons
GameMenuFrame:StripTextures()
GameMenuFrame:CreateBackdrop("Transparent")
EscapeMenu:StripTextures()
EscapeMenu:CreateBackdrop("Transparent")
GameMenuFrameHeader:Point("TOP", 0, 7)
EscapeMenuHeader:Point("TOP", 0, 7)
local menuButtons = {
GameMenuButtonOptions,
GameMenuButtonSoundOptions,
GameMenuButtonUIOptions,
-- GameMenuButtonMacOptions,
GameMenuButtonKeybindings,
GameMenuButtonMacros,
-- GameMenuButtonRatings,
GameMenuButtonLogout,
GameMenuButtonQuit,
GameMenuButtonContinue,
ElvUI_MenuButton
}
for i = 1, #menuButtons do
local button = menuButtons[i]
if button then
S:HandleButton(menuButtons[i])
for _, section in ipairs(EscapeMenu.sections) do
for _, button in ipairs(section) do
S:HandleButton(button)
end
end