Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/gamestates2/data/gui/scripts/InitialiseGUI.lua @ 6737

Last change on this file since 6737 was 6737, checked in by rgrieder, 14 years ago

Background image of the GUI is now managed by GUIManager and kept in a very simple manner: Tell it about the image set and the image name and the it will display it in the root node.
Also split SheetManager.lua from InitialiseGUI.lua to have a separate initialisation, required by GUIManager now.
And modified GUISheet.cc/h accordingly.

  • 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.