Changeset 6048 for code/branches/menu/src/libraries/core/GUIManager.cc
- Timestamp:
- Nov 12, 2009, 11:32:41 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/menu/src/libraries/core/GUIManager.cc
r6036 r6048 108 108 , resourceProvider_(0) 109 109 , camera_(NULL) 110 , bShowIngameGUI_(false) 110 111 { 111 112 using namespace CEGUI; … … 251 252 } 252 253 } 254 255 void GUIManager::toggleIngameGUI() 256 { 257 if ( this->bShowIngameGUI_==false ) 258 { 259 GUIManager::showGUI("InGameMenu"); 260 this->bShowIngameGUI_ = true; 261 } 262 else 263 { 264 GUIManager::hideGUI("InGameMenu"); 265 this->bShowIngameGUI_ = false; 266 } 267 } 253 268 254 void GUIManager::setToggleMode(const bool& mode) 255 { 256 this->bToggleMode_ = mode; 257 this->executeCode("setToggleMode(" + multi_cast<std::string>(mode) + ")"); 269 void GUIManager::keyESC() 270 { 271 if( this->showingGUIs_.size() == 0 ) 272 this->showGUI("InGameMenu"); 273 else 274 this->executeCode("keyESC()"); 258 275 } 259 276
Note: See TracChangeset
for help on using the changeset viewer.