Skip to main content

ui.update

Creates a string UI element, can be used to store arbitrary strings in configs. No menu item is created but it has the same semantics as other ui.new_* functions. Returns a special value that can be passed to ui.get and ui.set, or throws an error on failure.

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

Arguments

NameDescriptionType
itemThe special value returned by ui.new_checkbox, ui.new_slider, ui.new_combobox, ui.new_hotkey, or ui.reference.number
valueThe value to which the menu item will be setany
...For multiselect comboboxes, you may want to set more than one option.unknown