DAZScript integer slider that displays a set of string values in place of numeric values.
Inherits :
DAZ Script |
---|
DzEnumSlider ( DzWidget parent ) |
void | editEnd () |
void | editStart () |
void | valueChanged ( Number value ) |
A DzEnumSlider provides a control that allows a user to adjust a bounded, enumerated, integer value. The slider is clamped by default, and automatically sets its min and max range according to the number of string values it contains.
Holds the number of items on the slider. (Read Only)
Holds the default value of the slider.
Since:
Holds whether or not the default value is restorable if the user holds the [Alt] key when clicked.
Since:
Holds the text of the slider. (Read Only)
Holds the current value of the slider.
DzEnumSlider( DzWidget parent )
Creates a new enumerated slider widget.
Parameter(s):
Number : addItem( String label )
Adds a string to the list of items, and adjusts the maximum value for the slider.
Parameter(s):
Return Value:
void : clear()
Clears the list of string values for this slider.
String : getItem( Number which )
Return Value:
which
item.void : moveItem( Number which, Number idx )
Moves the item at index which
to idx
.
Parameter(s):
which
to. If out of range, which
becomes the last item.void : removeItem( Number which )
Removes the item at which from the list.
Parameter(s):
void : renameItem( Number which, String label )
Renames the item at index which
.
Parameter(s):
which
.void : editEnd()
Signature:“editEnd()”
Emitted when the user releases the slider.
void : editStart()
Signature:“editStart()”
Emitted when the user starts dragging the slider.
void : valueChanged( Number value )
Signature:“valueChanged(int)”
Emitted when the value of the slider changes, passes the new value.