Creates a hidden, script-owned overlay or utility window. Native geometry uses integer physical pixels in the Windows virtual-desktop coordinate space shared by Screen, Mouse, and Window; x/y identify the rendered content's absolute top-left edge. Call Show to display it and Destroy to release it.
Optionaloptions: UIOverlayOptions | null
Optional overlay options; omit or pass null for display-only hud defaults. Fractional geometry, non-positive extents, and invalid enum strings are rejected.
A script-owned handle for the newly created hidden overlay; it remains valid until Destroy, native close, or script shutdown.
Removes all child elements from this container.
Adds a read-only text label. Not persisted.
Adds a display-only progress bar. Not persisted.
Adds a styled layout box. Pass a builder function to populate it immediately. Not persisted.
Adds empty spacing between nearby controls. Not persisted.
Adds a clickable button. Not persisted.
Adds a numeric range slider. max must be greater than min or creation throws. The initial value is min; a finite saved value is restored and clamped to the inclusive range, while an invalid saved value falls back to min. SetValue and UI changes are also clamped before persistence and OnChange receives the clamped value.
Adds a single-line text input. String values are persisted by id and restored on next run. defaultText is used when no saved string exists; a wrong-type saved value also falls back to it.
Adds a boolean toggle switch. Boolean values are persisted by id and restored on next run; a wrong-type saved value falls back to false.
Adds a dropdown selector with a duplicate-free string-array of fixed options; invalid option arrays throw. The value must equal one of options; with no options, only the empty string is valid. The first option (or empty string) is the default and the fallback for a stale saved value.
Adds a multi-line text area. String values are persisted by id and restored on next run. defaultText is used when no saved string exists; a wrong-type saved value also falls back to it.
Adds a color picker. String values are persisted by id and restored on next run. defaultColor is used when no saved string exists; a wrong-type saved value also falls back to it.
Adds a hotkey capture field. The captured keyboard, mouse, or HID trigger is persisted by id and restored on next run, including its active binding.
Adds a file picker dialog button. options must be an object and filters, when supplied, must be a string array; invalid values throw. The selected string path is persisted by id and restored on next run; a wrong-type saved value falls back to an empty string. A user picker action grants this script access to the canonical path on this computer, and that machine-local grant survives restarts. Synced/restored values, another script, and SetValue never grant filesystem access.
Adds a directory picker dialog button. The selected string path is persisted by id and restored on next run; a wrong-type saved value falls back to an empty string. A user picker action grants this script access to the canonical directory on this computer, and that machine-local grant survives restarts. Synced/restored values, another script, and SetValue never grant filesystem access.
Adds a multi-select list box whose fixed choices are items. The selected values are a duplicate-free subset of items, canonicalized to item order, persisted by id, and restored on next run. Duplicate choices, unknown SetValue entries, or non-string arrays throw; stale saved data with the wrong shape or unknown entries falls back to an empty selection.
Adds a data grid with typed columns. columns must be an array of descriptors with unique string keys, string titles, a lowercase declared type, and an optional string buttonText; invalid descriptors throw before any UI node is created. An array of non-null, non-array row objects is persisted by id and restored on next run; a wrong-type saved value falls back to an empty array.
Adds a tabbed container group. Not persisted.
Adds a horizontal row layout container. Children are arranged left-to-right. Not persisted.
Adds a vertical column layout container. Children are stacked top-to-bottom. Not persisted.
The root UI surface and nested container interface. All Add* methods return a handle for reading values, listening to changes, or further layout.