combo_box_t
Functions
get_value(): number
Returns value from combo box
| local ragebot_active_exploit = ui.get_combo_box("ragebot_active_exploit")
local active_exploit = ragebot_active_exploit:get_value()
|
set_value(val)
Type |
Name |
Description |
number |
val |
Value |
Setting combobox value
| local ragebot_active_exploit = ui.get_combo_box("ragebot_active_exploit")
ragebot_active_exploit:set_value(0)
|
set_visible(val)
Type |
Name |
Description |
bool |
val |
Visiblity |
Setting combobox visiblity, works only for script variables
| local my_combo = ui.add_combo_box("lua combo", "lua_integer", { "item1", "item2", "item3" }, 0)
my_combo:set_visible(false)
|
set_label(label)
Type |
Name |
Description |
string |
label |
New label |
Setting combobox label, works only for script variables
| local my_combo = ui.add_combo_box("lua combo", "lua_integer", { "item1", "item2", "item3" }, 0)
my_combo:set_label("123123")
|
set_items(items)
Type |
Name |
Description |
string array |
items |
New items |
Setting combobox items, works only for script variables
| local my_combo = ui.add_combo_box("lua combo", "lua_integer", { "item1", "item2", "item3" }, 0)
my_combo:set_items( { "1", "2", "3", "4" })
|