Missions (Garrison/Covenant) button position gets overwritten by Blizzard in Shadowlands
0xjc opened this issue ยท 0 comments
The GarrisonLandingPageMinimapButton
button (called "Missions" button in the config; in SL this is the Covenant Sanctum button) in 9.0 gets delayed SetPoint calls by Blizzard and reverts to a hardcoded anchor. As a result it doesn't appear in the correct place.
Offending FrameXML code:
- https://github.com/Gethe/wow-ui-source/blob/52aec7cc87492cedd71b54cd022c95b51af2fa50/FrameXML/Minimap.lua#L662
- Hardcoded value: https://github.com/Gethe/wow-ui-source/blob/52aec7cc87492cedd71b54cd022c95b51af2fa50/FrameXML/Minimap.lua#L622
Workaround is to post-hook GarrisonLandingPageMinimapButton_UpdateIcon
to force it back:
hooksecurefunc("GarrisonLandingPageMinimapButton_UpdateIcon", function(self)
self:ClearAllPoints()
self:SetPoint(...)
end)