All pastes #162275 Raw Edit

Stuff

public text v1 · immutable
·published 2006-09-06 10:30 UTC
rendered paste body
// 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;	 
}