I've been through my code over and over, and I can't seem to find what is causing this. With my tooltip mod, TipTop, I add a line for Target and I am currently working on a line for Talents. But, since adding in the code for talents, I have been getting the target line (and sometimes the talents, too) added twice. The second target line appears when the tooltip updates with the talent info (from the talent ready event). The target line worked perfectly until adding the talent stuff.
Here's the kicker - my code is set up to only add the target line if it is not present already (and if a target exists, of course).
Here's my code:
http://wowuidev.pastey.net/95882 The new talent stuff I've added is towards the bottom, highlighted. It seems that only registering for INSPECT_TALENT_READY when sending a query and then unregistering it after adding info to the tooltip remedied multiple talent lines (unless I'm just getting lucky). But I'm still seeing this:
Unit Name
level
etc.
Target: blah
Talents: blah
Target: blah
|
I haven't tried adding the talents line from the get-go and then parsing the tooltip to update it yet - was hoping there was something I was overlooking before I resorted to that. Though that would get rid of the tooltip resize when receiving the talent build... Anyway, just hoping someone smarter than me could give it a look over.
Thanks!