- Timestamp:
- Jun 9, 2012, 3:51:51 PM (13 years ago)
- File:
-
- 1 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()
Note: See TracChangeset
for help on using the changeset viewer.