1 | -- Define some global shortcuts for common Managers |
---|
2 | guiMgr = orxonox.GUIManager:getInstance() |
---|
3 | inputMgr = orxonox.InputManager:getInstance() |
---|
4 | schemeMgr = CEGUI.SchemeManager:getSingleton() |
---|
5 | winMgr = CEGUI.WindowManager:getSingleton() |
---|
6 | |
---|
7 | -- Load all required skins |
---|
8 | schemeMgr: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 |
---|
17 | schemeMgr:loadScheme("TaharezGreenMenuWidgets.scheme") |
---|
18 | menuImageSet = "TaharezGreenLook" |
---|
19 | schemeMgr:loadScheme("TaharezGreenHUDWidgets.scheme") |
---|
20 | hudImageSet = "TaharezGreenLook" |
---|
21 | |
---|
22 | -- Just a remaining test hack |
---|
23 | schemeMgr:loadScheme("OrxonoxGUIScheme.scheme") |
---|
24 | |
---|
25 | local system = CEGUI.System:getSingleton() |
---|
26 | system:setDefaultMouseCursor(menuImageSet, "MouseArrow") |
---|
27 | system:setDefaultFont("BlueHighway-12") |
---|
28 | system:setDefaultTooltip("MenuWidgets/Tooltip") |
---|
29 | |
---|
30 | -- Convenience function and additional tools |
---|
31 | require("GUITools") |
---|