Macro to hide action bars

88 Blood Elf Paladin
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
Reply Quote
100 Gnome Warrior
/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.
Reply Quote

Please report any Code of Conduct violations, including:

Threats of violence. We take these seriously and will alert the proper authorities.

Posts containing personal information about other players. This includes physical addresses, e-mail addresses, phone numbers, and inappropriate photos and/or videos.

Harassing or discriminatory language. This will not be tolerated.

Forums Code of Conduct

Report Post # written by

Explain (256 characters max)