ui.Window
classTop level window with a title bar the player can drag it by
Fields
| Name | Type | Description |
|---|---|---|
| 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)
- name Object name
- Object.find(name) Find an already loaded object by name
- Object.cast(object) Trying to cast Object into Object
- Object:get_class() Class of this object
- Object.get_class() Return Object class object