Skip to content

API Interface UIScreenStack

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

Interface: UIScreenStack

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

A World's screens: what UIScreens.of(world) returns, and what UIScreens' statics do for the current World.

Properties

current

readonly current: UIScreenEntry | null;

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

The top screen, or null.


stack

readonly stack: readonly UIScreenEntry[];

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

The screens, bottom first.

Methods

back()

back(): boolean;

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

Back: take the top screen off unless it's the only one (the root stays). False when it didn't.

Returns

boolean


clear()

clear(name?, params?): boolean;

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

Empty the stack, then show name (when given) as its only screen.

Parameters

name?

string

params?

Record<string, string>

Returns

boolean


go()

go(path): boolean;

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

Push the screen a path names (/results/42). False when no screen's path matches it.

Parameters

path

string

Returns

boolean


pathOf()

pathOf(name, params?): string;

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

The path of name with params (pathOf("results", { matchId: "42" }) → /results/42).

Parameters

name

string

params?

Record<string, string>

Returns

string


pop()

pop(): boolean;

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

Take the top screen off. False when the stack is empty.

Returns

boolean


push()

push(name, params?): boolean;

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

Show the screen named name on top, with params for its path (/results/:matchId). False when there's no such screen.

Parameters

name

string

params?

Record<string, string>

Returns

boolean


replace()

replace(name, params?): boolean;

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

Swap the top screen for name (push it when the stack is empty).

Parameters

name

string

params?

Record<string, string>

Returns

boolean

Clone this wiki locally