Tooltips not working (Taharez)

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

blablub
Not too shy to talk
Not too shy to talk
Posts: 28
Joined: Tue Mar 01, 2011 11:56

Tooltips not working (Taharez)

Postby blablub » Wed Mar 02, 2011 10:33

Sorry for the many questions. But I'm really new to this and googling doesn't show up good results.

I wanted to test the Tooltips in an unmodified Taharez look. I have StaticText with a <Property Name="Tooltip" Value="Hooray" />. If I hover the staticText I should get the tooltip, right? But nothing happens. Do I have to enable tooltips at some other point? All the tutorials only tell me to add a Property with name "Tooltip".

User avatar
Kulik
CEGUI Team
Posts: 1382
Joined: Mon Jul 26, 2010 18:47
Location: Czech Republic
Contact:

Re: Tooltips not working (Taharez)

Postby Kulik » Wed Mar 02, 2011 10:37

Do you call System::injectTimePulse anywhere in your code?

blablub
Not too shy to talk
Not too shy to talk
Posts: 28
Joined: Tue Mar 01, 2011 11:56

Re: Tooltips not working (Taharez)

Postby blablub » Wed Mar 02, 2011 12:02

I'm only the GUI manager on XML level. ;) But doing a quick search in the sourcecode: No, it's never called.

User avatar
Kulik
CEGUI Team
Posts: 1382
Joined: Mon Jul 26, 2010 18:47
Location: Czech Republic
Contact:

Re: Tooltips not working (Taharez)

Postby Kulik » Wed Mar 02, 2011 12:59

System::injectTimePulse tells CEGUI how many seconds have passed. If you never call it, tooltips, animations and maybe other stuff won't work. Tell your coders to insert it and call it every frame with a delta.

blablub
Not too shy to talk
Not too shy to talk
Posts: 28
Joined: Tue Mar 01, 2011 11:56

Re: Tooltips not working (Taharez)

Postby blablub » Fri Mar 04, 2011 12:29

OK, we have now the injectTimePulse in the ogre FrameListener (like it's in your wiki), but the tooltips still don't show up. For testing I tried to put a tooltip on a StaticText if this is important.

User avatar
Kulik
CEGUI Team
Posts: 1382
Joined: Mon Jul 26, 2010 18:47
Location: Czech Republic
Contact:

Re: Tooltips not working (Taharez)

Postby Kulik » Fri Mar 04, 2011 12:45

I think you need to set the default tooltip or something...

See this article for more info. It's for 0.6 but most of it should apply to 0.7 http://www.cegui.org.uk/wiki/index.php/Tooltips

blablub
Not too shy to talk
Not too shy to talk
Posts: 28
Joined: Tue Mar 01, 2011 11:56

Re: Tooltips not working (Taharez)

Postby blablub » Fri Mar 04, 2011 13:14

Thank you. Now it's working. You guys give great support. :D


Return to “Help”

Who is online

Users browsing this forum: No registered users and 18 guests