Slider

Inherits: Range < Control < CanvasItem < Node < Object

Inherited By: HSlider, VSlider

Category: Core

Brief Description

Base class for GUI Sliders.

Properties

booleditable
FocusModefocus_mode
boolscrollable
inttick_count
boolticks_on_borders

Description

Base class for GUI Sliders.

Property Descriptions

Setterset_editable(value)
Getteris_editable()

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


Setterset_focus_mode(value)
Getterget_focus_mode()

Setterset_scrollable(value)
Getteris_scrollable()

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


  • int tick_count
Setterset_ticks(value)
Getterget_ticks()

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


  • bool ticks_on_borders
Setterset_ticks_on_borders(value)
Getterget_ticks_on_borders()

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