View Single Post
07-06-17, 03:44 AM   #3
Layback_
An Onyxian Warder
Join Date: Feb 2016
Posts: 358
Hi p3lim,

Originally Posted by p3lim View Post
First off, it's good practice to use HookScript instead of SetScript when adding script handlers to a foreign object, to avoid overriding the original script handler.
Thank you for correcting me

I definitely didn't consider such cases..

Originally Posted by p3lim View Post
As for the issue, try HookScript "OnAttributeChanged" and check for the amount of players in the given group.
The visibility that you're trying to check for is always going to be true while you're in a raid, according to your visibility conditions "custom [group:raid] show; hide".
You are right, again.

I forgot that I assigned "custom [group:raid] show; hide" for visibility which will always show each header frame while I'm in raid group as you said

Had a go with "OnAttributeChanged" script, but eeh... doesn't seem like it.

There were some attributes like "statehidden", "childN", "_ignore" and "frameref-childN" where I thought "childN" attribute would be the one that I should be dealing with, but it wasn't..

Thus, I'm guessing that the best option would be changing visibility condition, although I'm still unsure tho...

(Maybe I should have a look at macro conditionals )
  Reply With Quote