Weird button behavior

For help with anything that CEGUI doesn't offer straight out-of-the-box, e.g.:
- Implementation of new features, such as new Core classes, widgets, WindowRenderers, etc. ...
- Modification of any existing features for specific purposes
- Integration of CEGUI in new engines or frameworks and writing of new plugins (Renderer, Parser, ...) or modules

Moderators: CEGUI MVP, CEGUI Team

User avatar
Emmeran
Quite a regular
Quite a regular
Posts: 46
Joined: Wed Jan 12, 2005 12:06
Location: Germany, near Nuremberg
Contact:

Weird button behavior

Postby Emmeran » Fri Dec 31, 2004 13:37

Hi there!
I've some real weird problem: I have some GUISheets with different contents: one with an ingame menu (including a quit button etc), one with some ingame buttons (build factory etc) and another one with a factory-menu (build unit, build harvester, cancel etc).

Started the game I click on >build factory< and build a factory on my terrain. Now, the >build factory< button is disabled - I don't know why. He's only disabled, if I build the factory - when I cancel building he's not disabled and btw. I cannot re-enable the button.
Then, when I make a doubleclick on the built factory, the factory-menu gets visible, but it's disabled, too. All buttons, listboxes etc - everything - is disabled, but not the ingame menu. When I press escape, the menu gets visible and I can use the quit button. But if I move the mouse while clicking (accidently) the buttons in this menu get disabled, too.

I propose the problem is the z-order, so the buttons get to background or something similar. But why?? I never give commands like disable in my code. I give no commands at all.

I hope u understood my problem.

Thx in advance,
Emmeran

update:
I hacked the lib and printed the name of the catched window when mouseButtonDown is fired, and after the first time I click on it, the GUISheet Messages comes to foreground and is picked every click.

User avatar
Emmeran
Quite a regular
Quite a regular
Posts: 46
Joined: Wed Jan 12, 2005 12:06
Location: Germany, near Nuremberg
Contact:

Weird button behavior

Postby Emmeran » Fri Dec 31, 2004 14:22

OK my problem is solved by disabling the messages-sheet which has to be always in the background. now it works.


Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: No registered users and 6 guests