Skip to content

luxe: ui/slider.control


import "luxe: ui/slider.control" for Data

no docs found

var value : Num = 1
var min : Num = 0
var max : Num = 1
var step : Num = -1
var invert : Bool = false
import "luxe: ui/slider.control" for UISlider

no docs found

UISlider.create(ui_entity : Any) : unknown

no docs found

UISlider.set_value(control : Control, value : Num) : None

Set the value of the slider

UISlider.get_value(control : Control) : Num

Get the current value of the slider

UISlider.set_step(control : Control, value : Num) : unknown

Set the step of the slider. -1 will mean no snapping

UISlider.get_step(control : Control) : Num

Get the current step of the slider

UISlider.set_min(control : Control, value : Num) : unknown

Set the minimum value of the slider

UISlider.get_min(control : Control) : Num

Get the minimum value of the slider

UISlider.set_max(control : Control, value : Num) : unknown

Set the maximum value of the slider

UISlider.get_max(control : Control) : Num

Get the maximum value of the slider

UISlider.set_inverted(control : Control, value : Bool) : unknown

Set the inverted state of the slider

UISlider.get_inverted(control : Control) : Bool

Get the inverted state of the slider