Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 29, 2009, 1:36:12 PM (14 years ago)
Author:
dafrick
Message:

Made NewMultiplayerMenu and NewSingleplayerMenu work. Also added hideALLGUIs functionality in InitialiseGUI

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation2/data/gui/scripts/NewSingleplayerMenu.lua

    r6150 r6176  
    3939
    4040function P.SingleplayerStartButton_clicked(e)
    41     -- start game
    42     debug("event: start")
     41    choice = winMgr:getWindow("orxonox/SingleplayerLevelListbox"):getFirstSelectedItem()
     42    if choice then
     43        orxonox.LevelManager:getInstance():setDefaultLevel(choice:getText() .. ".oxw")
     44        orxonox.CommandExecutor:execute("startGame")
     45        hideAllGUIs()
     46        debug("event: start")
     47    end
    4348end
    4449
Note: See TracChangeset for help on using the changeset viewer.