Changeset 5566
- Timestamp:
- May 27, 2009, 9:42:15 PM (16 years ago)
- Location:
- data/media
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
data/media/gui/scripts/mainmenu_2.lua
r5559 r5566 40 40 41 41 function P.button_server_clicked(e) 42 orxonox.CommandExecutor:execute("echo Not yet supported!") 43 hideGUI() 42 choice = winMgr:getWindow("orxonox/LevelListbox"):getFirstSelectedItem() 43 if choice then 44 orxonox.Game:getInstance():setLevel(choice:getText() .. ".oxw") 45 orxonox.CommandExecutor:execute("startServer") 46 toggleGUI() 47 end 44 48 end 45 49 46 50 function P.button_dedicated_clicked(e) 47 orxonox.CommandExecutor:execute("echo Not yet supported!") 48 hideGUI() 51 choice = winMgr:getWindow("orxonox/LevelListbox"):getFirstSelectedItem() 52 if choice then 53 orxonox.Game:getInstance():setLevel(choice:getText() .. ".oxw") 54 orxonox.CommandExecutor:execute("startDedicated") 55 toggleGUI() 56 end 49 57 end 50 58 51 59 function P.button_client_clicked(e) 52 orxonox.CommandExecutor:execute("echo Not yet supported!") 53 hideGUI() 60 choice = winMgr:getWindow("orxonox/LevelListbox"):getFirstSelectedItem() 61 if choice then 62 orxonox.Game:getInstance():setLevel(choice:getText() .. ".oxw") 63 orxonox.CommandExecutor:execute("startClient") 64 toggleGUI() 65 end 54 66 end 55 67
Note: See TracChangeset
for help on using the changeset viewer.