Alternative to setGUISheet?
Posted: Sun May 21, 2006 19:55
So far, I've managed to get a few main UI screens working. I can click buttons and go forward and backward between them.
I now want to be able to show modal message boxes over the top, for instance an 'Are you sure? Yes/No' window. I'd like the main menu screen to still be visible in the background, but be unresponsive.
I'm switching main menu screens by calling:
If I use this for my message box, the message box appears, but I lose the menu behind.
I tried to remove my calls to setGUISheet, in the hope that I could just manually control the visibility and enabled state as I switch around. However I can't find another way to make my windows appear other than setGUISheet.
I've already tried these tempting functions:
Fwiw, I'm using the layout editor to build my sheets. currently I just call:
and then setGUISheet.
If someone could point me in the right direction, that would be great.
Thanks,
Duck
I now want to be able to show modal message boxes over the top, for instance an 'Are you sure? Yes/No' window. I'd like the main menu screen to still be visible in the background, but be unresponsive.
I'm switching main menu screens by calling:
Code: Select all
CEGUI::System::getSingleton().setGUISheet( sheet );If I use this for my message box, the message box appears, but I lose the menu behind.
I tried to remove my calls to setGUISheet, in the hope that I could just manually control the visibility and enabled state as I switch around. However I can't find another way to make my windows appear other than setGUISheet.
I've already tried these tempting functions:
Code: Select all
sheet->activate( );
sheet->show( );Fwiw, I'm using the layout editor to build my sheets. currently I just call:
Code: Select all
CEGUI::WindowManager::getSingleton().loadWindowLayout( filename )and then setGUISheet.
If someone could point me in the right direction, that would be great.
Thanks,
Duck