monogame-ui-slider
Installation
SKILL.md
MonoGame UI Slider
A slider lets the user pick a float value within a [MinValue, MaxValue] range by dragging a thumb along a track. Supports horizontal and vertical orientation, optional step snapping, keyboard navigation, and gamepad control.
For complete code templates, read references/ui-slider.md.
Assumed Contract
Extends UIElement from monogame-ui-core. Receives pointer events from monogame-ui-interaction (OnPointerDown, OnPointerUp, pointer position). Participates in focus via monogame-ui-focus for keyboard/gamepad increment.
Constructor
var slider = new Slider(pixel); // pixel = 1×1 white Texture2D
slider.MinValue = 0f;
slider.MaxValue = 100f;
slider.Step = 1f; // 0 = continuous float
slider.Orientation = Orientation.Horizontal;