class-description NEWS COMMUNITY STORE TUTORIALS SIGN UP LOGIN LOGOUT ROKOJORI NEWSLETTER SIGN UP LOGIN LOGOUT NEWS COMMUNITY STORE TUTORIALS TOGGLE FULLSCREEN VOLLBILD AN/AUS ObjectNodeCanvasItemControlRange EditorSpinSlider
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 1, the EditorSpinSlider will display up/down arrows, similar to SpinBox. If the [member Range.step] value is not 1, a slider will be displayed instead.
Enum ControlState<>():Enum

CONTROL_STATE_DEFAULT:null = 0
The type of control used will depend on the value of editing_integer. Up-down arrows if true, a slider if false.


CONTROL_STATE_PREFER_SLIDER:null = 1
A slider will always be used, even if editing_integer is enabled.


CONTROL_STATE_HIDE:null = 2
Neither the up-down arrows nor the slider will be shown.
Signal grabbed<>():Signal
Emitted when the spinner/slider is grabbed.

Signal ungrabbed<>():Signal
Emitted when the spinner/slider is ungrabbed.

Signal updown_pressed<>():Signal
Emitted when the updown button is pressed.

Signal value_focus_entered<>():Signal
Emitted when the value form gains focus.

Signal value_focus_exited<>():Signal
Emitted when the value form loses focus.

set get int control_state<>():int set get
The state in which the control used to manipulate the value will be.

set get bool deferred_drag_mode<>():bool set get
If true, changing via dragging is applied only at the end of the input (for example, when the user releases a mouse button).

set get bool editing_integer<>():bool set get
If true, the EditorSpinSlider is considered to be editing an integer value. If false, 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 control_state is set to 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.

set get bool flat<>():bool set get
If true, the slider will not draw background.

set get int focus_mode<>():int set get
set get bool hide_slider<>():bool set get
If true, the slider and up/down arrows are hidden.

set get String label<>():String set get
The text that displays to the left of the value.

set get bool read_only<>():bool set get
If true, the slider can't be interacted with.

set get int size_flags_vertical<>():int set get
set get float step<>():float set get
set get String suffix<>():String set get
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.




All social media brands are registrated trademarks and belong to their respective owners.





CONTACT IMPRINT TERMS OF USE PRIVACY © ROKOROJI ® 2021 rokojori.com
CONTACT IMPRINT TERMS OF USE PRIVACY © ROKOROJI ® 2021 rokojori.com
We are using cookies on this site. Read more... Wir benutzen Cookies auf dieser Seite. Mehr lesen...