- Timestamp:
- Mar 22, 2010, 2:47:10 PM (14 years ago)
- Location:
- code/branches/gamestates2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/gamestates2
- Property svn:mergeinfo changed
/code/branches/gamestate merged: 6441-6442,6459,6537,6544-6546,6548,6564,6566-6567,6569,6571-6572
- Property svn:mergeinfo changed
-
code/branches/gamestates2/data/gui/scripts/InitialiseGUI.lua
r6417 r6595 1 winMgr = CEGUI.WindowManager:getSingleton() 2 guiMgr = orxonox.GUIManager:getInstance() 3 inputMgr = orxonox.InputManager:getInstance() 4 1 5 local 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 6 local system = CEGUI.System:getSingleton() 7 local cursor = CEGUI.MouseCursor:getSingleton() 8 9 -- Load all required skins 10 schemeMgr: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 19 schemeMgr:loadScheme("TaharezGreenMenuWidgets.scheme") 20 menuImageSet = "TaharezGreenLook" 21 schemeMgr:loadScheme("TaharezGreenHUDWidgets.scheme") 22 hudImageSet = "TaharezGreenLook" 23 24 -- Just a remaining test hack 9 25 schemeMgr:loadScheme("OrxonoxGUIScheme.scheme") 10 26 11 system:setDefaultMouseCursor( "TaharezLook", "MouseArrow")27 system:setDefaultMouseCursor(menuImageSet, "MouseArrow") 12 28 system:setDefaultFont("BlueHighway-12") 13 system:setDefaultTooltip(" TaharezLook/Tooltip")29 system:setDefaultTooltip("MenuWidgets/Tooltip") 14 30 15 31 loadedGUIs = {} … … 51 67 end 52 68 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 55 70 function showGUI(filename, hidePrevious, bCursorVisible) 56 71 if bCursorVisible == nil then … … 87 102 else 88 103 if nrOfActiveSheets == 0 then 89 orxonox.InputManager:getInstance():enterState("guiMouseOnly")104 --orxonox.InputManager:getInstance():enterState("guiMouseOnly") 90 105 orxonox.HumanController:pauseControl() 91 106 end 92 107 end 108 orxonox.InputManager:getInstance():enterState(currentGUI.inputState) 109 93 110 nrOfActiveSheets = nrOfActiveSheets + 1 94 111 table.insert(activeSheets, filename) … … 161 178 bHidePrevious[filename] = nil 162 179 if nrOfActiveSheets == 0 then 163 orxonox.InputManager:getInstance():leaveState("guiMouseOnly")180 --orxonox.InputManager:getInstance():leaveState("guiMouseOnly") 164 181 orxonox.HumanController:resumeControl() 165 182 hideCursor() 166 183 end 184 orxonox.InputManager:getInstance():leaveState(currentGUI.inputState) 167 185 end 168 186
Note: See TracChangeset
for help on using the changeset viewer.