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 ​
| Parameter | Type |
|---|---|
viewport | Size |
Returns ​
void