Skip to content

1681-engine / ui / UiModal

Interface: UiModal ​

Defined in: src/ui/UiRoot.ts:11

A window that takes the screen while it is open (a Dialog): laid out on resize, asked on Cancel.

Extends ​

  • Container

Methods ​

cancel() ​

ts
cancel(): boolean;

Defined in: src/ui/UiRoot.ts:15

Cancel pressed inside it; true when it used it (it closed).

Returns ​

boolean


layoutFor() ​

ts
layoutFor(viewport): void;

Defined in: src/ui/UiRoot.ts:13

Lays itself out for the screen's size.

Parameters ​

ParameterType
viewportSize

Returns ​

void

Released under the MIT License.