How do I have a floating text in the tooltip?

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

jack1104
Just popping in
Just popping in
Posts: 11
Joined: Fri Nov 04, 2011 13:24

How do I have a floating text in the tooltip?

Postby jack1104 » Fri Nov 11, 2011 13:41

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

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

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

Postby CrazyEddie » Thu Nov 17, 2011 08:27

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.


Return to “Help”

Who is online

Users browsing this forum: No registered users and 18 guests