Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/gamestates3/data/gui/scripts/InitialiseGUI.lua @ 8336

Last change on this file since 8336 was 6746, checked in by rgrieder, 15 years ago

Merged gamestates2 branch back to trunk.
This brings in some heavy changes in the GUI framework.
It should also fix problems with triggered asserts in the InputManager.

Note: PickupInventory does not seem to work —> Segfault when showing because before, the owner in GUIOverlay::setGUIName is already NULL.
I haven't tested it before, so I can't tell whether it's my changes.

  • Property svn:eol-style set to native
File size: 1.2 KB
Line 
1-- Define some global shortcuts for common Managers
2guiMgr    = orxonox.GUIManager:getInstance()
3inputMgr  = orxonox.InputManager:getInstance()
4schemeMgr = CEGUI.SchemeManager:getSingleton()
5winMgr    = CEGUI.WindowManager:getSingleton()
6
7-- Load all required skins
8schemeMgr:loadScheme("TaharezGreenLook.scheme")
9--schemeMgr:loadScheme("TaharezLook.scheme")
10--schemeMgr:loadScheme("WindowsLook.scheme")
11--schemeMgr:loadScheme("VanillaLook.scheme")
12--schemeMgr:loadScheme("SleekSpaceLook.scheme")
13
14-- Connect skin specific window types with our own window types
15-- By loading a different file (if there is) you can change the skin
16-- of the menus or the HUD independently
17schemeMgr:loadScheme("TaharezGreenMenuWidgets.scheme")
18menuImageSet = "TaharezGreenLook"
19schemeMgr:loadScheme("TaharezGreenHUDWidgets.scheme")
20hudImageSet = "TaharezGreenLook"
21
22-- Just a remaining test hack
23schemeMgr:loadScheme("OrxonoxGUIScheme.scheme")
24
25local system = CEGUI.System:getSingleton()
26system:setDefaultMouseCursor(menuImageSet, "MouseArrow")
27system:setDefaultFont("BlueHighway-12")
28system:setDefaultTooltip("MenuWidgets/Tooltip")
29
30-- Convenience function and additional tools
31require("GUITools")
Note: See TracBrowser for help on using the repository browser.