Stuff
public text v1 · immutable// opens setup window on button press
bool HandleButtonSetUp(const CEGUI::EventArgs& e)
{
using namespace CEGUI;
// Retrieve the window manager
WindowManager& winMgr = WindowManager::getSingleton();
// Load a layout
Window* setup = winMgr.loadWindowLayout("art/Setup/SetUp.layout");
if (winMgr.isWindowPresent("background_wnd"))
{
Window* background = winMgr.getWindow("background_wnd"));
background->addChildWindow(setup);
}
return true;
}