Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

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

  • Property svn:eol-style set to native
File size: 1.4 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")
[7734]9--schemeMgr:loadScheme("OrxonoxLook.scheme")
[6746]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"
[7734]22--schemeMgr:loadScheme("OrxonoxLookMenuWidgets.scheme")
23--menuImageSet = "OrxonoxLook"
24--schemeMgr:loadScheme("OrxonoxLookHUDWidgets.scheme")
25--hudImageSet = "OrxonoxLook"
[6746]26
27-- Just a remaining test hack
[5491]28schemeMgr:loadScheme("OrxonoxGUIScheme.scheme")
29
[6746]30local system = CEGUI.System:getSingleton()
31system:setDefaultMouseCursor(menuImageSet, "MouseArrow")
[5491]32system:setDefaultFont("BlueHighway-12")
[6746]33system:setDefaultTooltip("MenuWidgets/Tooltip")
[5491]34
[6746]35-- Convenience function and additional tools
[6417]36require("GUITools")
Note: See TracBrowser for help on using the repository browser.