Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/MouseAPI_FS19/data/levels/notifications.oxw @ 12205

Last change on this file since 12205 was 11802, checked in by landauf, 7 years ago

migrated NotificationLayer.lua to cegui 0.8

  • 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    <templates>
17        <Template link=lodtemplate_default />
18    </templates>
19    <?lua include("includes/notifications.oxi") ?>
20
21    <NotificationQueueCEGUI
22      name="narrative"
23      targets="simpleNotification,commandNotification"
24      size=3
25      displayTime=3.9
26      position="0.2, 0, 0.1, 0"
27      fontSize="23"
28      fontColor="0.3, 1, 0.2, 0.8"
29      alignment="CentreAligned"
30      displaySize="0.6, 0, 0, 0"
31      />
32
33    <Scene
34        ambientlight = "0.5, 0.5, 0.5"
35        skybox       = "Orxonox/skyBoxBasic"
36    >
37
38    <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" />
39    <SpawnPoint team=0 position="-200,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
40
41    <CommandNotification preMessage="Open the PickupInventory by pressing '" postMessage="'." command="OrxonoxOverlay show PickupInventory">
42        <events>
43            <trigger>
44                <DistanceTrigger name=trigger position="0,0,-100" distance=10 target="Pawn" />
45            </trigger>
46        </events>
47    </CommandNotification>
48    <Billboard position="0,0,-100" colour="1.0,1.0,0" material="Examples/Flare" />
49
50    <SimpleNotification message="Awesome!!!">
51        <events>
52            <trigger>
53                <DistanceTrigger name=trigger position="0,0,100" distance=10 target="Pawn" />
54            </trigger>
55        </events>
56    </SimpleNotification>
57    <Billboard position="0,0,100" colour="1.0,0,1.0" material="Examples/Flare" />
58
59  </Scene>
60</Level>
Note: See TracBrowser for help on using the repository browser.