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:
2 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
Note: See TracChangeset for help on using the changeset viewer.