Page 1 of 1

How do I have a floating text in the tooltip?

Posted: Fri Nov 11, 2011 13:41
by jack1104
hi there,

I'm trying to make an icon buff and it has count down time.

When my cursor hover the icon, it's tooltip show out the remaining time.
It is a changing text at every second in the tooltip.

I think that I can have two or more text component in .looknfeel, just like <ImagerySection name="title"> and <ImagerySection name="text">.
And I add an component is <ImagerySection name="countDown">

I only change 'countDown' text component in my own update function, is it possible? How do I finish it?

thanks before any help

Re: How do I have a floating text in the tooltip?

Posted: Thu Nov 17, 2011 08:27
by CrazyEddie
Yes, what you have here is basically correct, you then add the 'countDown' ImagerySection to whatever StateDefinition(s) you want that section to appear for.

BUT...

Autosizing of the tooltip may need some reworking in order to accommodate the additional content, and since you have another thread which is more related to that topic, I will continue this there...

CE.