Changeset 6743 for code/branches/gamestates2/src
- Timestamp:
- Apr 16, 2010, 1:07:57 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/gamestates2/src/orxonox/gamestates/GSMainMenu.cc
r6741 r6743 40 40 #include "Scene.h" 41 41 #include "sound/AmbientSound.h" 42 // HACK 43 #include "core/input/InputManager.h" 44 #include "core/input/InputState.h" 42 45 43 46 namespace orxonox … … 49 52 { 50 53 RegisterRootObject(GSMainMenu); 54 55 InputManager::getInstance().createInputState("MainMenuHackery")->setKeyHandler(KeyBinderManager::getInstance().getDefaultAsHandler()); 51 56 52 57 // create an empty Scene … … 68 73 this->ambient_->destroy(); 69 74 75 InputManager::getInstance().destroyState("MainMenuHackery"); 76 70 77 this->scene_->getSceneManager()->destroyCamera(this->camera_); 71 78 this->scene_->destroy(); … … 79 86 GUIManager::getInstance().setBackgroundImage("MainMenuBackground", "Background"); 80 87 GraphicsManager::getInstance().setCamera(this->camera_); 88 89 InputManager::getInstance().enterState("MainMenuHackery"); 81 90 82 91 CommandExecutor::addConsoleCommandShortcut(createConsoleCommand(createFunctor(&GSMainMenu::startStandalone), "startGame")); … … 106 115 this->ambient_->stop(); 107 116 } 117 118 InputManager::getInstance().leaveState("MainMenuHackery"); 108 119 109 120 GUIManager::getInstance().setCamera(0);
Note: See TracChangeset
for help on using the changeset viewer.