Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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