From 14928ae3cec83107fda07739753544ca3d9d6717 Mon Sep 17 00:00:00 2001 From: Hendrik Leppkes Date: Sun, 8 Dec 2024 17:16:19 +0100 Subject: [PATCH] Update Micro Menu vehicle re-anchoring for Cata Classic --- .luacheckrc | 2 +- MicroMenu.lua | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.luacheckrc b/.luacheckrc index 1f30fd2..3deabd2 100644 --- a/.luacheckrc +++ b/.luacheckrc @@ -127,7 +127,7 @@ read_globals = { "GameTooltip", "GuildMicroButton", "HelpMicroButton", - "LFDMicroButton", + "PVPMicroButton", "MainMenuBar", "MainMenuBarArtFrame", "MainMenuBarArtFrameBackground", diff --git a/MicroMenu.lua b/MicroMenu.lua index 3265beb..5a0c4ca 100644 --- a/MicroMenu.lua +++ b/MicroMenu.lua @@ -193,10 +193,12 @@ function MicroMenuMod:MicroMenuBarShow() end function MicroMenuMod:BlizzardBarShow() - -- Only reset button positions not set in MoveMicroButtons() - for i,v in pairs(self.bar.buttons) do - if v ~= CharacterMicroButton and v ~= LFDMicroButton then - v:ClearSetPoint(unpack(self.bar.anchors[i])) + if WoWClassicEra then + -- Only reset button positions not set in MoveMicroButtons() + for i,v in pairs(self.bar.buttons) do + if v ~= CharacterMicroButton and v ~= PVPMicroButton then + v:ClearSetPoint(unpack(self.bar.anchors[i])) + end end end end