| [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> | 
|---|
 | 21 |  | 
|---|
 | 22 |     <Scene | 
|---|
 | 23 |         ambientlight = "0.5, 0.5, 0.5" | 
|---|
 | 24 |         skybox       = "Orxonox/skypanoramagen1" | 
|---|
 | 25 |     > | 
|---|
 | 26 |  | 
|---|
| [7463] | 27 |     <Script code="showGUI NotificationLayer false true" needsGraphics="true" /> | 
|---|
| [7404] | 28 |  | 
|---|
 | 29 |     <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" /> | 
|---|
 | 30 |  | 
|---|
| [7474] | 31 |     <CommandNotification preMessage="Open the PickupInventory by pressing '" postMessage="'." command="OrxonoxOverlay toggleVisibility PickupInventory"> | 
|---|
| [7404] | 32 |         <events> | 
|---|
 | 33 |             <trigger> | 
|---|
 | 34 |                 <DistanceTrigger name=trigger position="0,0,-100" distance=10 target="Pawn" /> | 
|---|
 | 35 |             </trigger> | 
|---|
 | 36 |         </events> | 
|---|
 | 37 |     </CommandNotification> | 
|---|
 | 38 |     <Billboard position="0,0,-100" colour="1.0,1.0,0" material="Examples/Flare" /> | 
|---|
 | 39 |  | 
|---|
 | 40 |     <SimpleNotification message="Awesome!!!"> | 
|---|
 | 41 |         <events> | 
|---|
 | 42 |             <trigger> | 
|---|
 | 43 |                 <DistanceTrigger name=trigger position="0,0,100" distance=10 target="Pawn" /> | 
|---|
 | 44 |             </trigger> | 
|---|
 | 45 |         </events> | 
|---|
 | 46 |     </SimpleNotification> | 
|---|
 | 47 |     <Billboard position="0,0,100" colour="1.0,0,1.0" material="Examples/Flare" /> | 
|---|
 | 48 |  | 
|---|
 | 49 |     <?lua | 
|---|
 | 50 |       for i = 1, 10, 1 do | 
|---|
 | 51 |     ?> | 
|---|
 | 52 |         <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 /> | 
|---|
 | 53 |     <?lua end ?> | 
|---|
 | 54 |  | 
|---|
 | 55 |   </Scene> | 
|---|
 | 56 | </Level> | 
|---|