Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 3, 2011, 4:33:13 PM (14 years ago)
Author:
rgrieder
Message:

Fixed bug occurred during bugfix (new bug is worse) by merging r8013 of the usability branch.

Location:
code/branches/tutorial
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/tutorial

  • code/branches/tutorial/data/gui/scripts/SheetManager.lua

    r7985 r8015  
    55local activeMenuSheets = {size = 0, topSheetTuple = nil}
    66local menuSheetsRoot = guiMgr:getMenuRootWindow()
    7 local bInGameConsoleOpen = false
     7local bInGameConsoleClosed = false
    88local mainMenuLoaded = false
    99orxonox.GUIManager:subscribeEventHelper(menuSheetsRoot, "KeyDown", "keyPressed")
     
    221221
    222222    -- If the InGameConsole is active, ignore the ESC command.
    223     if bInGameConsoleOpen then
     223    if bInGameConsoleClosed == true then
     224        bInGameConsoleClosed = false
    224225        return
    225226    end
     
    278279end
    279280
    280 function inGameConsoleOpened()
    281     bInGameConsoleOpen = true
    282 end
    283 
    284281function inGameConsoleClosed()
    285     bInGameConsoleOpen = false
     282    bInGameConsoleClosed = not bInGameConsoleClosed;
    286283end
    287284
  • code/branches/tutorial/src/orxonox/overlays/InGameConsole.cc

    r7985 r8015  
    513513            this->bActive_ = true;
    514514            InputManager::getInstance().enterState("console");
    515             GUIManager::getInstance().getLuaState()->doString("inGameConsoleOpened()"); // Notify the SheetManager in lua, that the console has been closed.
    516515            this->shell_->registerListener(this);
    517516
     
    612611    /*static*/ void InGameConsole::closeConsole()
    613612    {
     613        GUIManager::getInstance().getLuaState()->doString("inGameConsoleClosed()");  // Notify the SheetManager in lua, that the console has been closed, but not by ESC.
    614614        InGameConsole::getInstance().deactivate();
    615615    }
Note: See TracChangeset for help on using the changeset viewer.