Changeset 2887 for code/branches/gui/src/orxonox/gamestates
- Timestamp:
- Apr 2, 2009, 5:03:16 PM (16 years ago)
- Location:
- code/branches/gui/src/orxonox/gamestates
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/gui/src/orxonox/gamestates/GSLevel.cc
r2875 r2887 133 133 InputManager::getInstance().setKeyDetectorCallback(std::string("keybind ") + keyDetectorCallbackCode_); 134 134 135 // InGame GUI test136 GUIManager::getInstance().showGUI("inGameTest");137 138 135 // level is loaded: we can start capturing the input 139 136 InputManager::getInstance().requestEnterState("game"); … … 143 140 void GSLevel::showIngameGUI(bool show) 144 141 { 145 COUT(0) << "*** Call works with \"" << (show ? "true" : "false") << "\" as param" << std::endl;146 142 if (show) 147 143 { 148 144 GUIManager::getInstancePtr()->showGUI("inGameTest"); 145 GUIManager::getInstancePtr()->executeCode("showCursor()"); 149 146 InputManager::getInstance().requestEnterState("guiMouseOnly"); 150 147 } 151 148 else 152 149 { 153 GUIManager::getInstancePtr()->executeCode("hideGUI(inGameTest)"); 150 GUIManager::getInstancePtr()->executeCode("hideGUI(\"inGameTest\")"); 151 GUIManager::getInstancePtr()->executeCode("hideCursor()"); 154 152 InputManager::getInstance().requestLeaveState("guiMouseOnly"); 155 153 } -
code/branches/gui/src/orxonox/gamestates/GSMainMenu.cc
r2869 r2887 86 86 InputManager::getInstance().requestDestroyState("mainMenu"); 87 87 88 /* 88 89 if (this->ccStartGame_) 89 90 { … … 91 92 this->ccStartGame_ = 0; 92 93 } 94 */ 93 95 } 94 96
Note: See TracChangeset
for help on using the changeset viewer.