WindowManager

Manages windows displayed on the screen.

Functions

Link copied to clipboard
fun createWindow(window: Window)

Constructs & registers the window. If the game hasn't yet loaded, delays the creation

inline fun createWindow(name: String, crossinline constructor: Table.() -> Unit)

Creates an anonymous window. Such a window won't be able to receive any events other than onCreate.

Link copied to clipboard
fun showConfirm(text: String, minWidth: Float = 200.0f, no: () -> Unit? = null, yes: () -> Unit? = null)

Shows a confirmation dialog and runs yes or no when an option is selected.

Link copied to clipboard
fun showInfo(text: String, minWidth: Float = 200.0f, onHide: () -> Unit? = null)

Shows an info dialog and optionally runs onHide when it's closed.

Properties

Link copied to clipboard
val windowGroup: WidgetGroup
Link copied to clipboard