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