Changeset 2790 for code/trunk/src/orxonox/gui
- Timestamp:
- Mar 16, 2009, 11:47:06 AM (16 years ago)
- Location:
- code/trunk/src/orxonox/gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/gui/GUIManager.cc
r2759 r2790 172 172 173 173 // load the background scene 174 loadScenes();174 //loadScenes(); 175 175 //CEGUI::KeyEventArgs e; 176 176 //e.codepoint … … 190 190 191 191 return true; 192 } 193 194 void GUIManager::loadScene(const std::string& name) 195 { 196 if (name.compare("IngameMenu") == 0) 197 { 198 try 199 { 200 /*this->scriptModule_ = new LuaScriptModule(); 201 this->luaState_ = this->scriptModule_->getLuaState(); 202 this->guiSystem_ = new System(this->guiRenderer_, this->resourceProvider_, 0, this->scriptModule_); 203 tolua_Core_open(this->scriptModule_->getLuaState()); 204 tolua_Orxonox_open(this->scriptModule_->getLuaState()); 205 */ 206 this->scriptModule_->executeScriptFile("ingameGUI.lua", "GUI"); 207 } 208 catch (CEGUI::Exception& ex) 209 { 210 #if CEGUI_VERSION_MINOR < 6 211 throw GeneralException(ex.getMessage().c_str()); 212 #else 213 throw GeneralException(ex.getMessage().c_str(), ex.getLine(), 214 ex.getFileName().c_str(), ex.getName().c_str()); 215 #endif 216 } 217 } 218 else 219 { 220 loadScenes(); 221 } 192 222 } 193 223 … … 241 271 try 242 272 { 273 COUT (0) << "************* sceneManager: " << sceneManager << std::endl; 243 274 if (!sceneManager) 244 275 { … … 287 318 return; 288 319 //this->viewport_->setCamera(0); 289 this->guiRenderer_->setTargetSceneManager(0); 320 // has no effect since you cannot assign 0 as SceneManager 321 //this->guiRenderer_->setTargetSceneManager(0); 290 322 this->state_ = Ready; 291 323 InputManager::getInstance().requestLeaveState("gui"); -
code/trunk/src/orxonox/gui/GUIManager.h
r2710 r2790 70 70 71 71 bool initialise(Ogre::RenderWindow* renderWindow); 72 void loadScene(const std::string& name); 72 73 void tick(float dt) 73 74 {
Note: See TracChangeset
for help on using the changeset viewer.