[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") |
---|
| 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 |
---|
[5491] | 23 | schemeMgr:loadScheme("OrxonoxGUIScheme.scheme") |
---|
| 24 | |
---|
[6746] | 25 | local system = CEGUI.System:getSingleton() |
---|
| 26 | system:setDefaultMouseCursor(menuImageSet, "MouseArrow") |
---|
[5491] | 27 | system:setDefaultFont("BlueHighway-12") |
---|
[6746] | 28 | system:setDefaultTooltip("MenuWidgets/Tooltip") |
---|
[5491] | 29 | |
---|
[6746] | 30 | -- Convenience function and additional tools |
---|
[6417] | 31 | require("GUITools") |
---|