class
GUISliderField
A composite GUI object representing an editor field.
Editor fields are a combination of a label and an input field. Label is optional. This specific implementation displays a horizontal slider and a floating point input box.
Public
Constructors
GUISliderField
Methods
staticGetGuiTypeName
Returns type name of the GUI element used for finding GUI element styles.
SetValue
Value currently assigned to the field/slider.
Returns the clamped value according to range and step.
GetValue
SetStep
Defines the minimal increment the value can be increased/decreased by.
Set to zero to have no step.
GetStep
SetRange
Sets a minimum and maximum allow values in the input field.
Set to large negative/positive values if you don't require clamping.
HasInputFocus
Checks is the input field currently active.
staticCreate
Creates a new GUI editor field with a label.
- labelContent
- Content to display in the editor field label.
- labelWidth
- Width of the label in pixels.
- styleClass
- Style class that will be used for determining GUI element visuals from the current style sheet. If no class is provided, default style is determined based on GUI element type.
Fields
Internal
Methods
SetValueInternal
Sets a new value in the input field, and also allows you to choose should the field trigger an onValueChanged event.
Protected
Methods
~GUISliderField
InputBoxValueChanged
Triggered when the input box value changes definitively.
InputBoxValueChanging
Triggered when the input box value is changing.
SliderChanged
Triggered when the slider is moved.
DoOnInputBoxFocusGained
Triggers when the input box receives keyboard focus.
DoOnInputBoxFocusLost
Triggers when the input box loses keyboard focus.
staticFloatFilter
Callback that checks can the provided string be converted to a floating point value.