This type represents a combo box control.
This type inherits control_container type. All of its base methods and fields are also available in this type.
control_container
add method expects an instance of selectable. Passing other control types will not add them to the list.
add
selectable
Value bits are toggled in order of selectables. That means if the first element is toggled, so will be the first bit, etc.
Constructor
Constructs the combo box.
Arguments
Name
Type
Description
id
control_id
ID.
Returns
combo_box
Combo box instance.
Example
local cb = gui.combo_box(gui.control_id('my_id'));
Field
Type: bool
bool
If set to true, the checkbox will be able to toggle multiple selectables.
true
Method
Returns combo box' value.
None.
value_param<bits>
Value data.
Last updated 1 year ago
local val = cb:get_value():get();