[min, max].
Creation
number
required
Lower bound.
number
required
Upper bound.
number
required
Increment for nudge and optional snap.
string?
Text shown before the number.
string?
Text shown after the number, e.g.
"%".SetValue
true for snapToStep to round to the nearest step.
SetFromAlpha
0..1 instead of the real range. 0.5 is the middle.
SetFromText
true if the string was valid.
GetAlpha
0..1.
Nudge
+1) or down (-1) by a sensible amount.
SetValueTextOverrides
{ [0] = "Off" } displays “Off” instead of 0.