A Slider with a label and value label. Abstract base class for VUISlider and HUISlider
Constructor
new (?parent:DisplayObjectContainer, ?xpos:Float, ?ypos:Float, ?label:String, ?defaultHandler:Dynamic)
Constructor
Parameters:
parent | The parent DisplayObjectContainer on which to add this UISlider. |
---|---|
xpos | The x position to place this component. |
ypos | The y position to place this component. |
label | The initial string to display as this component's label. |
defaultHandler | The event handling function to handle the default event for this component (change in this case). |
Variables
labelPrecision:Int
Gets / sets the number of decimals to format the value label. Does not affect the actual value of the slider, just the number shown.
tick:Float
Gets / sets the tick value of this slider. This round the value to the nearest multiple of this number.
Methods
setSliderParams (min:Float, max:Float, value:Float):Void
Convenience method to set the three main parameters in one shot.
Parameters:
min | The minimum value of the slider. |
---|---|
max | The maximum value of the slider. |
value | The value of the slider. |