Persistently hiding MainMenuBar and StanceBar

I’ve been trying to hide MainMenuBar and StanceBar but sadly I havnt gotten it to work the way I’d like.

I’ve registered an event to hide them on LOADING_SCREEN_DISABLED, but that seems to be too early (since something loads after and shows them it seems). I also tried to make a hooksecurefunc to just call their respective Hide method each time their Show method is called, however that results in none of my action bars showing at all.

It seems like it should be pretty simple to put into an addon to just hide these two frames (since the standard UI won’t allow it), but I have been unable to get it to work.

It also seems that the StanceBar shows back up after having Hide called on it whenever I switch stances, which I assume is because it somehow triggers a Show or something similiar.

Any help would be greatly appreciated!

Bartender can do this really easily using the visibility tab on the bars.

I would like to not install any external dependency for this extremely minor feature

In that case, I’d recommend you post the full code you’re currently using that isn’t working properly. That way the people well versed in Lua/Blizz API can audit it and make recommendations.

This WA should do the stance bar.
https://wago.io/PFv34Ha-b

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.