[7648] | 1 | <LevelInfo |
---|
| 2 | name = "Notifications showcase" |
---|
| 3 | description = "Level to test and showcase notifications." |
---|
| 4 | tags = "test, showcase" |
---|
| 5 | /> |
---|
| 6 | |
---|
[7404] | 7 | <?lua |
---|
[7679] | 8 | include("HUDTemplates3.oxo") |
---|
[7404] | 9 | include("stats.oxo") |
---|
[7679] | 10 | include("templates/spaceshipAssff.oxt") |
---|
| 11 | include("templates/lodInformation.oxt") |
---|
[7404] | 12 | ?> |
---|
| 13 | |
---|
| 14 | <Level |
---|
| 15 | name = "Presentation" |
---|
| 16 | description = "A simple testlevel" |
---|
| 17 | > |
---|
| 18 | <templates> |
---|
| 19 | <Template link=lodtemplate_default /> |
---|
| 20 | </templates> |
---|
[8706] | 21 | <?lua include("includes/notifications.oxi") ?> |
---|
[7404] | 22 | |
---|
| 23 | <Scene |
---|
| 24 | ambientlight = "0.5, 0.5, 0.5" |
---|
| 25 | skybox = "Orxonox/skypanoramagen1" |
---|
| 26 | > |
---|
| 27 | |
---|
| 28 | <Light type=directional position="0,0,0" direction="0.253, 0.593, -0.765" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 0.9, 1.0" /> |
---|
| 29 | |
---|
[7474] | 30 | <CommandNotification preMessage="Open the PickupInventory by pressing '" postMessage="'." command="OrxonoxOverlay toggleVisibility PickupInventory"> |
---|
[7404] | 31 | <events> |
---|
| 32 | <trigger> |
---|
| 33 | <DistanceTrigger name=trigger position="0,0,-100" distance=10 target="Pawn" /> |
---|
| 34 | </trigger> |
---|
| 35 | </events> |
---|
| 36 | </CommandNotification> |
---|
| 37 | <Billboard position="0,0,-100" colour="1.0,1.0,0" material="Examples/Flare" /> |
---|
| 38 | |
---|
| 39 | <SimpleNotification message="Awesome!!!"> |
---|
| 40 | <events> |
---|
| 41 | <trigger> |
---|
| 42 | <DistanceTrigger name=trigger position="0,0,100" distance=10 target="Pawn" /> |
---|
| 43 | </trigger> |
---|
| 44 | </events> |
---|
| 45 | </SimpleNotification> |
---|
| 46 | <Billboard position="0,0,100" colour="1.0,0,1.0" material="Examples/Flare" /> |
---|
| 47 | |
---|
| 48 | <?lua |
---|
| 49 | for i = 1, 10, 1 do |
---|
| 50 | ?> |
---|
| 51 | <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=spaceshipassff /> |
---|
| 52 | <?lua end ?> |
---|
| 53 | |
---|
| 54 | </Scene> |
---|
| 55 | </Level> |
---|