Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/data/gui/scripts/InitialiseGUI.lua @ 6886

Last change on this file since 6886 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
RevLine 
[6746]1-- Define some global shortcuts for common Managers
2guiMgr    = orxonox.GUIManager:getInstance()
3inputMgr  = orxonox.InputManager:getInstance()
4schemeMgr = CEGUI.SchemeManager:getSingleton()
5winMgr    = CEGUI.WindowManager:getSingleton()
[5491]6
[6746]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
[5491]23schemeMgr:loadScheme("OrxonoxGUIScheme.scheme")
24
[6746]25local system = CEGUI.System:getSingleton()
26system:setDefaultMouseCursor(menuImageSet, "MouseArrow")
[5491]27system:setDefaultFont("BlueHighway-12")
[6746]28system:setDefaultTooltip("MenuWidgets/Tooltip")
[5491]29
[6746]30-- Convenience function and additional tools
[6417]31require("GUITools")
Note: See TracBrowser for help on using the repository browser.