Creating Sliders
Creation Snippet
local Slider = Groupbox:CreateSlider({
Name = "Slider",
Icon = NebulaIcons:GetIcon('bar-chart', 'Lucide'),
Range = {0,100},
Increment = 1,
Callback = function(Value)
end,
}, "INDEX")
This is just a snippet, not all parameters are included
Replace INDEX with a unique identifier of the instance that is not repeated.
Parameters
Name : string
The Text that shows in the button.
Tooltip : string NOT REQUIRED
A Description that shows up after hovering over the element after a short amount of time.
Icon : number NOT REQUIRED
The Icon that shows up next to the title.
Range : table
The minimum and maximum vales of the slider.
Since the parameters are using indexes and not names, numbers will be provided on their location in the table.
- Minimum : number (1)
The minimum value of the slider. - Maximum : number (2)
The maximum value of the slider.
Increment : number NOT REQUIRED
The discrete difference in value that occurs with each actuation of the control.
Suffix : string NOT REQUIRED
The suffix for the value displayed by the slider. Take note suffix and not prefix.
HideMax : boolean NOT REQUIRED
Whether to hide the maximum value in the Value Input Display.
CurrentValue : number NOT REQUIRED
The Current Value of the Element. For Sliders, it is the well, current value.
Callback : function
The function that takes place when the Slider gets well, slided.
Passed Parameters:
- Value : number
The Current Value of the Slider.