EscapeMenu changes

This commit is contained in:
andrew6180
2024-04-30 02:17:37 -07:00
parent 7ca137d0ee
commit 38f8bb85aa
2 changed files with 15 additions and 25 deletions
+15 -8
View File
@@ -335,8 +335,8 @@ MovAny = {
MAOptions = {
{"MAOptions", "ARTWORK","BORDER"},
},
GameMenuFrame = {
{"GameMenuFrame", "BACKGROUND","ARTWORK","BORDER"},
EscapeMenu = {
{"EscapeMenu", "BACKGROUND","ARTWORK","BORDER"},
},
MainMenuBar = {
{"MainMenuBarArtFrame", "BACKGROUND","ARTWORK"},
@@ -422,7 +422,6 @@ MovAny = {
lAllowedMAFrames = {
MAOptions = "MAOptions",
MANudger = "MANudger",
GameMenuButtonMoveAnything = "GameMenuButtonMoveAnything",
},
DefaultFrameList = {
{"", "Achievements & Quests"},
@@ -538,7 +537,7 @@ MovAny = {
{"FocusFrameToTDebuff1", "Target of Focus Debuffs"},
{"", "Game Menu"},
{"GameMenuFrame", "Game Menu"},
{"EscapeMenu", "Game Menu"},
{"VideoOptionsFrame", "Video Options"},
{"AudioOptionsFrame", "Sound & Voice Options"},
{"InterfaceOptionsFrame", "Interface Options"},
@@ -639,7 +638,6 @@ MovAny = {
{"", "MoveAnything"},
{"MAOptions", "MoveAnything Window"},
{"MANudger", "MoveAnything Nudger"},
{"GameMenuButtonMoveAnything", "MoveAnything Game Menu Button"},
{"", "Party"},
{"PartyMemberFrame1", "Party Member 1"},
@@ -705,7 +703,7 @@ MovAny = {
opt = MovAny:GetFrameOptions(fn)
if opt and opt.UIPanelWindows then
f = _G[fn]
if f ~= nil and f ~= GameMenuFrame then
if f ~= nil and f ~= EscapeMenu then
if f.IsShown and f:IsShown() then
if InCombatLockdown() and MovAny:IsProtected(f) then
local closure = function(f)
@@ -4179,7 +4177,7 @@ function MovAny:ApplyPosition(f, opt)
end
end
if UIPanelWindows[fn] and f ~= GameMenuFrame then
if UIPanelWindows[fn] and f ~= EscapeMenu then
local left = GetUIPanel("left")
local center = GetUIPanel("center")
@@ -5633,4 +5631,13 @@ function MovAny:SerializeAtom(o)
else
return o
end
end
end
EscapeMenu:AddButton("MoveAnything!", EscapeMenuSection.AddOns, function()
if IsShiftKeyDown() and IsControlKeyDown() and IsAltKeyDown() then
ReloadUI()
else
ShowUIPanel(MAOptions)
return true
end
end)