Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 27, 2012, 3:56:15 PM (12 years ago)
Author:
huttemat
Message:

shipselection core works now

Location:
code/branches/shipSelection/data/gui/scripts
Files:
2 edited

Legend:

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

    r9101 r9127  
    1616
    1717   P.shipList = {}
     18
     19  --for line in io.lines("../levels/templates/.shipmodels") do  orxonox.execute("orxout user_warning " .. line) end
     20  for line in io.lines("../levels/templates/.shipmodels") do 
     21        P.shipList[#P.shipList+1] = string.lower(line)
     22  end
    1823   --[[for f in io.lines("../levels/templates/.shipmodels") do
    1924        if selectedlevel:hasShip(f) then
     
    151156    end
    152157end
    153 --]]
     158
    154159function P.ShipSelectionStartButton_clicked(e)
    155160
    156161    if selectedlevel ~= nil then
    157         selectedlevel:selectShip("meinModell")
    158         --orxonox.execute("startGame " .. selectedlevel:getXMLFilename())
     162        selectedlevel:selectShip(P.ShipSelectionGetSelectedLevel())
     163        orxonox.execute("startGame " .. "_temp.oxw")
    159164        hideAllMenuSheets()
    160165    else
  • code/branches/shipSelection/data/gui/scripts/SingleplayerMenu.lua

    r9074 r9127  
    4747    while index < size do
    4848        level = orxonox.LevelManager:getInstance():getAvailableLevelListItem(index)
    49         if level ~= nil then
     49        if (level ~= nil and level:getXMLFilename() ~= "_temp.oxw") then
     50            --os.execute("echo " .. level:getXMLFilename() .." >> ~/outputorx")
    5051            local levelXMLFilename = level:getXMLFilename()
    5152            -- create an imageset for each screenshot
Note: See TracChangeset for help on using the changeset viewer.