-
Notifications
You must be signed in to change notification settings - Fork 40
Slider
Robert Jelic edited this page May 2, 2022
·
2 revisions
With sliders you can add a object where the user can change a number value.
Here are all possible functions available for sliders:
Remember slider also inherits from object
this will change the foreground symbol
local mainFrame = basalt.createFrame("myFirstFrame"):show()
local aSlider = mainFrame:addSlider("myFirstSlider"):setSymbol("X"):show()
parameters: char symbol
returns: self
this will change the symbol background color
local mainFrame = basalt.createFrame("myFirstFrame"):show()
local aSlider = mainFrame:addSlider("myFirstSlider"):setBackgroundSymbol(colors.yellow):show()
parameters: number color
returns: self
this will change the symbol color
local mainFrame = basalt.createFrame("myFirstFrame"):show()
local aSlider = mainFrame:addSlider("myFirstSlider"):setSymbolColor(colors.red):show()
parameters: number color
returns: self
this will change the bar to vertical/horizontal (default is horizontal)
local mainFrame = basalt.createFrame("myFirstFrame"):show()
local aSlider = mainFrame:addSlider("myFirstSlider"):setBarType("vertical"):show()
parameters: string value ("vertical", "horizontal"
returns: self
Thanks for checking out our wiki, join our discord for more help: discord.gg/yM7kndJdJJ