Skip to content

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:

NameTypeDescription
messagestringNotification text
typestring"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",
});

HotBunny Interactive Entertainment Inc.