Problems with Tooltips and injectTimePulse

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

User avatar
Ludi
Quite a regular
Quite a regular
Posts: 59
Joined: Sun Aug 13, 2006 12:33

Problems with Tooltips and injectTimePulse

Postby Ludi » Mon Aug 14, 2006 20:35

Hi,

I've ported the Sample_Demo8 to my own application, the sample with lua support. Well, it was really easy, so no problem with that.

So, I set up everything like in the demo and in the sample framework. But there's one problem: The tooltips don't show up.

I inject every frame the time delay in seconds, but nothing happens. So I tried to inject them by hand (a value of 0.01). It works without problems for the sample demo, but not in my appliciation. Using a value of 1.0, the tooltips show up immediately.

This is really crazy and I don't know, what could be wrong :(

Here's the code for every frame:

Code: Select all

   CEGUI::System& guiSystem = CEGUI::System::getSingleton();

   float delay = TheTimeMgr->GetFloatDeltaTime() * 0.001f;
   const Point m = TheInterfaceMgr->GetMousePosition();
   guiSystem.injectMousePosition(m.x, m.y);

   guiSystem.injectTimePulse(delay);
   guiSystem.renderGUI();

User avatar
scriptkid
Home away from home
Home away from home
Posts: 1178
Joined: Wed Jan 12, 2005 12:06
Location: The Hague, The Netherlands
Contact:

Postby scriptkid » Tue Aug 15, 2006 07:04

Hi Ludi,

maybe TheTimeMgr->GetFloatDeltaTime() * 0.001f gets really small? Or does this exact code work for the C++ demo?

Cause this line: "So I tried to inject them by hand (a value of 0.01)" makes me think you should call "guiSystem.injectTimePulse(0.01f)" for your test?

User avatar
Ludi
Quite a regular
Quite a regular
Posts: 59
Joined: Sun Aug 13, 2006 12:33

Postby Ludi » Tue Aug 15, 2006 08:36

scriptkid wrote:Cause this line: "So I tried to inject them by hand (a value of 0.01)" makes me think you should call "guiSystem.injectTimePulse(0.01f)" for your test?


I have done this, but it didn't work for me. But it worked without problems with the sample_demo8.


Return to “Help”

Who is online

Users browsing this forum: No registered users and 21 guests