Godot editor's control for editing numeric values.
This [Control] node is used in the editor's Inspector dock to allow editing of numeric values. Can be used with [EditorInspectorPlugin] to recreate the same behavior. If the [member Range.step] value is [code]1[/code], the [EditorSpinSlider] will display up/down arrows, similar to [SpinBox]. If the [member Range.step] value is not [code]1[/code], a slider will be displayed instead.
- The state in which the control used to manipulate the value will be.
- If [code]true[/code], changing via dragging is applied only at the end of the input (for example, when the user releases a mouse button).
- If [code]true[/code], the [EditorSpinSlider] is considered to be editing an integer value. If [code]false[/code], the [EditorSpinSlider] is considered to be editing a floating-point value. This is used to determine whether a slider should be drawn by default. The slider is only drawn for floats; integers use up-down arrows similar to [SpinBox] instead, unless [member control_state] is set to [constant CONTROL_STATE_PREFER_SLIDER]. It will also use [member EditorSettings.interface/inspector/integer_drag_speed] instead of [member EditorSettings.interface/inspector/float_drag_speed] if the slider is available.
- If [code]true[/code], the slider will not draw background.
- If [code]true[/code], the slider and up/down arrows are hidden.
- The text that displays to the left of the value.
- If [code]true[/code], the slider can't be interacted with.
- The suffix to display after the value (in a faded color). This should generally be a plural word. You may have to use an abbreviation if the suffix is too long to be displayed.
Emitted when the spinner/slider is grabbed.
Emitted when the spinner/slider is ungrabbed.
Emitted when the updown button is pressed.
Emitted when the value form gains focus.
Emitted when the value form loses focus.
The type of control used will depend on the value of [member editing_integer]. Up-down arrows if [code]true[/code], a slider if [code]false[/code].
A slider will always be used, even if [member editing_integer] is enabled.
Neither the up-down arrows nor the slider will be shown.
Single texture representing both the up and down buttons.
Single texture representing both the up and down buttons, when the control is readonly or disabled.