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("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 |
---|
18 | schemeMgr:loadScheme("TaharezGreenMenuWidgets.scheme") |
---|
19 | menuImageSet = "TaharezGreenLook" |
---|
20 | schemeMgr:loadScheme("TaharezGreenHUDWidgets.scheme") |
---|
21 | hudImageSet = "TaharezGreenLook" |
---|
22 | --schemeMgr:loadScheme("OrxonoxLookMenuWidgets.scheme") |
---|
23 | --menuImageSet = "OrxonoxLook" |
---|
24 | --schemeMgr:loadScheme("OrxonoxLookHUDWidgets.scheme") |
---|
25 | --hudImageSet = "OrxonoxLook" |
---|
26 | |
---|
27 | -- Just a remaining test hack |
---|
28 | schemeMgr:loadScheme("OrxonoxGUIScheme.scheme") |
---|
29 | |
---|
30 | local system = CEGUI.System:getSingleton() |
---|
31 | system:setDefaultMouseCursor(menuImageSet, "MouseArrow") |
---|
32 | system:setDefaultFont("BlueHighway-12") |
---|
33 | system:setDefaultTooltip("MenuWidgets/Tooltip") |
---|
34 | |
---|
35 | -- Convenience function and additional tools |
---|
36 | require("GUITools") |
---|