Changeset 8015 for code/branches
- Timestamp:
- Mar 3, 2011, 4:33:13 PM (14 years ago)
- Location:
- code/branches/tutorial
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/tutorial
- Property svn:mergeinfo changed
/code/branches/usability (added) merged: 8013
- Property svn:mergeinfo changed
-
code/branches/tutorial/data/gui/scripts/SheetManager.lua
r7985 r8015 5 5 local activeMenuSheets = {size = 0, topSheetTuple = nil} 6 6 local menuSheetsRoot = guiMgr:getMenuRootWindow() 7 local bInGameConsole Open= false7 local bInGameConsoleClosed = false 8 8 local mainMenuLoaded = false 9 9 orxonox.GUIManager:subscribeEventHelper(menuSheetsRoot, "KeyDown", "keyPressed") … … 221 221 222 222 -- If the InGameConsole is active, ignore the ESC command. 223 if bInGameConsoleOpen then 223 if bInGameConsoleClosed == true then 224 bInGameConsoleClosed = false 224 225 return 225 226 end … … 278 279 end 279 280 280 function inGameConsoleOpened()281 bInGameConsoleOpen = true282 end283 284 281 function inGameConsoleClosed() 285 bInGameConsole Open = false282 bInGameConsoleClosed = not bInGameConsoleClosed; 286 283 end 287 284 -
code/branches/tutorial/src/orxonox/overlays/InGameConsole.cc
r7985 r8015 513 513 this->bActive_ = true; 514 514 InputManager::getInstance().enterState("console"); 515 GUIManager::getInstance().getLuaState()->doString("inGameConsoleOpened()"); // Notify the SheetManager in lua, that the console has been closed.516 515 this->shell_->registerListener(this); 517 516 … … 612 611 /*static*/ void InGameConsole::closeConsole() 613 612 { 613 GUIManager::getInstance().getLuaState()->doString("inGameConsoleClosed()"); // Notify the SheetManager in lua, that the console has been closed, but not by ESC. 614 614 InGameConsole::getInstance().deactivate(); 615 615 }
Note: See TracChangeset
for help on using the changeset viewer.