forked from kaminaris/StdUi
-
Notifications
You must be signed in to change notification settings - Fork 0
Slider and ScrollBar
wutname1 edited this page May 12, 2019
·
1 revision
Slider component lets you create or style existing scrollbars:
As for styling:
And for creating:
StdUi:StyleScrollBar(scrollBar)
Description:
Removes all textures from existing scrollbar and changes it to look more like StdUi (ElvUI) style.
Arguments:
-
scrollBar
ScrollBar - object that should be styled
StdUi:SliderButton(parent, width, height, direction)
Description:
Simple Slider button with arrow texture (up or down)
Arguments:
-
parent
Frame - object that should be a parent of Button -
width
number (Optional) - Width of the Button -
height
number (Optional) - Height of the Button -
direction
string - Direction of arrow, eitherUP
orDOWN
Returns:
Example:
local slider = StdUi:SliderButton(window, 100, 20, 'UP');
StdUi:Slider(parent, width, height, value, vertical, min, max)
Description:
Simple Slider with thumb button that lets users drag it.
Arguments:
-
parent
Frame - object that should be a parent -
width
number (Optional) - Width of the Slider -
height
number (Optional) - Height of the Slider -
value
number (Optional) - Current value -
vertical
boolean (Optional) - If slider should be vertical, default = false (horizontal) -
min
number - Minimum value -
max
number - Maximum value
Returns:
Example:
local slider = StdUi:Slider(window, 200, 30, 5, false, 0, 20);