I'm trying to make an addon work that hides the bar for stances, auras, stealth, etc. which is shown above the actionbar down to the left.
I've created a directory inside WoW\Interface\AddOns named StanceBarRemover. Within this folder I've created a .toc file and a .xml file.
The .toc file named StanceBarRemover.toc has the following written in it:
## Interface: 10900
## Title: StanceBarRemover
## Version: 1.0
## Notes: Removes the Stancebar above the bottomleft actionbar
## Author: Wirt
StanceBarRemover.xml
The .xml file named StanceBarRemover.xml has the following written in it:
<Ui><Script>ShapeshiftBarFrame:Hide()</Script></Ui>
It doesn't work. However, when I replace ShapeshiftBarFrame:Hide() with for example MinimapZoomIn:Hide(); MinimapZoomOut:Hide() the minimap zoom buttons are hidden.
Also, when I type in chat or make a macro with /script ShapeshiftBarFrame:Hide() it hides the bar without trouble. But I'd like to have this automatized with the help of a simple addon instead.
Any ideas on why the script within the addon won't hide the stancebar?