UI
Show notifications and toasts to the player.
Permission required: ui
Methods
notify(message, type?)
Show a notification toast.
typescript
UI.notify("Quest updated!");
UI.notify("Connection lost!", "error");
UI.notify("File downloaded.", "success");Parameters:
| Name | Type | Description |
|---|---|---|
message | string | Notification text |
type | string | "info" (default), "success", "error", "warning" |
indicator(options)
Show a persistent indicator on the desktop.
typescript
UI.indicator({
id: "my-indicator",
title: "Download Progress",
description: "Downloading files...",
icon: "download",
});