How to Use
Using the system is really simple. Once you have the UI Notifications
template dropped into your hierarchy, all you need to do is broadcast to it to create your notifications.
Something to note that is important is the system comes with a queue built in for each screen position. So for example if you call the API multiple times one after the other for the same screen position, then the system will queue up the notifications and display them in order they were received.
Here is an example of creating 2 notifications that make use of the queuing system. By default this will be INFO
notifications and display TOP LEFT
.
1 2 |
|
Creating notifications is that simple. Broadcast to the event show_notification
and as the second parameter send your message. The third parameter is a table with a list of options you can override if needed.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
|