Hiding a frame when no target selected? how?

#0 - Nov. 26, 2006, 10:29 p.m.
Blizzard Post
sup again peeps...

workin on a UI ive been messing with... its got all custom art and such but there in lies the problem...
the targets background imagery is on a frame of its own... i guess im just looking for the event and or maybe a function to use that will allow me to hide the frame when there is no target selected... any thoughts?

ive been looking at "PLAYER_TARGET_CHANGED" event in conjunction with the "UnitExists("target")" function... but i just cant seem to get it to work... any help would be greatly apreciated... currently the UI is looking like this: http://mgsalab.rutgers.edu/~janiga/elephantitisUI.jpg

allright guys plz get back to me! thnx much!
#16 - Nov. 27, 2006, 12:07 a.m.
Blizzard Post
FYI, if you're using XML it's even easier. Just add this to you frame's definition:
parent="TargetFrame"