Macro to hide action bars

UI and Macro
What is a script that I can put into a macro that will allow me to hide and show(not necessarily in the same script), action bars of the default UI. I do not want to download an addon such as bartender or dominos. I just want a plain and simple script. Thanks
/run if not TgA then CreateFrame("Button","TgA",nil,"SecureHandlerClickTemplate"):SetFrameRef("MmB",MainMenuBar) TgA:SetAttribute("_onclick",[[local f=self:GetFrameRef("MmB") if f:IsVisible() then f:Hide() else f:Show() end]]) end
/click TgA

You need to hit it once before combat at the start of a session. (the setup which runs only once can't be run during combat) After that the macro will toggle MainMenuBar in or out of combat.

Join the Conversation

Return to Forum