Changeset 7649 for code/branches
- Timestamp:
- Nov 17, 2010, 3:56:50 PM (14 years ago)
- Location:
- code/branches/menu
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/menu/data/gui/scripts/SheetManager.lua
r7607 r7649 5 5 local activeMenuSheets = {size = 0, topSheetTuple = nil} 6 6 local menuSheetsRoot = guiMgr:getMenuRootWindow() 7 local bInGameConsoleClosed = false 7 8 orxonox.GUIManager:subscribeEventHelper(menuSheetsRoot, "KeyDown", "keyPressed") 8 9 … … 201 202 -- HUGE, very HUGE hacks! 202 203 204 -- If the InGameConsole is active, ignore the ESC command. 205 if bInGameConsoleClosed == true then 206 bInGameConsoleClosed = falses 207 return 208 end 209 203 210 -- Count the number of sheets that don't need input till the first that does. 204 211 local counter = noInputSheetCounter() … … 235 242 end 236 243 244 function inGameConsoleClosed() 245 bInGameConsoleClosed = not bInGameConsoleClosed; 246 end 247 237 248 ---------------------- 238 249 --- Initialisation --- -
code/branches/menu/src/orxonox/overlays/InGameConsole.cc
r7401 r7649 49 49 #include "core/ConfigValueIncludes.h" 50 50 #include "core/command/ConsoleCommand.h" 51 #include "core/GUIManager.h" 51 52 #include "core/input/InputManager.h" 52 53 #include "core/input/InputState.h" 53 54 #include "core/input/InputBuffer.h" 55 #include "core/LuaState.h" 54 56 55 57 namespace orxonox … … 495 497 } 496 498 else 497 this->inputWindowStart_ = 0;499 this->inputWindowStart_ = 0; 498 500 this->displayedText_ = output; 499 501 this->consoleOverlayTextAreas_[index]->setCaption(multi_cast<Ogre::DisplayString>(output)); … … 532 534 { 533 535 this->bActive_ = false; 536 GUIManager::getInstance().getLuaState()->doString("inGameConsoleClosed()"); // Notify the SheetManager in lua, that the console has been closed. 534 537 InputManager::getInstance().leaveState("console"); 535 538 this->shell_->unregisterListener(this); … … 608 611 /*static*/ void InGameConsole::closeConsole() 609 612 { 613 GUIManager::getInstance().getLuaState()->doString("inGameConsoleClosed()"); // Notify the SheetManager in lua, that the console has been closed, but not by ESC. 610 614 InGameConsole::getInstance().deactivate(); 611 615 } 616 612 617 }
Note: See TracChangeset
for help on using the changeset viewer.