Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 13, 2011, 5:49:41 PM (13 years ago)
Author:
dafrick
Message:

Extending startGame and similar console commands, now also the level to be started (or in case of startClient, the destination) can be specified (but doesn't have to).
Additionally startMainMenu is now in GSLevel and can only be executed in a Level, as opposed to only in the MainMenu as it was before.
Added changeGame console command which works in a level in standalone mode to change to a different level.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/data/gui/scripts/SingleplayerMenu.lua

    r7689 r7876  
    7474        local level = P.levelList[index+1]
    7575        if level ~= nil then
    76             orxonox.LevelManager:getInstance():setDefaultLevel(level:getXMLFilename())
    77             orxonox.execute("startGame")
     76            orxonox.execute("startGame " .. level:getXMLFilename())
    7877            hideAllMenuSheets()
    7978        end
Note: See TracChangeset for help on using the changeset viewer.