VSlider¶
Inherits: Slider < Range < Control < CanvasItem < Node < Object
A vertical slider that goes from bottom (min) to top (max).
Description¶
A vertical slider, used to adjust a value by moving a grabber along a vertical axis. It is a Range-based control and goes from bottom (min) to top (max). Note that this direction is the opposite of VScrollBar's.
Properties¶
BitField<SizeFlags> |
size_flags_horizontal |
|
BitField<SizeFlags> |
size_flags_vertical |
|
Theme Properties¶
|
||
|
||
Theme Property Descriptions¶
int center_grabber = 0
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.
int grabber_offset = 0
Horizontal offset of the grabber.
Texture2D grabber
The texture for the grabber (the draggable element).
Texture2D grabber_disabled
The texture for the grabber when it's disabled.
Texture2D grabber_highlight
The texture for the grabber when it's focused.
Texture2D tick
The texture for the ticks, visible when Slider.tick_count is greater than 0.
StyleBox grabber_area
The background of the area below the grabber.
StyleBox grabber_area_highlight
The background of the area below the grabber that displays when it's being hovered or focused.
StyleBox slider
The background for the whole slider. Determines the width of the grabber_area
.