Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 7734 was 7734, checked in by dafrick, 13 years ago

Adding new looknfeel (still experimental, thus not new default).

  • Property svn:eol-style set to native
File size: 1.4 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("OrxonoxLook.scheme")
10--schemeMgr:loadScheme("TaharezLook.scheme")
11--schemeMgr:loadScheme("WindowsLook.scheme")
12--schemeMgr:loadScheme("VanillaLook.scheme")
13--schemeMgr:loadScheme("SleekSpaceLook.scheme")
14
15-- Connect skin specific window types with our own window types
16-- By loading a different file (if there is) you can change the skin
17-- of the menus or the HUD independently
18schemeMgr:loadScheme("TaharezGreenMenuWidgets.scheme")
19menuImageSet = "TaharezGreenLook"
20schemeMgr:loadScheme("TaharezGreenHUDWidgets.scheme")
21hudImageSet = "TaharezGreenLook"
22--schemeMgr:loadScheme("OrxonoxLookMenuWidgets.scheme")
23--menuImageSet = "OrxonoxLook"
24--schemeMgr:loadScheme("OrxonoxLookHUDWidgets.scheme")
25--hudImageSet = "OrxonoxLook"
26
27-- Just a remaining test hack
28schemeMgr:loadScheme("OrxonoxGUIScheme.scheme")
29
30local system = CEGUI.System:getSingleton()
31system:setDefaultMouseCursor(menuImageSet, "MouseArrow")
32system:setDefaultFont("BlueHighway-12")
33system:setDefaultTooltip("MenuWidgets/Tooltip")
34
35-- Convenience function and additional tools
36require("GUITools")
Note: See TracBrowser for help on using the repository browser.