W3cubDocs

/Godot 3.1

Slider

Inherits: Range < Control < CanvasItem < Node < Object

Inherited By: HSlider, VSlider

Category: Core

Brief Description

Base class for GUI Sliders.

Properties

bool editable
FocusMode focus_mode
bool scrollable
int tick_count
bool ticks_on_borders

Description

Base class for GUI Sliders.

Property Descriptions

bool editable

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.

FocusMode focus_mode

Setter set_focus_mode(value)
Getter get_focus_mode()

bool scrollable

Setter set_scrollable(value)
Getter is_scrollable()

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

int tick_count

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

Setter set_ticks_on_borders(value)
Getter get_ticks_on_borders()

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

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