Skip to main content

ui.set

For checkboxes, pass true or false. For a slider, pass a number that is within the slider's minimum/maximum values. For a combobox, pass a string value. For a multiselect combobox, pass zero or more strings. For referenced buttons, value is ignored and the button's callback is invoked. For color pickers, pass the arguments r, g, b, a.

ui.set(item: number, value: any, ...)

Arguments

NameDescriptionType
itemThe result of either ui.new_* or ui.referencenumber
valueThe value to which the menu item will be setany
...For multiselect comboboxes, you may want to set more than one option.unknown