EscapeMenu changes
This commit is contained in:
@@ -335,8 +335,8 @@ MovAny = {
|
|||||||
MAOptions = {
|
MAOptions = {
|
||||||
{"MAOptions", "ARTWORK","BORDER"},
|
{"MAOptions", "ARTWORK","BORDER"},
|
||||||
},
|
},
|
||||||
GameMenuFrame = {
|
EscapeMenu = {
|
||||||
{"GameMenuFrame", "BACKGROUND","ARTWORK","BORDER"},
|
{"EscapeMenu", "BACKGROUND","ARTWORK","BORDER"},
|
||||||
},
|
},
|
||||||
MainMenuBar = {
|
MainMenuBar = {
|
||||||
{"MainMenuBarArtFrame", "BACKGROUND","ARTWORK"},
|
{"MainMenuBarArtFrame", "BACKGROUND","ARTWORK"},
|
||||||
@@ -422,7 +422,6 @@ MovAny = {
|
|||||||
lAllowedMAFrames = {
|
lAllowedMAFrames = {
|
||||||
MAOptions = "MAOptions",
|
MAOptions = "MAOptions",
|
||||||
MANudger = "MANudger",
|
MANudger = "MANudger",
|
||||||
GameMenuButtonMoveAnything = "GameMenuButtonMoveAnything",
|
|
||||||
},
|
},
|
||||||
DefaultFrameList = {
|
DefaultFrameList = {
|
||||||
{"", "Achievements & Quests"},
|
{"", "Achievements & Quests"},
|
||||||
@@ -538,7 +537,7 @@ MovAny = {
|
|||||||
{"FocusFrameToTDebuff1", "Target of Focus Debuffs"},
|
{"FocusFrameToTDebuff1", "Target of Focus Debuffs"},
|
||||||
|
|
||||||
{"", "Game Menu"},
|
{"", "Game Menu"},
|
||||||
{"GameMenuFrame", "Game Menu"},
|
{"EscapeMenu", "Game Menu"},
|
||||||
{"VideoOptionsFrame", "Video Options"},
|
{"VideoOptionsFrame", "Video Options"},
|
||||||
{"AudioOptionsFrame", "Sound & Voice Options"},
|
{"AudioOptionsFrame", "Sound & Voice Options"},
|
||||||
{"InterfaceOptionsFrame", "Interface Options"},
|
{"InterfaceOptionsFrame", "Interface Options"},
|
||||||
@@ -639,7 +638,6 @@ MovAny = {
|
|||||||
{"", "MoveAnything"},
|
{"", "MoveAnything"},
|
||||||
{"MAOptions", "MoveAnything Window"},
|
{"MAOptions", "MoveAnything Window"},
|
||||||
{"MANudger", "MoveAnything Nudger"},
|
{"MANudger", "MoveAnything Nudger"},
|
||||||
{"GameMenuButtonMoveAnything", "MoveAnything Game Menu Button"},
|
|
||||||
|
|
||||||
{"", "Party"},
|
{"", "Party"},
|
||||||
{"PartyMemberFrame1", "Party Member 1"},
|
{"PartyMemberFrame1", "Party Member 1"},
|
||||||
@@ -705,7 +703,7 @@ MovAny = {
|
|||||||
opt = MovAny:GetFrameOptions(fn)
|
opt = MovAny:GetFrameOptions(fn)
|
||||||
if opt and opt.UIPanelWindows then
|
if opt and opt.UIPanelWindows then
|
||||||
f = _G[fn]
|
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 f.IsShown and f:IsShown() then
|
||||||
if InCombatLockdown() and MovAny:IsProtected(f) then
|
if InCombatLockdown() and MovAny:IsProtected(f) then
|
||||||
local closure = function(f)
|
local closure = function(f)
|
||||||
@@ -4179,7 +4177,7 @@ function MovAny:ApplyPosition(f, opt)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if UIPanelWindows[fn] and f ~= GameMenuFrame then
|
if UIPanelWindows[fn] and f ~= EscapeMenu then
|
||||||
local left = GetUIPanel("left")
|
local left = GetUIPanel("left")
|
||||||
local center = GetUIPanel("center")
|
local center = GetUIPanel("center")
|
||||||
|
|
||||||
@@ -5634,3 +5632,12 @@ function MovAny:SerializeAtom(o)
|
|||||||
return o
|
return o
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
EscapeMenu:AddButton("MoveAnything!", EscapeMenuSection.AddOns, function()
|
||||||
|
if IsShiftKeyDown() and IsControlKeyDown() and IsAltKeyDown() then
|
||||||
|
ReloadUI()
|
||||||
|
else
|
||||||
|
ShowUIPanel(MAOptions)
|
||||||
|
return true
|
||||||
|
end
|
||||||
|
end)
|
||||||
@@ -1,22 +1,5 @@
|
|||||||
<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/
|
<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/
|
||||||
..\FrameXML\UI.xsd">
|
..\FrameXML\UI.xsd">
|
||||||
<Button name="GameMenuButtonMoveAnything" parent="GameMenuFrame" inherits="GameMenuButtonTemplate" text="MoveAnything!">
|
|
||||||
<Scripts>
|
|
||||||
<OnLoad>
|
|
||||||
self:ClearAllPoints()
|
|
||||||
self:SetPoint("TOP", GameMenuButtonContinue, "BOTTOM", 0, -25)
|
|
||||||
</OnLoad>
|
|
||||||
<OnClick>
|
|
||||||
if IsShiftKeyDown() and IsControlKeyDown() and IsAltKeyDown() then
|
|
||||||
ReloadUI()
|
|
||||||
else
|
|
||||||
ShowUIPanel(MAOptions)
|
|
||||||
HideUIPanel(GameMenuFrame)
|
|
||||||
end
|
|
||||||
</OnClick>
|
|
||||||
</Scripts>
|
|
||||||
</Button>
|
|
||||||
|
|
||||||
<Button name="MAResizeButton" virtual="true">
|
<Button name="MAResizeButton" virtual="true">
|
||||||
<Size>
|
<Size>
|
||||||
<AbsDimension x="8" y="8"/>
|
<AbsDimension x="8" y="8"/>
|
||||||
|
|||||||
Reference in New Issue
Block a user