Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/masterserver/data/levels/notifications.oxw @ 7827

Last change on this file since 7827 was 7474, checked in by dafrick, 14 years ago

Synchronizing Notifications.
In the course of that, notifications are not longer sent by creating a Notification and the calling notification.send() bur by letting the NotificationManager handle all this: NotificationManager::getInstance().sendNotification(message)
This made QuestNotification obsolete, thus it was removde.

Also did some work on synchronizing the Script class. It should work properly most of the time, but the current solution is unreliable and unsatisfactory. So this will change as soon as I know how.

File size: 1.7 KB
Line 
1<?lua
2  include("hudtemplates3.oxo")
3  include("stats.oxo")
4  include("templates/spaceship_assff.oxt")
5  include("templates/lodinformation.oxt")
6?>
7
8<Level
9 name         = "Presentation"
10 description  = "A simple testlevel"
11>
12    <templates>
13        <Template link=lodtemplate_default />
14    </templates>
15
16    <Scene
17        ambientlight = "0.5, 0.5, 0.5"
18        skybox       = "Orxonox/skypanoramagen1"
19    >
20
21    <Script code="showGUI NotificationLayer false true" needsGraphics="true" />
22
23    <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" />
24
25    <CommandNotification preMessage="Open the PickupInventory by pressing '" postMessage="'." command="OrxonoxOverlay toggleVisibility PickupInventory">
26        <events>
27            <trigger>
28                <DistanceTrigger name=trigger position="0,0,-100" distance=10 target="Pawn" />
29            </trigger>
30        </events>
31    </CommandNotification>
32    <Billboard position="0,0,-100" colour="1.0,1.0,0" material="Examples/Flare" />
33
34    <SimpleNotification message="Awesome!!!">
35        <events>
36            <trigger>
37                <DistanceTrigger name=trigger position="0,0,100" distance=10 target="Pawn" />
38            </trigger>
39        </events>
40    </SimpleNotification>
41    <Billboard position="0,0,100" colour="1.0,0,1.0" material="Examples/Flare" />
42
43    <?lua
44      for i = 1, 10, 1 do
45    ?>
46        <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 />
47    <?lua end ?>
48
49  </Scene>
50</Level>
Note: See TracBrowser for help on using the repository browser.