Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8485 for code/trunk/data/gui


Ignore:
Timestamp:
May 14, 2011, 5:44:09 PM (14 years ago)
Author:
dafrick
Message:

Now it should work in all cases.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/data/gui/scripts/SheetManager.lua

    r8484 r8485  
    216216function keyESC()
    217217    -- HUGE, very HUGE hacks!
    218 
    219     -- Count the number of sheets that don't need input till the first that does.
    220     local counter = noInputSheetIndex()
    221218   
    222219    -- If the InGameConsole is active, ignore the ESC command.
    223220    if bInGameConsoleClosed == true then
    224221        bInGameConsoleClosed = false
    225         if counter > 0 then
     222        if activeMenuSheets[1].sheet.name == "MainMenu" then
    226223            return
    227224        end
    228225    end
     226
     227    -- Count the number of sheets that don't need input till the first that does.
     228    local counter = noInputSheetIndex()
    229229
    230230    -- If the first sheet that needs input is the MainMenu.
Note: See TracChangeset for help on using the changeset viewer.