Default Notifications
The notification system is designed to display messages that pop up above the minimap, ensuring they are noticeable and non-intrusive during gameplay.
Add
In order to add default notification you can use the export:
Data is an object that contains:
header
String / Object Icon of the default notification.
text
String Text of the default notification.
progress
persistent
Boolean Sets default notification as persistent. You need to remove it later manually!
Header object
text
String Text before the icon
color
HEX Hex color of the icon
icon
The export returns a serial, which can be useful if you need to remove it later.
Remove
To remove a notification before its time elapses, you need to retrieve the serial from the previously added notification. Use this serial to identify and remove the notification.
Progress
To create default notification as progress, you can use the following example:
Last updated