Changeset 9281 for code/branches/presentation2012merge/data/gui/scripts
- Timestamp:
- Jun 9, 2012, 3:51:51 PM (12 years ago)
- Location:
- code/branches/presentation2012merge/data/gui/scripts
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2012merge/data/gui/scripts/ShipSelectionMenu.lua
r9272 r9281 19 19 P.shipList = {} 20 20 for line in io.lines("../levels/templates/.shipmodels") do --checks if shipmodel is included in level file 21 if selectedlevel:hasS hip(string.lower(line)) then21 if selectedlevel:hasStartingShip(string.lower(line)) then 22 22 P.shipList[#P.shipList+1] = string.lower(line) 23 23 end … … 32 32 for k,v in pairs(P.shipList) do 33 33 --TODO: only add ship if is in the right filter tab 34 --if tag == nil or v:hasS hip(tag) then34 --if tag == nil or v:hasStartingShip(tag) then 35 35 local item = CEGUI.createListboxTextItem(v) 36 36 item:setSelectionBrushImage(menuImageSet, "MultiListSelectionBrush") … … 107 107 108 108 if (selectedlevel ~= nil and P.ShipSelectionGetSelectedModel() ~= nil) then 109 selectedlevel:selectS hip(P.ShipSelectionGetSelectedModel())109 selectedlevel:selectStartingShip(P.ShipSelectionGetSelectedModel()) 110 110 orxonox.execute("startGame " .. "_temp.oxw") 111 111 hideAllMenuSheets() -
code/branches/presentation2012merge/data/gui/scripts/SingleplayerMenu.lua
r9272 r9281 48 48 level = orxonox.LevelManager:getInstance():getAvailableLevelListItem(index) 49 49 if (level ~= nil and level:getXMLFilename() ~= "_temp.oxw") then 50 --os.execute("echo " .. level:getXMLFilename() .." >> ~/outputorx")51 50 local levelXMLFilename = level:getXMLFilename() 52 51 -- create an imageset for each screenshot
Note: See TracChangeset
for help on using the changeset viewer.