Add* call returns a handle. That’s how you interact with the control after creating it. Call methods with : syntax (handle:GetValue()).
Everything here works on every control. The per-widget pages only document extras.
Value
Most controls have one main value (aboolean on Toggle, a number on Slider, …). Use GetValue, SetValue, and OnChange for that. Button and a few others don’t, so use their own callbacks instead.
GetValue
SetValue
any
required
Must match the widget’s value type.
OnChange
cb(newValue) every time the value changes: user edits, SetValue, SetState.
() -> ()
A function you call to stop listening.
GetText / SetText
Get / Set
"formattedValue" on a Slider).
Watch
Has
SetVisible / IsVisible / OnVisibleChange
SetVisible returns self for chaining.
SetTip
nil to remove.
string | table | nil
A string, or
{ title?, body? } for a two-part tooltip.OverrideValue
number
default:"0"
Highest priority wins when multiple scripts override the same control.
OverrideHandle
Released automatically on script unload.
IsOverridden
Destroy
Exists
true if the control still exists in the menu.