Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
EditorSpinSlider¶
Inherits: Range < Control < CanvasItem < Node < Object
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.
属性¶
|
||
focus_mode |
|
|
|
||
|
||
|
||
BitField<SizeFlags> |
size_flags_vertical |
|
step |
|
|
|
信号¶
grabbed ( )
Emitted when the spinner/slider is grabbed.
ungrabbed ( )
Emitted when the spinner/slider is ungrabbed.
value_focus_entered ( )
Emitted when the value form gains focus.
value_focus_exited ( )
Emitted when the value form loses focus.
Property Descriptions¶
bool flat = false
If true
, the slider will not draw background.
bool hide_slider = false
If true
, the slider is hidden.
String label = ""
The text that displays to the left of the value.
bool read_only = false
If true
, the slider can't be interacted with.
String suffix = ""
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.