Originally Posted by Dolgubon
The thing is though, the addon's display is never set accordingly. IsUnitInCombat is a base game function. It's not going to change the visibility of any UI elements from an addon. Do you see a call of testpluginIndicator:SetHidden in that initialized code? Without that the visibility won't be changed properly.
|
Oh right, now I get what he is doing. The easiest way is indeed setting the xml element to hidden and only display it when combat state changes to incombat.