Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/mac_osx2/data/levels/notifications.oxw @ 8356

Last change on this file since 8356 was 7679, checked in by dafrick, 14 years ago

Renaming levelfiles (and some other) according to our new naming conventions which is using camelCase, without '_' or spaces.

  • 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
22    <Scene
23        ambientlight = "0.5, 0.5, 0.5"
24        skybox       = "Orxonox/skypanoramagen1"
25    >
26
27    <Script code="showGUI NotificationLayer false true" needsGraphics="true" />
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.