Changeset 5577 for data/media
- Timestamp:
- Jun 29, 2009, 1:33:36 PM (15 years ago)
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
data/media/gui/scripts/mainmenu_3.lua
r5576 r5577 10 10 function P:init() 11 11 listbox = winMgr:getWindow("orxonox/LevelListbox") 12 preselect = orxonox. Game:getInstance():getLevel()12 preselect = orxonox.LevelManager:getInstance():getStartLevel() 13 13 orxonox.GUIManager:getInstance():getLevelList() --levellist variable ist set now 14 14 table.sort(levellist) … … 33 33 choice = winMgr:getWindow("orxonox/LevelListbox"):getFirstSelectedItem() 34 34 if choice then 35 orxonox. Game:getInstance():setLevel(choice:getText() .. ".oxw")35 orxonox.LevelManager:getInstance():setStartLevel(choice:getText() .. ".oxw") 36 36 orxonox.CommandExecutor:execute("startGame") 37 37 toggleGUI() … … 42 42 choice = winMgr:getWindow("orxonox/LevelListbox"):getFirstSelectedItem() 43 43 if choice then 44 orxonox. Game:getInstance():setLevel(choice:getText() .. ".oxw")44 orxonox.LevelManager:getInstance():setStartLevel(choice:getText() .. ".oxw") 45 45 orxonox.CommandExecutor:execute("startServer") 46 46 toggleGUI() … … 51 51 choice = winMgr:getWindow("orxonox/LevelListbox"):getFirstSelectedItem() 52 52 if choice then 53 orxonox. Game:getInstance():setLevel(choice:getText() .. ".oxw")53 orxonox.LevelManager:getInstance():setStartLevel(choice:getText() .. ".oxw") 54 54 orxonox.CommandExecutor:execute("startDedicated") 55 55 toggleGUI() … … 60 60 choice = winMgr:getWindow("orxonox/LevelListbox"):getFirstSelectedItem() 61 61 if choice then 62 orxonox. Game:getInstance():setLevel(choice:getText() .. ".oxw")62 orxonox.LevelManager:getInstance():setStartLevel(choice:getText() .. ".oxw") 63 63 orxonox.CommandExecutor:execute("startClient") 64 64 toggleGUI()
Note: See TracChangeset
for help on using the changeset viewer.