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
Hérite de : Range < Control < CanvasItem < Node < Object
Classe de base abstraite pour les sliders.
Description
Abstract base class for sliders, used to adjust a value by moving a grabber along a horizontal or vertical axis. Sliders are Range-based controls.
Propriétés
|
||
focus_mode |
|
|
|
||
step |
|
|
|
||
|
||
|
Propriétés du thème
|
||
|
||
|
||
Signaux
drag_ended(value_changed: bool) 🔗
Emitted when the grabber stops being dragged. If value_changed is true, Range.value is different from the value when the dragging was started.
drag_started() 🔗
Emitted when the grabber starts being dragged. This is emitted before the corresponding Range.value_changed signal.
Énumérations
enum TickPosition: 🔗
TickPosition TICK_POSITION_BOTTOM_RIGHT = 0
Places the ticks at the bottom of the HSlider, or right of the VSlider.
TickPosition TICK_POSITION_TOP_LEFT = 1
Places the ticks at the top of the HSlider, or left of the VSlider.
TickPosition TICK_POSITION_BOTH = 2
Places the ticks at the both sides of the slider.
TickPosition TICK_POSITION_CENTER = 3
Place les tics au centre du slider.
Descriptions des propriétés
Si true, l'utilisateur peut intéragir avec le curseur. Si false, la valeur ne peut être modifiée que par code.
Si true, la valeur peut être changée avec la molette de la souris.
Le nombre de marqueurs affichées sur le curseur, y compris les marqueurs sur les bords. Les marqueurs représentent des valeurs distribués uniformément.
bool ticks_on_borders = false 🔗
Si true, le curseur affichera des marqueurs pour les valeurs minimales et maximales.
TickPosition ticks_position = 0 🔗
void set_ticks_position(value: TickPosition)
TickPosition get_ticks_position()
Sets the position of the ticks. See TickPosition for details.
Descriptions des propriétés du thème
Boolean constant. If 1, the grabber texture size will be ignored and it will fit within slider's bounds based only on its center position.
Vertical or horizontal offset of the grabber.
Décalage vertical ou horizontal des tics. Le décalage est inversé pour les tiques haut ou gauche.
La texture du glisseur (l'élément déplaçable).
La texture du glisseur quand il est désactivé.
La texture du glisseur quand il a le focus.
La texture des tics, visible lorsque tick_count est supérieur à 0.
The background of the area to the left or bottom of the grabber.
StyleBox grabber_area_highlight 🔗
The background of the area to the left or bottom of the grabber that displays when it's being hovered or focused.
L'arrière-plan pour tout le slider. Affecte la hauteur ou la largeur du grabber_area.