Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5577 for data/media


Ignore:
Timestamp:
Jun 29, 2009, 1:33:36 PM (15 years ago)
Author:
rgrieder
Message:

Accompanying changes to the source repo revision 3245.

File:
1 copied

Legend:

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

    r5576 r5577  
    1010function P:init()
    1111    listbox = winMgr:getWindow("orxonox/LevelListbox")
    12     preselect = orxonox.Game:getInstance():getLevel()
     12    preselect = orxonox.LevelManager:getInstance():getStartLevel()
    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.Game:getInstance():setLevel(choice:getText() .. ".oxw")
     35        orxonox.LevelManager:getInstance():setStartLevel(choice:getText() .. ".oxw")
    3636        orxonox.CommandExecutor:execute("startGame")
    3737        toggleGUI()
     
    4242    choice = winMgr:getWindow("orxonox/LevelListbox"):getFirstSelectedItem()
    4343    if choice then
    44         orxonox.Game:getInstance():setLevel(choice:getText() .. ".oxw")
     44        orxonox.LevelManager:getInstance():setStartLevel(choice:getText() .. ".oxw")
    4545        orxonox.CommandExecutor:execute("startServer")
    4646        toggleGUI()
     
    5151    choice = winMgr:getWindow("orxonox/LevelListbox"):getFirstSelectedItem()
    5252    if choice then
    53         orxonox.Game:getInstance():setLevel(choice:getText() .. ".oxw")
     53        orxonox.LevelManager:getInstance():setStartLevel(choice:getText() .. ".oxw")
    5454        orxonox.CommandExecutor:execute("startDedicated")
    5555        toggleGUI()
     
    6060    choice = winMgr:getWindow("orxonox/LevelListbox"):getFirstSelectedItem()
    6161    if choice then
    62         orxonox.Game:getInstance():setLevel(choice:getText() .. ".oxw")
     62        orxonox.LevelManager:getInstance():setStartLevel(choice:getText() .. ".oxw")
    6363        orxonox.CommandExecutor:execute("startClient")
    6464        toggleGUI()
Note: See TracChangeset for help on using the changeset viewer.