string
required
1 to 1024 characters. Takes the markup.
string
Up to 128 characters.
UgNotifyType
default:"Info"
UgNotifyStyle
default:"Toast"
Compact is one line, Banner is wide and defaults to the top of the screen.UgPosition
Defaults to
settings.notifyPosition.integer
ms, 0 to 600000.
0 stays until dismissed. Defaults to settings.notifyDuration.UgIcon
Replaces the type icon.
string
1 to 32 letters, digits or
_ - . :, not starting with #. Showing an id that is on screen updates it and restarts its timer.- Without
id, the returned id is generated, such as#3. Use it withUpdateandDismiss. Updatechanges fields of a notification on screen and restarts its timer. It returns false when it is gone.DismissAllcloses the notifications of your resource only.- At most
settings.notifyMax(default 5) per anchor. The oldest leave first. - Notifications are client only. To notify from the server, see Using ug-lib with UgCore.
Markup
**bold**, *italic*, and ~token~ colors the rest of the text until ~reset~. Tokens: primary, success, warning, destructive, muted. HTML is shown as text.
Example
client.lua