Hi, I note that there seems to be some code in CEGUI to support tooltips.
I've tried placing a tooltip window within a button window with various options in the layout file. Search results haven't turned up anything definitive on this matter.
I note that spannerman's Ogre particle editor implements the tooltips through static text items, but I'd prefer not to reinvent or copy and paste the wheel if this functionality exists in CEGUI
Can anyone point me toward some XML or C++ which uses the CEGUITooltip element?
Thanks for any light you can shed on this one!
Status of tooltips?
Moderators: CEGUI MVP, CEGUI Team
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
Re: Status of tooltips?
Hi,
Tooltip usage is somewhat different to all other windows. Basic usage is very simple though, so without getting into anything too advanced, what you do is this:
First, use set the default tooltip type in the system singleton:
Now set the tooltip text on your windows:
There are options to affect timing and the fade effect, and also more advanced possibilities for per-window custom tooltip windows, but the above is what most people will be using.
Note that you need to ensure that you're injecting time pulses via System::injectTimePulse, since the tooltips rely on this for timing purposes.
HTH
CE.
Tooltip usage is somewhat different to all other windows. Basic usage is very simple though, so without getting into anything too advanced, what you do is this:
First, use set the default tooltip type in the system singleton:
Code: Select all
System::getSingleton().setTooltip("TaharezLook/Tooltip");
Now set the tooltip text on your windows:
Code: Select all
myButton->setTooltipText("Format the hard disk!");
There are options to affect timing and the fade effect, and also more advanced possibilities for per-window custom tooltip windows, but the above is what most people will be using.
Note that you need to ensure that you're injecting time pulses via System::injectTimePulse, since the tooltips rely on this for timing purposes.
HTH
CE.
Useful Links: Forum Guidelines | Documentation | Tutorials | HOWTO | Videos | Donate to CEGUI | CEGUI Twitter
- CombatWombat
- Just popping in
- Posts: 4
- Joined: Wed Jan 12, 2005 12:06
Re: Status of tooltips?
Awesome, thanks - just what I was after
Return to “Modifications / Integrations / Customisations”
Who is online
Users browsing this forum: No registered users and 4 guests