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
Eredita: Range < Control < CanvasItem < Node < Object
Il controllo per la modifica dei valori numerici nell'editor Godot .
Descrizione
Questo nodo Control viene utilizzato nel pannello dell'Ispettore nell'editor per consentire la modifica di valori numerici. Può essere utilizzato con EditorInspectorPlugin per ricreare lo stesso comportamento.
Se il valore di Range.step è 1, EditorSpinSlider visualizzerà frecce su/giù, simili a SpinBox. Se il valore di Range.step non è 1, sarà invece visualizzato uno slider.
Proprietà
|
||
|
||
|
||
|
||
focus_mode |
|
|
|
||
|
||
|
||
BitField[SizeFlags] |
size_flags_vertical |
|
step |
|
|
|
Proprietà del tema
Segnali
grabbed() 🔗
Emesso quando lo spinner/slider viene afferrato.
ungrabbed() 🔗
Emesso quando lo spinner/slider viene rilasciato.
updown_pressed() 🔗
Emesso quando il pulsante su/giù viene premuto.
value_focus_entered() 🔗
Emesso quando il campo del valore ottiene il focus.
value_focus_exited() 🔗
Emesso quando il campo del valore perde il focus.
Enumerazioni
enum ControlState: 🔗
ControlState CONTROL_STATE_DEFAULT = 0
The type of control used will depend on the value of editing_integer. Up-down arrows if true, a slider if false.
ControlState CONTROL_STATE_PREFER_SLIDER = 1
A slider will always be used, even if editing_integer is enabled.
ControlState CONTROL_STATE_HIDE = 2
Neither the up-down arrows nor the slider will be shown.
Descrizioni delle proprietà
ControlState control_state = 0 🔗
void set_control_state(value: ControlState)
ControlState get_control_state()
The state in which the control used to manipulate the value will be.
bool deferred_drag_mode = false 🔗
If true, changing via dragging is applied only at the end of the input (for example, when the user releases a mouse button).
bool editing_integer = false 🔗
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 EditorSettings.interface/inspector/integer_drag_speed instead of EditorSettings.interface/inspector/float_drag_speed if the slider is available.
Se true, il selettore non disegna lo sfondo.
Deprecato: Use control_state instead.
Se true, il selettore e le frecce in alto e in basso sono nascosti.
Il testo visualizzato a sinistra del valore.
Se true, non è possibile interagire con lo slider.
Il suffisso da visualizzare dopo il valore (in un colore sbiadito). Dovrebbe essere generalmente una parola plurale. Potresti dover usare un'abbreviazione se il suffisso è troppo lungo per essere visualizzato.
Descrizioni delle proprietà del tema
Singola texture che rappresenta entrambi i pulsanti su e giù.
Singola texture che rappresenta entrambi i pulsanti su e giù, quando il controllo è di sola lettura o disabilitato.