Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 16, 2012, 4:54:46 PM (12 years ago)
Author:
huttemat
Message:

added wip ship selection menu

File:
1 edited

Legend:

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

    r9039 r9045  
    22
    33local P = createMenuSheet("SingleplayerMenu")
    4 P.loadAlong = { "ShipSelectionMenu"}
     4P.loadAlong = {"ShipSelectionMenu"}
    55P.levelList = {}
    66P.activeTabIndexes = {}
     
    143143    local level = P.SingleplayerGetSelectedLevel()
    144144    if level ~= nil then
    145         if level:hasTag("shipselection") then
    146             showMenuSheet("ShipSelectionMenu", true)
     145
     146        if level:hasTag("shipselection") then
     147            showMenuSheet("ShipSelectionMenu", true)
     148        else
     149            orxonox.execute("startGame " .. level:getXMLFilename())
     150            hideAllMenuSheets()
    147151        end
    148         orxonox.execute("startGame " .. level:getXMLFilename())
    149         hideAllMenuSheets()
    150152    end
    151153end
Note: See TracChangeset for help on using the changeset viewer.