Search found 13 matches

by osbios
Fri Nov 08, 2013 18:10
Forum: Bug Reports, Suggestions, Feature Requests
Topic: [Solved/noBug][BUG]EventMouseLeavesArea/Surface wrong...
Replies: 0
Views: 9369

[Solved/noBug][BUG]EventMouseLeavesArea/Surface wrong...

[EDIT]My mistake, overwrote onSize even wrong.[/edit] If a window class gets resized then the events EventMouseLeavesArea and EventMouseLeavesSurface still operate on the old size of the window until the window gets moved around. ---- Version: 0.8.2 (Build: Oct 9 2013 GNU/Linux g++ 4.6.3 64 bit) ---...
by osbios
Wed Oct 16, 2013 14:22
Forum: Modifications / Integrations / Customisations
Topic: [SOLVED] eventUpdated function not called
Replies: 3
Views: 9637

[SOLVED]Re: eventUpdated function not called

Solved: viewtopic.php?f=10&t=6215

Porting from a pre-0.8 cegui version I didn't suspect injectTimePulse to be the culprit.
by osbios
Mon Oct 14, 2013 00:07
Forum: Modifications / Integrations / Customisations
Topic: [SOLVED] eventUpdated function not called
Replies: 3
Views: 9637

Re: eventUpdated function not called

SDL_GetTicks returns milliseconds. SDL_Event event; float runtime = 0.0f; float runtimeElapsed; while (1) { float oldRuntime = runtime; runtime = static_cast<float>(SDL_GetTicks()) / 1000.0f; runtimeElapsed = runtime - oldRuntime; if (SDL_PollEvent(&event)) { handleEvent(event); ceguiProcessEven...
by osbios
Fri Oct 11, 2013 18:18
Forum: Modifications / Integrations / Customisations
Topic: [SOLVED] eventUpdated function not called
Replies: 3
Views: 9637

[SOLVED] eventUpdated function not called

I have a simple frameWindow directly on the root window. Now I try to get a function called each time injectTimePulse runs. But my eventUpdated function never gets called. CEGUI::FrameWindow *editorWindow; editorWindow = static_cast<CEGUI::FrameWindow*>(wmgr.createWindow("Vanilla/FrameWindow&qu...
by osbios
Tue Oct 08, 2013 17:11
Forum: Bug Reports, Suggestions, Feature Requests
Topic: [BUG]autoRenderingSurface inside another makes pos random
Replies: 0
Views: 9587

[BUG]autoRenderingSurface inside another makes pos random

I worked on my "direct drawing canvas" where I use a surface from cegui for direct opengl drawing. And found some odd behavior. When I use a "autoRenderingSurface" (setUsingAutoRenderingSurface(true)) inside another autoRenderingSurface, the child position visually jumps around i...
by osbios
Mon Sep 02, 2013 14:31
Forum: Help
Topic: Getting CEGUI::FrameWindow class Inheritance working
Replies: 1
Views: 2130

Getting CEGUI::FrameWindow class Inheritance working

---- Version: 0.8.2 (Build: Aug 30 2013 GNU/Linux g++ 4.6.3 64 bit) ---- ---- Renderer module is: CEGUI::OpenGL3Renderer - Official OpenGL 3.2 core based renderer module. TextureTarget support enabled via FBO OGL 3.2 core implementation. ---- ---- XML Parser module is: CEGUI::ExpatParser - Official...
by osbios
Tue Jan 29, 2013 22:25
Forum: Help
Topic: [SOLVED]How to close a Menubar if capture is lost?
Replies: 3
Views: 2803

Re: How to close a Menubar if capture is lost?

Solved it: menubar->subscribeEvent(CEGUI::Window::EventDeactivated, CEGUI::Event::Subscriber(&CeguiIcaf::inputCaptureLost, this)); bool CeguiIcaf::inputCaptureLost(const CEGUI::EventArgs& e) { const ActivationEventArgs &f = dynamic_cast<const ActivationEventArgs&>(e); CEGUI::Menubar ...
by osbios
Tue Jan 29, 2013 20:34
Forum: Help
Topic: [SOLVED]How to close a Menubar if capture is lost?
Replies: 3
Views: 2803

Re: How to close a Menubar if capture is lost?

Yes, I mean the Menubar. Like this: http://s20.postimage.org/740yb5p55/Bildschirmfoto_29_01_2013_21_10_08.jpg I would like any open Menu to close if I click in the grey array. What would be the most elegant way to call closePopupMenu() on every PopupMenu except manually do it for each single one?
by osbios
Tue Jan 29, 2013 19:05
Forum: Help
Topic: [SOLVED]How to close a Menubar if capture is lost?
Replies: 3
Views: 2803

[SOLVED]How to close a Menubar if capture is lost?

I like my Menubar to close if you click on anythink outside the menu. Like it is the default with many other GUIs. I have the event function running when this happens, now I only need to find a function to close the CEGUI::Menubar. Is there a function/way to do this? 27/01/2013 20:04:21 (Std) ---- V...
by osbios
Sun Jan 27, 2013 22:39
Forum: Help
Topic: PopupMenu dosn't show
Replies: 3
Views: 2675

Re: PopupMenu dosn't show

Found it after looking over the forum for some code with a popup menu in it.

I did this:
Menubar->popupMenu->MenuItem

But it actually works like this:
Menubar->MenuItem->popupMenu->MenuItem
by osbios
Sun Jan 27, 2013 22:14
Forum: Help
Topic: PopupMenu dosn't show
Replies: 3
Views: 2675

Re: PopupMenu dosn't show

I just suspectet a simple error in my code. Yes I inject time inpulses in the main loop. All time values are saved as seconds in a float type. Im using SFML/OpenGL. runtime = sfClock.GetElapsedTime(); runtimeElapsed = runtime - lastRuntime; lastRuntime = runtime; CEGUI::System::getSingleton().inject...
by osbios
Sun Jan 27, 2013 19:05
Forum: Help
Topic: PopupMenu dosn't show
Replies: 3
Views: 2675

PopupMenu dosn't show

I can't get the popup menu to work: //Menubar works fine... CEGUI::Menubar* menubar = static_cast<Menubar*>(wmgr.createWindow( "WindowsLook/Menubar", "menubar" )); menubar->setPosition( UVector2( UDim( 0.0f, 300 ), UDim( 0.0f, 0 ) ) ); menubar->setSize( UVector2( UDim( 1.0f, 0 ),...
by osbios
Thu Jul 21, 2011 20:45
Forum: Bug Reports, Suggestions, Feature Requests
Topic: findCEGUI.cmake
Replies: 7
Views: 17440

findCEGUI.cmake

I made myself a cmake find script for CEGUI 7.5. It is bassed on a simpler find script that didn't do all what I wanted it to do. How to use: Copy this in a file called findCEGUI.cmake And before you all copy findCEGUI.cmake in your cmake module directory here is a much more elegant way: Create a di...

Go to advanced search