Changeset 2801 for code/branches/gui/src/orxonox/gamestates/GSStandalone.cc
- Timestamp:
- Mar 19, 2009, 10:58:43 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/gui/src/orxonox/gamestates/GSStandalone.cc
r2800 r2801 35 35 #include "core/ConsoleCommand.h" 36 36 #include "gui/GUIManager.h" 37 #include "GraphicsManager.h" 37 38 38 39 namespace orxonox … … 60 61 Core::setIsStandalone(true); 61 62 62 GSLevel::enter( this->getParent()->getViewport());63 GSLevel::enter(); 63 64 64 guiManager_ = getParent()->getGUIManager();65 guiManager_ = GUIManager::getInstancePtr(); 65 66 // not sure if necessary 66 67 // guiManager_->loadScene("IngameMenu"); … … 78 79 if (guiShowing_s) 79 80 { 80 guiManager_->showGUI("IngameMenu", this->getParent()->getViewport()->getCamera()->getSceneManager()); 81 Ogre::Viewport* viewport = GraphicsManager::getInstance().getViewport(); 82 guiManager_->showGUI("IngameMenu", viewport->getCamera()->getSceneManager()); 81 83 } 82 84 else
Note: See TracChangeset
for help on using the changeset viewer.