Skip to content

API Class UIScreens

github-actions[bot] edited this page Dec 2, 2026 · 1 revision

Class: UIScreens

Defined in: src/plugins/ui/runtime/uiScreens.ts:242

Screens (ADR 0668): UIViews with a route, shown as a stack per World. The top screen draws above the others and has focus; the UI cancel action (Escape, the east button) on it takes it off (its cancelPops). The statics act on the current World (a script's, while it runs); UIScreens.of(world) on any.

Constructors

Constructor

new UIScreens(): UIScreens;

Returns

UIScreens

Accessors

current

Get Signature

get static current(): UIScreenEntry | null;

Defined in: src/plugins/ui/runtime/uiScreens.ts:278

Returns

UIScreenEntry | null


stack

Get Signature

get static stack(): readonly UIScreenEntry[];

Defined in: src/plugins/ui/runtime/uiScreens.ts:282

Returns

readonly UIScreenEntry[]

Methods

back()

static back(): boolean;

Defined in: src/plugins/ui/runtime/uiScreens.ts:258

Returns

boolean


clear()

static clear(name?, params?): boolean;

Defined in: src/plugins/ui/runtime/uiScreens.ts:266

Parameters

name?

string

params?

Record<string, string>

Returns

boolean


go()

static go(path): boolean;

Defined in: src/plugins/ui/runtime/uiScreens.ts:270

Parameters

path

string

Returns

boolean


of()

static of(world): UIScreenStack;

Defined in: src/plugins/ui/runtime/uiScreens.ts:244

The screens of world (a script's this.world).

Parameters

world

WorldHandle

Returns

UIScreenStack


pathOf()

static pathOf(name, params?): string;

Defined in: src/plugins/ui/runtime/uiScreens.ts:274

Parameters

name

string

params?

Record<string, string>

Returns

string


pop()

static pop(): boolean;

Defined in: src/plugins/ui/runtime/uiScreens.ts:254

Returns

boolean


push()

static push(name, params?): boolean;

Defined in: src/plugins/ui/runtime/uiScreens.ts:250

Parameters

name

string

params?

Record<string, string>

Returns

boolean


replace()

static replace(name, params?): boolean;

Defined in: src/plugins/ui/runtime/uiScreens.ts:262

Parameters

name

string

params?

Record<string, string>

Returns

boolean

Clone this wiki locally