Skip to content

Slider and ScrollBar

wutname1 edited this page May 12, 2019 · 1 revision

Component stability: Beta

Slider component lets you create or style existing scrollbars:

As for styling:

And for creating:

Style Scrollbar

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

Slider Button

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, either UP or DOWN

Returns:

Example:

local slider = StdUi:SliderButton(window, 100, 20, 'UP');

Slider

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);