π¦ Functions
SetStyleSheet
MySlider:SetStyleSheet(SliderStyle)
GetStyleSheet
β Returns SliderStyle.
local ret = MySlider:GetStyleSheet()
SetSliderValue
MySlider:SetSliderValue(Value)
GetSliderValue
β Returns number.
local ret = MySlider:GetSliderValue()
SetMinValue
MySlider:SetMinValue(NewMinValue)
GetMinValue
β Returns number.
local ret = MySlider:GetMinValue()
SetMaxValue
MySlider:SetMaxValue(NewMaxValue)
GetMaxValue
β Returns number.
local ret = MySlider:GetMaxValue()
SetOrientation
MySlider:SetOrientation(Orientation)
GetOrientation
β Returns Orientation.
local ret = MySlider:GetOrientation()
SetIndentHandle
MySlider:SetIndentHandle(IndentHandle)
SetIsLocked
MySlider:SetIsLocked(Locked)
GetIsLocked
β Returns boolean.
local ret = MySlider:GetIsLocked()
SetBarColor
MySlider:SetBarColor(BarColor)
GetBarColor
β Returns Color.
local ret = MySlider:GetBarColor()
SetHandleColor
MySlider:SetHandleColor(HandleColor)
GetHandleColor
β Returns Color.
local ret = MySlider:GetHandleColor()
π Events
On Mouse Capture Begin
Triggered when the mouse is pressed and a capture begins
MySlider:BindDispatcher("OnMouseCaptureBegin", function()
-- On Mouse Capture Begin was called
end)
On Mouse Capture End
Triggered when the mouse is released and a capture ends
MySlider:BindDispatcher("OnMouseCaptureEnd", function()
-- On Mouse Capture End was called
end)
On Value Changed
Triggered when the value is changed by slider or typing
MySlider:BindDispatcher("OnValueChanged", function(self, NewValue)
-- On Value Changed was called
end)