Changeset 6743
- Timestamp:
- Apr 16, 2010, 1:07:57 PM (15 years ago)
- Location:
- code/branches/gamestates2
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/gamestates2/data/gui/scripts/MenuSheet.lua
r6718 r6743 16 16 newSheet.bHidePrevious = handleDefArg(_bHidePrevious, true) 17 17 newSheet.tShowCursor = handleDefArg(_tShowCusor, TriBool.True) 18 newSheet.tUseKeyboard = handleDefArg(_tUseKeyboard, TriBool. True)18 newSheet.tUseKeyboard = handleDefArg(_tUseKeyboard, TriBool.Dontcare) 19 19 newSheet.bBlockJoyStick = handleDefArg(_bBlockJoyStick, false) 20 20 -
code/branches/gamestates2/data/gui/scripts/SheetManager.lua
r6737 r6743 181 181 orxonox.execute("exit") 182 182 elseif activeMenuSheets.size > 0 then 183 orxonox.execute("hide MenuSheet"..activeMenuSheets.topSheetTuple.sheet.name)183 orxonox.execute("hideGUI "..activeMenuSheets.topSheetTuple.sheet.name) 184 184 else 185 185 showMenuSheet("InGameMenu") -
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.