Table of Contents

Class Slider

Namespace
MLEM.Ui.Elements
Assembly
MLEM.Ui.dll

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

anchor Anchor

The slider's anchor

size Vector2

The slider's size

scrollerSize int

The size of the slider's scroller indicator

maxValue float

The slider's maximum value

Methods

Update(GameTime)

Updates this element and all of its SortedChildren

public override void Update(GameTime time)

Parameters

time GameTime

The game's time