Slider
This Component refers to the return value of menu:AddSlider
.
slider:OnChange
Adds a callback that gets executed when the slider is changed.
slider:OnChange(callback)
- callback:
function(current: number)
slider:SetCurrent
Sets the current value of the slider.
slider:SetCurrent(current)
- current:
number
slider:SetMax
Sets the maximum value of the slider.
slider:SetMax(max)
- max:
number
slider:SetMin
Sets the minimum value of the slider.
slider:SetMin(min)
- min:
number
slider:SetStep
Sets the step of the slider.
slider:SetStep(step)
- step:
number