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...
Slider¶
Inherits: Range < Control < CanvasItem < Node < Object
Inherited By: HSlider, VSlider
Base class for GUI sliders.
Description¶
Base class for GUI sliders.
Note: The Range.changed and Range.value_changed signals are part of the Range class which this class inherits from.
Properties¶
|
||
focus_mode |
|
|
|
||
step |
|
|
|
||
|
Signals¶
drag_ended ( bool value_changed )
Emitted when dragging stops. If value_changed
is true, Range.value is different from the value when you started the dragging.
drag_started ( )
Emitted when dragging is started.
Property Descriptions¶
bool editable = true
If true
, the slider can be interacted with. If false
, the value can be changed only by code.
bool scrollable = true
If true
, the value can be changed using the mouse wheel.
int tick_count = 0
Number of ticks displayed on the slider, including border ticks. Ticks are uniformly-distributed value markers.
bool ticks_on_borders = false
If true
, the slider will display ticks for minimum and maximum values.