[6746] | 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() |
---|
[5491] | 6 | |
---|
[6746] | 7 | -- Load all required skins |
---|
| 8 | schemeMgr: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 |
---|
| 18 | schemeMgr:loadScheme("TaharezGreenMenuWidgets.scheme") |
---|
| 19 | menuImageSet = "TaharezGreenLook" |
---|
| 20 | schemeMgr:loadScheme("TaharezGreenHUDWidgets.scheme") |
---|
| 21 | hudImageSet = "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] | 28 | schemeMgr:loadScheme("OrxonoxGUIScheme.scheme") |
---|
| 29 | |
---|
[6746] | 30 | local system = CEGUI.System:getSingleton() |
---|
| 31 | system:setDefaultMouseCursor(menuImageSet, "MouseArrow") |
---|
[5491] | 32 | system:setDefaultFont("BlueHighway-12") |
---|
[6746] | 33 | system:setDefaultTooltip("MenuWidgets/Tooltip") |
---|
[5491] | 34 | |
---|
[6746] | 35 | -- Convenience function and additional tools |
---|
[6417] | 36 | require("GUITools") |
---|