From 2c58b41c340eb1630ff069210b288d01e0934f1f Mon Sep 17 00:00:00 2001 From: shagu Date: Sun, 25 Sep 2022 13:44:31 +0200 Subject: [PATCH] thirdparty: disable breaking MacroExtender functions --- modules/thirdparty-vanilla.lua | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/modules/thirdparty-vanilla.lua b/modules/thirdparty-vanilla.lua index 1a680022..89481897 100644 --- a/modules/thirdparty-vanilla.lua +++ b/modules/thirdparty-vanilla.lua @@ -1089,7 +1089,28 @@ pfUI:RegisterModule("thirdparty-vanilla", "vanilla", function() HookAddonOrVariable("MoveAnything", function() SkinButton(GameMenuButtonMoveAnything) end) + HookAddonOrVariable("MCP", function() SkinButton(GameMenuButtonAddOns) end) + + HookAddonOrVariable("MacroExtender", function() + -- Macro Extender moves the character dialog from frame-stata "dialog" + -- to "low" and by that moves the frame below backgrounds, quest-trackers, + -- and what not... it does this because the buttons it attempts to add, are + -- added to the wrong parent frames. (This also causes them to stay visible on + -- other pages of the paperdoll frame aswell) + -- + -- Using its own global variables and settings to disable that "feature", + -- because it only attempts to add rarity borders which pfUI already does. + + -- make sure strata won't get touched again + PaperDollHook = function() return end + + -- restore original frame strata + PaperDollFrame:SetFrameStrata("DIALOG") + + -- disable macro extenders setting + MacroExtender_Options.Inventory = nil + end) end)