Changeset 2887 for code/branches/gui
- Timestamp:
- Apr 2, 2009, 5:03:16 PM (16 years ago)
- Location:
- code/branches/gui/src/orxonox
- Files:
-
- 4 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 -
code/branches/gui/src/orxonox/gui/GUIManager.cc
r2875 r2887 250 250 /** 251 251 @brief 252 Debug function to give CEGUI the possibility to output on our console253 @param254 String to be displaed in CEGUI's name255 256 This function should be removed as it only provides a quick (and dirty) possibility to access the output on the console.257 CEGUI's output should be put into the cegui.log using the CEGUI Logger.258 */259 void GUIManager::testOutput(std::string& str)260 {261 COUT(0) << "*** CEGUI: " << str << std::endl;262 }263 264 /**265 @brief266 252 Displays specified GUI on screen 267 253 @param name -
code/branches/gui/src/orxonox/gui/GUIManager.h
r2875 r2887 89 89 void setCamera(Ogre::Camera* camera); 90 90 91 void testOutput(std::string& str); // tolua_export92 93 91 static GUIManager& getInstance() { assert(singletonRef_s); return *singletonRef_s; } // tolua_export 94 92 static GUIManager* getInstancePtr() { return singletonRef_s; }
Note: See TracChangeset
for help on using the changeset viewer.