ScreenDefinition

constructor(title: UiText, pausesGame: Boolean = false, content: UiScope.() -> Unit)(source)

Parameters

title

exact unresolved title retained until transfer or close.

pausesGame

whether the screen pauses its host game.

content

owner-thread callback that emits exactly one root component when evaluated by a runtime.


constructor(title: String, pausesGame: Boolean = false, content: UiScope.() -> Unit)(source)

Creates a definition with a literal title.

Parameters

title

literal title retained as UiText.Literal.

pausesGame

whether the screen pauses its host game.

content

owner-thread callback that emits exactly one root component when evaluated by a runtime.