Class TerminalSlider
- Namespace
- RichHudFramework.UI.Client
- Assembly
- RichHudClient.dll
A labeled slider for selecting float values within a specific range. For ControlTiles.
Mimics the appearance of the slider in the SE terminal.
public class TerminalSlider : TerminalValue<float>
- Inheritance
-
TerminalSlider
- Inherited Members
Examples
new TerminalSlider()
{
Name = "TerminalSlider",
ValueText = "0",
Min = 0f, Max = 100f, Value = 0f,
ControlChangedHandler = (obj, args) =>
{
var slider = obj as TerminalSlider;
slider.ValueText = $"{slider.Value:G4}";
ExceptionHandler.SendChatMessage($"Slider value changed: {slider.Value:G3}");
},
ToolTip = "Slider based on 32-bit float value with customizable value text."
}
Constructors
TerminalSlider()
public TerminalSlider()
Properties
Max
The maximum allowable value for the slider.
public float Max { get; set; }
Property Value
Min
The minimum allowable value for the slider.
public float Min { get; set; }
Property Value
Percent
The current slider value expressed as a normalized percentage (0.0 to 1.0) between Min and Max.
public float Percent { get; set; }
Property Value
ValueText
Custom text suffix or label indicating the current value.
Note: This must be updated manually if dynamic text reflecting the value is desired.
public string ValueText { get; set; }