Changeset 5236 for data/Media/gui/scripts/loadGUI.lua
- Timestamp:
- Oct 24, 2008, 2:44:14 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
data/Media/gui/scripts/loadGUI.lua
r5165 r5236 14 14 quit:setText("Quit") 15 15 quit:setSize(CEGUI.UVector2(CEGUI.UDim(0.15, 0), CEGUI.UDim(0.05, 0))) 16 quit:setPosition(CEGUI.UVector2(CEGUI.UDim(0.4, 0), CEGUI.UDim(0. 6, 0)))16 quit:setPosition(CEGUI.UVector2(CEGUI.UDim(0.4, 0), CEGUI.UDim(0.7, 0))) 17 17 quit:subscribeEvent("Clicked","button_quit_clicked") 18 18 … … 23 23 standalone:subscribeEvent("Clicked","button_standalone_clicked") 24 24 25 local dedicated = winMgr:createWindow("TaharezLook/Button", "orxonox/DedicatedButton") 26 dedicated:setText("Dedicated") 27 dedicated:setSize(CEGUI.UVector2(CEGUI.UDim(0.15, 0), CEGUI.UDim(0.05, 0))) 28 dedicated:setPosition(CEGUI.UVector2(CEGUI.UDim(0.4, 0), CEGUI.UDim(0.4, 0))) 29 dedicated:subscribeEvent("Clicked","button_dedicated_clicked") 30 25 31 local server = winMgr:createWindow("TaharezLook/Button", "orxonox/ServerButton") 26 32 server:setText("Server") 27 33 server:setSize(CEGUI.UVector2(CEGUI.UDim(0.15, 0), CEGUI.UDim(0.05, 0))) 28 server:setPosition(CEGUI.UVector2(CEGUI.UDim(0.4, 0), CEGUI.UDim(0. 4, 0)))34 server:setPosition(CEGUI.UVector2(CEGUI.UDim(0.4, 0), CEGUI.UDim(0.5, 0))) 29 35 server:subscribeEvent("Clicked","button_server_clicked") 30 36 … … 32 38 client:setText("Client") 33 39 client:setSize(CEGUI.UVector2(CEGUI.UDim(0.15, 0), CEGUI.UDim(0.05, 0))) 34 client:setPosition(CEGUI.UVector2(CEGUI.UDim(0.4, 0), CEGUI.UDim(0. 5, 0)))40 client:setPosition(CEGUI.UVector2(CEGUI.UDim(0.4, 0), CEGUI.UDim(0.6, 0))) 35 41 client:subscribeEvent("Clicked","button_client_clicked") 36 42 … … 43 49 rootSheet:addChildWindow(standalone) 44 50 rootSheet:addChildWindow(server) 51 rootSheet:addChildWindow(dedicated) 45 52 rootSheet:addChildWindow(client) 46 53 background:addChildWindow(rootSheet) … … 59 66 function button_server_clicked(e) 60 67 orxonox.CommandExecutor:execute("selectGameState server") 68 hideGUI() 69 end 70 71 function button_dedicated_clicked(e) 72 orxonox.CommandExecutor:execute("selectGameState dedicated") 61 73 hideGUI() 62 74 end
Note: See TracChangeset
for help on using the changeset viewer.