[SOLVED] No mouse reaction if more layouts attached to root

Forum for general chit-chat or off-topic discussion.

Moderators: CEGUI MVP, CEGUI Team

brzi
Just popping in
Just popping in
Posts: 5
Joined: Fri Jun 25, 2010 19:36

[SOLVED] No mouse reaction if more layouts attached to root

Postby brzi » Fri Jun 25, 2010 20:14

Hi everybody,
I've just started working on a project with heavy use of CEGUI (a real-time strategy game). First of all, I'd like to thanks for this great library. It's really very helpful. And now to my problem:
I have a root window created from code and tons of layouts created in editor. When I want to show a layout, I just attach it to the root window and detach it to hide it. This works fine, the layout shows up when attached and disappears when detached from the root window. But when I attach more layouts, only the last attached layout reacts on mouse (hover, click and everything) and the others don't. The others are visible, but totally inactive. PLEASE, HELP !!! It seams like a bug in CEGUI to me, but I hope that I just do something wrong. I have searched the forum for "events more layouts", but didn't find anything. HEEEEEEEEEEEEEEEEEEELP !!!!!!! :|
Last edited by brzi on Fri Jun 25, 2010 22:05, edited 1 time in total.

ianstangoe
Quite a regular
Quite a regular
Posts: 79
Joined: Wed Jan 09, 2008 11:06

Re: No on mouse reaction if more layouts attached to root window

Postby ianstangoe » Fri Jun 25, 2010 21:32

Not a bug, I'll bet all your layouts have a fullscreen parent window :wink:

This effectively blocks all mouse input to windows 'underneath'. You should resize your parent windows to tighly fit around your widgets and maybe redesign your layouts if required, or you could enable mousePassThrough on certain windows to allow interaction to widgets behind...

HTH

brzi
Just popping in
Just popping in
Posts: 5
Joined: Fri Jun 25, 2010 19:36

Re: No on mouse reaction if more layouts attached to root window

Postby brzi » Fri Jun 25, 2010 22:01

Great, it works!!! Calling setMousePassThroughEnabled(true) on the layout's root window has solved it (of course it's fullscreen:-). Thank you very much for your response!!!


Return to “Offtopic Discussion”

Who is online

Users browsing this forum: No registered users and 3 guests