Planet
navihomeaboutscreenshotsdownloaddevelopmentforum

Notifications

Author

dmoritz

Description

The Dialogue class enables the sending of (in XML) predefined Notifications upon some kind of triggering event. A Notification consists of the name of the speaker, the message itself and a picture of the speaker. In use it would look like this:

@code <Dialogue message="some message..." speaker="speaker" portrait="Orxonox/some_file">

<events>

<trigger>

<PlayerTrigger />

</trigger>

</events>

</Dialogue> @endcode

At the moment the pictures have to be saved in the overlay directory but it would be nice if someone could make a separate directory. Since I did not have enough time to write a separate Speaker class, one has to assign a picture to the speaker in the level-file every time he says something. It would be much more convenient if one could assign the picture to the speaker only once rather than every time he has something to say.

Attachments