widget_window
The rows a window or a dialog reads: its chrome, and what shuts it. The widget_window component of the Balaur game engine: its 7 properties, and the…
In questa pagina
ui · 7 properties · UI
The rows a window or a dialog reads: its chrome, and what shuts it.
In a scene, widget_window is the node key that applies it. A script reaches each property below as a field on node.widget_window: reading one asks the running component, and assigning one leaves the rest alone. The whole table is node.widget_window.get() and node.widget_window.set(table).
Properties
| property | type | default | description |
|---|---|---|---|
backdrop_color |
color | [0,0,0,0.549] |
What a dialog dims the screen behind it with |
closable |
bool | true |
Draw a window's cross |
collapsible |
bool | false |
Give a window's title bar an arrow that folds the window to its bar and back |
default_open |
bool | true |
Whether a collapsible window starts unfolded |
dismissable |
bool | true |
Let Escape or a click on the dim shut a dialog; off, only the scene does |
hide_on_close |
bool | true |
Whether a window's close button shuts it; off, the button only emits close_request and the script decides |
resizable |
bool | false |
Give a window a grip in its bottom-right corner that a drag resizes it by, writing width and height within min_width, min_height, max_width and max_height |