ui.Window

ui.Window

class

Top level window with a title bar the player can drag it by

Fields

NameTypeDescription
content ui.Widget Single child (replaces previous when set)
title string Text shown in the title bar
width number Fixed width in slate units; zero lets the content decide and the window resizes with it
height number Fixed height in slate units; zero lets the content decide and the window resizes with it
input boolean True gives the window the cursor and the keyboard while the game keeps running

Functions

ui.Window:show()

Add to viewport at Z order 0

ui.Window:close()

Remove from parent (hide)

Inherited from ui.Widget (1)
  • visible Hidden widgets keep their place in the tree and take no input
Inherited from Object (5)