Changeset 7985 for code/branches/usability
- Timestamp:
- Feb 27, 2011, 8:09:59 AM (14 years ago)
- Location:
- code/branches/usability
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/usability/data/gui/scripts/SheetManager.lua
r7928 r7985 5 5 local activeMenuSheets = {size = 0, topSheetTuple = nil} 6 6 local menuSheetsRoot = guiMgr:getMenuRootWindow() 7 local bInGameConsole Closed= false7 local bInGameConsoleOpen = 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 bInGameConsoleClosed == true then 224 bInGameConsoleClosed = false 223 if bInGameConsoleOpen then 225 224 return 226 225 end … … 279 278 end 280 279 280 function inGameConsoleOpened() 281 bInGameConsoleOpen = true 282 end 283 281 284 function inGameConsoleClosed() 282 bInGameConsole Closed = not bInGameConsoleClosed;285 bInGameConsoleOpen = false 283 286 end 284 287 -
code/branches/usability/src/orxonox/overlays/InGameConsole.cc
r7689 r7985 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. 515 516 this->shell_->registerListener(this); 516 517 … … 611 612 /*static*/ void InGameConsole::closeConsole() 612 613 { 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.