Class Slider
A slider element for use inside of a UiSystem. A slider is a horizontal ScrollBar whose value can additionally be controlled using the LeftButtons and RightButtons.
public class Slider : ScrollBar, IGenericDataHolder, ILayoutItem
- Inheritance
-
Slider
- Implements
- Inherited Members
- Extension Methods
Constructors
Slider(Anchor, Vector2, int, float)
Creates a new slider with the given settings
public Slider(Anchor anchor, Vector2 size, int scrollerSize, float maxValue)
Parameters
anchorAnchorThe slider's anchor
sizeVector2The slider's size
scrollerSizeintThe size of the slider's scroller indicator
maxValuefloatThe slider's maximum value
Methods
Update(GameTime)
Updates this element and all of its SortedChildren
public override void Update(GameTime time)
Parameters
timeGameTimeThe game's time