Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 22, 2010, 2:47:10 PM (14 years ago)
Author:
rgrieder
Message:

Merged remaining revisions from gamestate to gamestates2.

Location:
code/branches/gamestates2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/gamestates2

  • code/branches/gamestates2/data/gui/scripts/InitialiseGUI.lua

    r6417 r6595  
     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()
    6 
    7 schemeMgr:loadScheme("TaharezLookSkin.scheme")
    8 -- load scheme with our own images
     6local system    = CEGUI.System:getSingleton()
     7local cursor    = CEGUI.MouseCursor:getSingleton()
     8
     9-- Load all required skins
     10schemeMgr:loadScheme("TaharezGreenLook.scheme")
     11--schemeMgr:loadScheme("TaharezLook.scheme")
     12--schemeMgr:loadScheme("WindowsLook.scheme")
     13--schemeMgr:loadScheme("VanillaLook.scheme")
     14--schemeMgr:loadScheme("SleekSpaceLook.scheme")
     15
     16-- Connect skin specific window types with our own window types
     17-- By loading a different file (if there is) you can change the skin
     18-- of the menus or the HUD independently
     19schemeMgr:loadScheme("TaharezGreenMenuWidgets.scheme")
     20menuImageSet = "TaharezGreenLook"
     21schemeMgr:loadScheme("TaharezGreenHUDWidgets.scheme")
     22hudImageSet = "TaharezGreenLook"
     23
     24-- Just a remaining test hack
    925schemeMgr:loadScheme("OrxonoxGUIScheme.scheme")
    1026
    11 system:setDefaultMouseCursor("TaharezLook", "MouseArrow")
     27system:setDefaultMouseCursor(menuImageSet, "MouseArrow")
    1228system:setDefaultFont("BlueHighway-12")
    13 system:setDefaultTooltip("TaharezLook/Tooltip")
     29system:setDefaultTooltip("MenuWidgets/Tooltip")
    1430
    1531loadedGUIs = {}
     
    5167end
    5268
    53 -- shows the specified and loads it if not loaded already
    54 -- be sure to set the global variable "filename" before calling this function
     69-- shows the specified GUI sheet and loads it if not loaded already
    5570function showGUI(filename, hidePrevious, bCursorVisible)
    5671    if bCursorVisible == nil then
     
    87102    else
    88103        if nrOfActiveSheets == 0 then
    89             orxonox.InputManager:getInstance():enterState("guiMouseOnly")
     104            --orxonox.InputManager:getInstance():enterState("guiMouseOnly")
    90105            orxonox.HumanController:pauseControl()
    91106        end
    92107    end
     108    orxonox.InputManager:getInstance():enterState(currentGUI.inputState)
     109
    93110    nrOfActiveSheets = nrOfActiveSheets + 1
    94111    table.insert(activeSheets, filename)
     
    161178    bHidePrevious[filename] = nil
    162179    if nrOfActiveSheets == 0 then
    163         orxonox.InputManager:getInstance():leaveState("guiMouseOnly")
     180        --orxonox.InputManager:getInstance():leaveState("guiMouseOnly")
    164181        orxonox.HumanController:resumeControl()
    165182        hideCursor()
    166183    end
     184    orxonox.InputManager:getInstance():leaveState(currentGUI.inputState)
    167185end
    168186
Note: See TracChangeset for help on using the changeset viewer.