Skip to content

Commit

Permalink
fix: hide main menu micro buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
ffainy committed Jan 26, 2023
1 parent a1a5cd4 commit 04238e1
Showing 1 changed file with 24 additions and 8 deletions.
32 changes: 24 additions & 8 deletions src/modules/actionbar/bars/remove-blizz-stuff.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,19 @@ local framesToHide = {
_G.OverrideActionBar,
_G.PossessActionBar,
_G.PetActionBar,
_G.MicroButtonAndBagsBar,
_G.MainMenuMicroButton,
_G.StoreMicroButton,
_G.CollectionsMicroButton,
_G.EJMicroButton,
_G.LFDMicroButton,
_G.GuildMicroButton,
_G.QuestLogMicroButton,
_G.AchievementMicroButton,
_G.TalentMicroButton,
_G.SpellbookMicroButton,
_G.CharacterMicroButton,
_G.BagsBar,
_G.MicroButtonAndBagsBar
}

local framesToDisable = {
Expand All @@ -49,7 +60,19 @@ local framesToDisable = {
_G.OverrideActionBarHealthBar,
_G.OverrideActionBarPowerBar,
_G.OverrideActionBarPitchFrame,
_G.MainMenuMicroButton,
_G.StoreMicroButton,
_G.CollectionsMicroButton,
_G.EJMicroButton,
_G.LFDMicroButton,
_G.GuildMicroButton,
_G.QuestLogMicroButton,
_G.AchievementMicroButton,
_G.TalentMicroButton,
_G.SpellbookMicroButton,
_G.CharacterMicroButton,
_G.BagsBar,
_G.MicroButtonAndBagsBar
}

local function disableAllScripts(frame)
Expand Down Expand Up @@ -125,11 +148,4 @@ function ACTIONBAR:RemoveBlizzStuff()

-- Update token panel
F:RegisterEvent('CURRENCY_DISPLAY_UPDATE', updateTokenVisibility)

-- Remove main menu micro buttons
if _G.MainMenuMicroButton.MainMenuBarPerformanceBar then
F.HideObject(_G.MainMenuMicroButton.MainMenuBarPerformanceBar)
end
F.HideObject(_G.HelpOpenWebTicketButton)
_G.MainMenuMicroButton:SetScript('OnUpdate', nil)
end

0 comments on commit 04238e1

Please sign in to comment.