Changeset 6564 for code/branches/gamestate/data/gui/scripts
- Timestamp:
- Mar 18, 2010, 10:07:48 PM (15 years ago)
- Location:
- code/branches/gamestate/data/gui/scripts
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/gamestate/data/gui/scripts/InitialiseGUI.lua
r6544 r6564 7 7 local cursor = CEGUI.MouseCursor:getSingleton() 8 8 9 schemeMgr:loadScheme("TaharezLook.scheme") 10 -- load scheme with our own images 9 schemeMgr:loadScheme("TaharezMenuWidgets.scheme") 10 schemeMgr:loadScheme("TaharezMenuWidgetsAliases.scheme") 11 -- load scheme with our own images, hack! 11 12 schemeMgr:loadScheme("OrxonoxGUIScheme.scheme") 12 13 13 14 system:setDefaultMouseCursor("TaharezLook", "MouseArrow") 14 15 system:setDefaultFont("BlueHighway-12") 15 system:setDefaultTooltip(" TaharezLook/Tooltip")16 system:setDefaultTooltip("MenuWidgets/Tooltip") 16 17 17 18 loadedGUIs = {} -
code/branches/gamestate/data/gui/scripts/KeyBindMenu.lua
r6459 r6564 65 65 66 66 --Calculate design parameters: 67 sampleWindow = winMgr:createWindow(" TaharezLook/StaticText", "orxonox/KeyBindPane/SampleWindow")67 sampleWindow = winMgr:createWindow("MenuWidgets/StaticText", "orxonox/KeyBindPane/SampleWindow") 68 68 sampleWindow:setText("SampleText") 69 69 … … 122 122 line:setPosition(CEGUI.UVector2(CEGUI.UDim(0, 0), CEGUI.UDim(0, lineHeight*(k-1)))) 123 123 124 local command = winMgr:createWindow(" TaharezLook/StaticText", "orxonox/KeyBindPane/Binding" .. k .. "/Command")124 local command = winMgr:createWindow("MenuWidgets/StaticText", "orxonox/KeyBindPane/Binding" .. k .. "/Command") 125 125 command:setText(nameList[k]) 126 126 command:setSize(CEGUI.UVector2(CEGUI.UDim(0, commandWidth), CEGUI.UDim(1, 0))) … … 129 129 offset = offset + commandWidth + spaceWidth 130 130 131 local plus = winMgr:createWindow(" TaharezLook/TabButton", "orxonox/KeyBindPane/Binding" .. k .. "/Plus")131 local plus = winMgr:createWindow("MenuWidgets/TabButton", "orxonox/KeyBindPane/Binding" .. k .. "/Plus") 132 132 plus:setSize(CEGUI.UVector2(CEGUI.UDim(0, addWidth), CEGUI.UDim(0.7, 0))) 133 133 plus:setPosition(CEGUI.UVector2(CEGUI.UDim(0, offset), CEGUI.UDim(0.15, 0))) … … 139 139 local numButtons = orxonox.KeyBinderManager:getInstance():getCurrent():getNumberOfBindings(commandList[k]); 140 140 for i=0,(numButtons-1) do 141 local button = winMgr:createWindow(" TaharezLook/TabButton", "orxonox/KeyBindPane/Binding" .. k .. "/Button" .. i)141 local button = winMgr:createWindow("MenuWidgets/TabButton", "orxonox/KeyBindPane/Binding" .. k .. "/Button" .. i) 142 142 local name = orxonox.KeyBinderManager:getInstance():getCurrent():getBinding(commandList[k],i) 143 143 name = P.KeyNameNiceifier(name) … … 153 153 offset = offset + buttonWidth 154 154 155 local clear = winMgr:createWindow(" TaharezLook/TabButton", "orxonox/KeyBindPane/Binding" .. k .. "/Clear" .. i)155 local clear = winMgr:createWindow("MenuWidgets/TabButton", "orxonox/KeyBindPane/Binding" .. k .. "/Clear" .. i) 156 156 clear:setSize(CEGUI.UVector2(CEGUI.UDim(0, clearWidth), CEGUI.UDim(0.7, 0))) 157 157 clear:setPosition(CEGUI.UVector2(CEGUI.UDim(0, offset), CEGUI.UDim(0.15, 0)))
Note: See TracChangeset
for help on using the changeset viewer.