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.

HScrollBar

Inherits: ScrollBar < Range < Control < CanvasItem < Node < Object

水平滚动条,从左侧(最小)滚动到右侧(最大)。

Description

水平滚动条,通常用于为超出控件可见宽度的内容进行导航。这是基于 Range 的控件,从左侧(最小)滚动到右侧(最大)。

Theme Properties

Texture2D

decrement

Texture2D

decrement_highlight

Texture2D

decrement_pressed

Texture2D

increment

Texture2D

increment_highlight

Texture2D

increment_pressed

StyleBox

grabber

StyleBox

grabber_highlight

StyleBox

grabber_pressed

StyleBox

scroll

StyleBox

scroll_focus


Theme Property Descriptions

Texture2D decrement

作为按钮使用的图标,它用于使 ScrollBar 向左滚动。滚动步长由 ScrollBar.custom_step 属性值自定义。


Texture2D decrement_highlight

当鼠标指针悬停在递减按钮上时显示。


Texture2D decrement_pressed

在按下递减按钮时显示。


Texture2D increment

作为按钮使用的图标,它用于使 ScrollBar 向右滚动。滚动步长由 ScrollBar.custom_step 属性值自定义。


Texture2D increment_highlight

当鼠标指针悬停在增量按钮上时显示。


Texture2D increment_pressed

在按下增量按钮时显示。


StyleBox grabber

用作拖动条的纹理,表示当前的可拖动元素。


StyleBox grabber_highlight

当鼠标悬停在拖动条上时使用。


StyleBox grabber_pressed

在拖动条被拖动时使用。


StyleBox scroll

用作此 ScrollBar 的背景。


StyleBox scroll_focus

ScrollBar 具有 GUI 焦点时用作背景。