View Single Post
10/05/17, 01:00 PM   #13
Letho
AddOn Author - Click to view addons
Join Date: Apr 2016
Posts: 238
Originally Posted by Dolgubon View Post
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.
  Reply With Quote