Poster: Hazelwood at 10/15/2005 1:39:16 PM PDT Subject: Tooltips driving me nuts...is this expected? |
| |
I have two hidden tooltips declared exactly the same way (with different names):
<GameTooltip name="NameOfTooltip" inherits="GameTooltipTemplate" parent="UIParent" hidden="true"/>
When I call SetHyperlink("item:16846:0:0:0") on one of them followed by NumLines(), the result is 0. When I call SetHyperlink("item:16846:0:0:0") on the other of them followed by NumLines(), the result is 9, which only gets me to the end of the stats list but before any bonuses, class requirements, etc. When I call SetHyperlink("item:16846:0:0:0") on GameTooltip, I see a lot more lines than 9, so it includes all the bonuses, class requirements, etc.
Has anyone else experienced something similar? Is it not possible to read beyond the stats in a hidden tooltip? (Are the class requirements and such populated only after the tooltip is shown?) If so, does anyone know a work-around to get the class requirements out of the tooltip? Or some way to get the class requirements of an item link without using a tooltip?
A less important question: any idea why one of my tooltips doesn't respond to any Set*** functions at all? I'll just assume this second problem is probably some typo in my code (even though I've combed through it for 3 hours) and I'll work on it if I can get my working tooltip to work past 9 lines. Just throwing this half of the question up in case it rings a bell for anyone as to what I might be doing wrong.
|
| | http://forums.worldofwarcraft.com/thread.aspx?fn=wow-interface-customization&t=244944&p=#post244944 |
| |
Poster: slouken at 10/15/2005 7:49:48 PM PDT Subject: Re: Tooltips driving me nuts...is this expect |
| |
Really, the name of the tooltip should have no effect on the contents... really. :)
|
| | http://forums.worldofwarcraft.com/thread.aspx?fn=wow-interface-customization&t=244944&p=#post245196 |
Poster: slouken at 10/19/2005 5:01:52 PM PDT Subject: Re: Tooltips driving me nuts...is this expect |
| |
Q u o t e: In game when I type "/script TooltipTest_Go(TooltipTestHiddenTooltip);" the output is 0.
When I type "/script TooltipTest_Go(TooltipTestFooTooltip);" the output is 9.
When I type "/script TooltipTest_Go(GameTooltip);" the output is 22.
Very strange, when I tried it on a 1.9 prerelease build, the output was:
0
22
22
I know there was a bugfix for tooltip size calculation made recently, maybe that took care of the issue...
|
| | http://forums.worldofwarcraft.com/thread.aspx?fn=wow-interface-customization&t=244944&p=#post248178 |