Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7193 for code/trunk/data


Ignore:
Timestamp:
Aug 20, 2010, 9:55:50 PM (14 years ago)
Author:
dafrick
Message:

Added NotificationDispatcher, class that can, upon being triggered, dispatch (send/display) a specified Notification.
Additionally a NotificationDispatcher called CommandNotification, that, upon being triggered, displays a Notification with a message and the name of the key that the command is mapped to. It is envisioned to be used in the, soon to be, tutorial level.
Also: Small bugfix in Notification.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/data/levels/tutorial.oxw

    r7163 r7193  
    1414  </templates>
    1515
     16  <NotificationQueue
     17   name   = "notification"
     18   position = "0.05, 0.05"
     19   font   = "VeraMono"
     20   textsize = 0.020
     21   length   = 3
     22   width  = 50
     23  />
     24
    1625  <Scene
    1726   ambientlight = "0.5, 0.5, 0.5"
     
    1928  >
    2029
    21  
    22  
     30      <CommandNotification preMessage="Press '" postMessage="' to fire your primary weapon." command="fire 0">
     31        <events>
     32            <trigger>
     33                <DistanceTrigger name=trigger position="0,0,-100" distance=10 target="Pawn">
     34                    <attached>
     35                        <Billboard position="0,0,0" colour="1.0,1.0,0" material="Examples/Flare" />
     36                    </attached>
     37                </DistanceTrigger>
     38            </trigger>
     39        </events>
     40    </CommandNotification>
    2341 
    2442<Drone name="meineDrohne" primarythrust="80" auxilarythrust="10" rotationthrust="10" mass= "50" linearDamping = "0.9" angularDamping = "0.7">
Note: See TracChangeset for help on using the changeset viewer.