Changeset 9208 for code/branches/presentation2012/data/gui
- Timestamp:
- May 18, 2012, 3:39:47 PM (13 years ago)
- Location:
- code/branches/presentation2012
- Files:
-
- 2 edited
- 2 copied
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2012
- Property svn:mergeinfo changed
/code/branches/shipSelection (added) merged: 9038-9039,9045-9046,9057,9074,9101,9127-9128,9157,9185,9201
- Property svn:mergeinfo changed
-
code/branches/presentation2012/data/gui/scripts/SingleplayerMenu.lua
r9050 r9208 2 2 3 3 local P = createMenuSheet("SingleplayerMenu") 4 4 P.loadAlong = {"ShipSelectionMenu"} 5 5 P.levelList = {} 6 6 P.activeTabIndexes = {} 7 7 P.scrollbarWidth = 13 8 selectedlevel = {} -- level for ship selection 8 9 9 10 function P.onLoad() … … 46 47 while index < size do 47 48 level = orxonox.LevelManager:getInstance():getAvailableLevelListItem(index) 48 if level ~= nil then 49 if (level ~= nil and level:getXMLFilename() ~= "_temp.oxw") then 50 --os.execute("echo " .. level:getXMLFilename() .." >> ~/outputorx") 49 51 local levelXMLFilename = level:getXMLFilename() 50 52 -- create an imageset for each screenshot … … 141 143 142 144 function P.SingleplayerStartButton_clicked(e) 143 local level = P.SingleplayerGetSelectedLevel() 144 if level ~= nil then 145 orxonox.execute("startGame " .. level:getXMLFilename()) 146 hideAllMenuSheets() 145 selectedlevel = P.SingleplayerGetSelectedLevel() 146 if selectedlevel ~= nil then 147 if selectedlevel:hasTag("shipselection") then 148 local shipSelectionMenu = showMenuSheet("ShipSelectionMenu", true) 149 shipSelectionMenu:update() 150 else 151 orxonox.execute("startGame " .. selectedlevel:getXMLFilename()) 152 hideAllMenuSheets() 153 end 147 154 end 148 155 end
Note: See TracChangeset
for help on using the changeset viewer.