Changeset 9208 for code/branches/presentation2012/data
- Timestamp:
- May 18, 2012, 3:39:47 PM (13 years ago)
- Location:
- code/branches/presentation2012
- Files:
-
- 3 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 -
code/branches/presentation2012/data/levels/tutorial.oxw
r9016 r9208 2 2 name = "Coding Tutorial" 3 3 description = "Level for the coding tutorial." 4 tags = "tutorial "4 tags = "tutorial, shipselection" 5 5 screenshot = "codingtutorial.png" 6 startingships = "spaceshipassff, spaceshipghost, spaceshipspacecruiser" 6 7 /> 7 8 … … 10 11 include("stats.oxo") 11 12 include("templates/spaceshipAssff.oxt") 13 include("templates/spaceshipGhost.oxt") 14 include("templates/spaceshipSpacecruiser.oxt") 12 15 include("templates/lodInformation.oxt") 13 16 ?> … … 23 26 skybox = "Orxonox/skypanoramagen1" 24 27 > 25 26 27 28 29 28 <Drone name="meineDrohne" primarythrust="80" auxilarythrust="10" rotationthrust="10" mass= "50" linearDamping = "0.9" angularDamping = "0.7"> 30 29 <attached> … … 53 52 for i = 1, 10, 1 do 54 53 ?> 55 <SpawnPoint position="<?lua print(math.random() * 1000 - 500) ?>,<?lua print(math.random() * 1000 - 500) ?>,<?lua print(math.random() * 1000 - 500) ?>" lookat="0,0,0" spawnclass=SpaceShip pawndesign=s paceshipassff/>54 <SpawnPoint position="<?lua print(math.random() * 1000 - 500) ?>,<?lua print(math.random() * 1000 - 500) ?>,<?lua print(math.random() * 1000 - 500) ?>" lookat="0,0,0" spawnclass=SpaceShip pawndesign=shipselection /> 56 55 <?lua end ?> 57 56
Note: See TracChangeset
for help on using the changeset viewer.