Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5578 for data


Ignore:
Timestamp:
Jun 29, 2009, 4:01:42 PM (15 years ago)
Author:
rgrieder
Message:

Accompanying changes to the source repo revision 3249.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • data/media/gui/scripts/mainmenu_3.lua

    r5577 r5578  
    1010function P:init()
    1111    listbox = winMgr:getWindow("orxonox/LevelListbox")
    12     preselect = orxonox.LevelManager:getInstance():getStartLevel()
     12    preselect = orxonox.LevelManager:getInstance():getDefaultLevel()
    1313    orxonox.GUIManager:getInstance():getLevelList() --levellist variable ist set now
    1414    table.sort(levellist)
     
    3333    choice = winMgr:getWindow("orxonox/LevelListbox"):getFirstSelectedItem()
    3434    if choice then
    35         orxonox.LevelManager:getInstance():setStartLevel(choice:getText() .. ".oxw")
     35        orxonox.LevelManager:getInstance():setDefaultLevel(choice:getText() .. ".oxw")
    3636        orxonox.CommandExecutor:execute("startGame")
    3737        toggleGUI()
     
    4242    choice = winMgr:getWindow("orxonox/LevelListbox"):getFirstSelectedItem()
    4343    if choice then
    44         orxonox.LevelManager:getInstance():setStartLevel(choice:getText() .. ".oxw")
     44        orxonox.LevelManager:getInstance():setDefaultLevel(choice:getText() .. ".oxw")
    4545        orxonox.CommandExecutor:execute("startServer")
    4646        toggleGUI()
     
    5151    choice = winMgr:getWindow("orxonox/LevelListbox"):getFirstSelectedItem()
    5252    if choice then
    53         orxonox.LevelManager:getInstance():setStartLevel(choice:getText() .. ".oxw")
     53        orxonox.LevelManager:getInstance():setDefaultLevel(choice:getText() .. ".oxw")
    5454        orxonox.CommandExecutor:execute("startDedicated")
    5555        toggleGUI()
     
    6060    choice = winMgr:getWindow("orxonox/LevelListbox"):getFirstSelectedItem()
    6161    if choice then
    62         orxonox.LevelManager:getInstance():setStartLevel(choice:getText() .. ".oxw")
     62        orxonox.LevelManager:getInstance():setDefaultLevel(choice:getText() .. ".oxw")
    6363        orxonox.CommandExecutor:execute("startClient")
    6464        toggleGUI()
Note: See TracChangeset for help on using the changeset viewer.