Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/surfaceraceHS14/data/levels/notifications.oxw @ 10255

Last change on this file since 10255 was 9348, checked in by landauf, 12 years ago

merged branch presentation2012merge back to trunk

  • Property svn:eol-style set to native
File size: 1.7 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    <templates>
17        <Template link=lodtemplate_default />
18    </templates>
19    <?lua include("includes/notifications.oxi") ?>
20
21    <Scene
22        ambientlight = "0.5, 0.5, 0.5"
23        skybox       = "Orxonox/skyBoxBasic"
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
28    <CommandNotification preMessage="Open the PickupInventory by pressing '" postMessage="'." command="OrxonoxOverlay toggleVisibility PickupInventory">
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>
Note: See TracBrowser for help on using the repository browser.