| | 551 | == SimpleNotification == |
| | 552 | The next section about the event system will need the SimpleNatification class to display text messages. |
| | 553 | Place the following code block inside the level before the opening Scene tag |
| | 554 | {{{ |
| | 555 | #!xml |
| | 556 | <?lua include("includes/notifications.oxi") ?> |
| | 557 | |
| | 558 | <NotificationQueueCEGUI |
| | 559 | name="narrative" |
| | 560 | targets="simpleNotification" |
| | 561 | size=3 |
| | 562 | displayTime=3.9 |
| | 563 | position="0.2, 0, 0.1, 0" |
| | 564 | fontSize="23" |
| | 565 | fontColor="0.3, 1, 0.2, 0.8" |
| | 566 | alignment="HorzCentred" |
| | 567 | displaySize="0.6, 0, 0, 0" |
| | 568 | /> |
| | 569 | }}} |