I initialise CEGUI in my main application class
Code: Select all
CEGUI::OgreRenderer::bootstrapSystem();
CEGUI::SchemeManager::getSingleton().create("TaharezLook.scheme");
CEGUI::System::getSingleton().setDefaultMouseCursor("TaharezLook", "MouseArrow");
This is also where i init the overlay.
later i initialise the window gui sheet in a playstate class like so:
Code: Select all
mCEGUIWinMgr = &CEGUI::WindowManager::getSingleton();
CEGUI::Window* sheet = mCEGUIWinMgr->createWindow("DefaultGUISheet", "GameLayout");
CEGUI::System::getSingletonPtr()->setGUISheet(sheet);
CEGUI::Window* guiLayout = mCEGUIWinMgr->loadWindowLayout("GameLayout.layout");
sheet->addChildWindow(guiLayout);
and when i show the overlay, cegui renders on top of everything which i don't want to.
i've tried the zorder moveback but that didnt work. any ideas?