Skip to main content

Notification

This component displays a list of notifications that are automatically removed in a short time, useful e.g. to notify the player of a in-game event.

Example

var notif = new UiNotification(0, 0, 300, 300);

State reference

VariableDescriptionTypeDefault
itemsList of currently displayed items. This is used internallyArray<Struct>[]

Methods

add_item(text, type, timer)

Add a notification item into the list

ParamDescriptionTypeDefault
textNotification messageString
typeKind of notificationRealui_enum_variants.primary
timerTime in steps before removing the notificationReal180