Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/menue/data/levels/notifications.oxw @ 8916

Last change on this file since 8916 was 8916, checked in by baermatt, 13 years ago

Associated each screenshot to the correct level

  • Property svn:eol-style set to native
File size: 1.8 KB
Line 
1<LevelInfo
2 name = "Notifications showcase"
3 description = "Level to test and showcase notifications."
4 tags = "test, showcase"
5 screenshot = "notificationsshowcase.png"
6/>
7
8<?lua
9  include("HUDTemplates3.oxo")
10  include("stats.oxo")
11  include("templates/spaceshipAssff.oxt")
12  include("templates/lodInformation.oxt")
13?>
14
15<Level
16 name         = "Presentation"
17 description  = "A simple testlevel"
18>
19    <templates>
20        <Template link=lodtemplate_default />
21    </templates>
22    <?lua include("includes/notifications.oxi") ?>
23
24    <Scene
25        ambientlight = "0.5, 0.5, 0.5"
26        skybox       = "Orxonox/skypanoramagen1"
27    >
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
31    <CommandNotification preMessage="Open the PickupInventory by pressing '" postMessage="'." command="OrxonoxOverlay toggleVisibility PickupInventory">
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>
Note: See TracBrowser for help on using the repository browser.