Hello! I am trying to make a simple macro that makes action bar 1 and 2 invisible by changing the alpha.
This is what i currently have:
/run MainMenuBar:SetAlpha(1-MainMenuBar:GetAlpha())
My issue is that it only Makes action bar 1 invisible and id like to make it so that action bar 2 is also invisible when i click it. I tried messing around with it and adding ActionBar2 but it wont work like that and i dont know the command for specific action bars.
Any help would be very much appreciated!
/fstack
and mouse over the bar to find it’s name, likely MultiBarBottomLeft
and duplicate the command.
/run MainMenuBar:SetAlpha(1-MainMenuBar:GetAlpha()) MultiBarBottomLeft:SetAlpha(1-MultiBarBottomLeft:GetAlpha())
1 Like
MultiBarBottomLeft was it! thank you. But now im running into an issue where it only activates one at a time. When i click it it will hide action bar 1 and then if i click it again it will show action bar one and hide action bar 2. Maybe if there is not a way to fix this I can run a macro that activates 2 macros independently.
Oh I see the problem. Didn’t update the reference for the alpha of the second bar so it was using MainMenuBar
to determine the alpha or both bars and was essentially toggling them inverted to one another.
/run MainMenuBar:SetAlpha(1-MainMenuBar:GetAlpha()) MultiBarBottomLeft:SetAlpha(1-MultiBarBottomLeft:GetAlpha())
1 Like
I switched the places of them and it is working now: /run MultiBarBottomLeft:SetAlpha(1-MainMenuBar:GetAlpha())
/run MainMenuBar:SetAlpha(1-MainMenuBar:GetAlpha()) and it is working as intended.
/run MainMenuBar:SetAlpha(1-MainMenuBar:GetAlpha()) MultiBarBottomLeft:SetAlpha(1-MultiBarBottomLeft:GetAlpha())
Works like a charm aswell!
Thank you so much again.