Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 16, 2010, 1:49:16 PM (15 years ago)
Author:
rgrieder
Message:

Linked every GUI sheet to exactly one InputState.
Also added util/TriBool that has states {true, false, Dontcare}.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/gamestate/data/gui/scripts/InitialiseGUI.lua

    r6417 r6537  
     1winMgr   = CEGUI.WindowManager:getSingleton()
     2guiMgr   = orxonox.GUIManager:getInstance()
     3inputMgr = orxonox.InputManager:getInstance()
     4
    15local schemeMgr = CEGUI.SchemeManager:getSingleton()
    2 winMgr = CEGUI.WindowManager:getSingleton()
    3 local logger = CEGUI.Logger:getSingleton()
    4 local system = CEGUI.System:getSingleton()
    5 local cursor = CEGUI.MouseCursor:getSingleton()
     6local system    = CEGUI.System:getSingleton()
     7local cursor    = CEGUI.MouseCursor:getSingleton()
    68
    79schemeMgr:loadScheme("TaharezLookSkin.scheme")
     
    8789    else
    8890        if nrOfActiveSheets == 0 then
    89             orxonox.InputManager:getInstance():enterState("guiMouseOnly")
     91            --orxonox.InputManager:getInstance():enterState("guiMouseOnly")
    9092            orxonox.HumanController:pauseControl()
    9193        end
    9294    end
     95    orxonox.InputManager:getInstance():enterState(currentGUI.inputState)
     96
    9397    nrOfActiveSheets = nrOfActiveSheets + 1
    9498    table.insert(activeSheets, filename)
     
    161165    bHidePrevious[filename] = nil
    162166    if nrOfActiveSheets == 0 then
    163         orxonox.InputManager:getInstance():leaveState("guiMouseOnly")
     167        --orxonox.InputManager:getInstance():leaveState("guiMouseOnly")
    164168        orxonox.HumanController:resumeControl()
    165169        hideCursor()
    166170    end
     171    orxonox.InputManager:getInstance():leaveState(currentGUI.inputState)
    167172end
    168173
Note: See TracChangeset for help on using the changeset viewer.