Skip to content

slider_int_t

Functions

get_value(): number

Returns value from slider int

1
2
local visuals_other_nightmode = ui.get_slider_int("visuals_other_nightmode")
local nightmode_amt = visuals_other_nightmode:get_value()

set_value(val)

Type Name Description
number val Value

Setting slider int value

1
2
local visuals_other_nightmode = ui.get_slider_int("visuals_other_nightmode")
visuals_other_nightmode:set_value(0)

set_visible(val)

Type Name Description
bool val Visiblity

Setting slider int visiblity, works only for script variables

1
2
local my_slider_int = ui.add_slider_int("lua int slider", "lua_integer", 0, 100, 50)
my_slider_int:set_visible(false)

set_label(label)

Type Name Description
string label New label

Setting slider int label, works only for script variables

1
2
local my_slider_int = ui.add_slider_int("lua int slider", "lua_integer", 0, 100, 50)
my_slider_int:set_label("123123")