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

bool editable true
FocusMode focus_mode 2 (parent override)
bool scrollable true
int size_flags_vertical 0 (parent override)
int tick_count 0
bool ticks_on_borders false

Property Descriptions

bool editable

Default true
Setter set_editable(value)
Getter is_editable()

If true, the slider can be interacted with. If false, the value can be changed only by code.

bool scrollable

Default true
Setter set_scrollable(value)
Getter is_scrollable()

If true, the value can be changed using the mouse wheel.

int tick_count

Default 0
Setter set_ticks(value)
Getter get_ticks()

Number of ticks displayed on the slider, including border ticks. Ticks are uniformly-distributed value markers.

bool ticks_on_borders

Default false
Setter set_ticks_on_borders(value)
Getter get_ticks_on_borders()

If true, the slider will display ticks for minimum and maximum values.

© 2014–2020 Juan Linietsky, Ariel Manzur, Godot Engine contributors
Licensed under the MIT License.
https://docs.godotengine.org/en/3.2/classes/class_slider.html