Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/data/levels/notifications.oxw @ 8874

Last change on this file since 8874 was 8706, checked in by dafrick, 14 years ago

Merging presentation branch back into trunk.
There are many new features and also a lot of other changes and bugfixes, if you want to know, digg through the svn log.
Not everything is yet working as it should, but it should be fairly stable. If you habe any bug reports, just send me an email.

  • 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/>
6
7<?lua
8  include("HUDTemplates3.oxo")
9  include("stats.oxo")
10  include("templates/spaceshipAssff.oxt")
11  include("templates/lodInformation.oxt")
12?>
13
14<Level
15 name         = "Presentation"
16 description  = "A simple testlevel"
17>
18    <templates>
19        <Template link=lodtemplate_default />
20    </templates>
21    <?lua include("includes/notifications.oxi") ?>
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
30    <CommandNotification preMessage="Open the PickupInventory by pressing '" postMessage="'." command="OrxonoxOverlay toggleVisibility PickupInventory">
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>
Note: See TracBrowser for help on using the repository browser.