Skip to content
This repository was archived by the owner on Jan 21, 2024. It is now read-only.

Commit 821601b

Browse files
committed
fixed #384, blizzard changed their MoveMicroButtons() funciton
1 parent d934b33 commit 821601b

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

Objects/MENUBTN.lua

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -110,19 +110,17 @@ end
110110
---this overwrites the default MoveMicroButtons and basically just extends it to reposition all the other buttons as well, not just the 1st and 6th.
111111
---This is necessary for petbattles, otherwise there's no menubar
112112
function MENUBTN.ModifiedMoveMicroButtons(anchor, anchorTo, relAnchor, x, y, isStacked)
113-
114113
blizzMenuButtons[1]:ClearAllPoints();
115-
blizzMenuButtons[1]:SetPoint(anchor, anchorTo, relAnchor, x-5, y+4);
114+
blizzMenuButtons[1]:SetPoint(anchor, anchorTo, relAnchor, x-3, y-1);
116115

117116
for i=2,#blizzMenuButtons do
118117
blizzMenuButtons[i]:ClearAllPoints();
119-
blizzMenuButtons[i]:SetPoint("BOTTOMLEFT", blizzMenuButtons[i-1], "BOTTOMRIGHT", -2,0)
120-
if isStacked and i == 6 then
121-
blizzMenuButtons[6]:ClearAllPoints();
122-
blizzMenuButtons[6]:SetPoint("TOPLEFT", blizzMenuButtons[1], "BOTTOMLEFT", 0,2)
118+
blizzMenuButtons[i]:SetPoint("BOTTOMLEFT", blizzMenuButtons[i-1], "BOTTOMRIGHT", -1,0)
119+
if isStacked and i == 7 then
120+
blizzMenuButtons[7]:ClearAllPoints();
121+
blizzMenuButtons[7]:SetPoint("TOPLEFT", blizzMenuButtons[1], "BOTTOMLEFT", 0,2)
123122
end
124123
end
125124

126-
MainMenuMicroButton_RepositionAlerts();
127125
UpdateMicroButtons();
128126
end

0 commit comments

Comments
 (0)