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.
Checking the stable version of the documentation...
ScrollBar¶
继承: Range < Control < CanvasItem < Node < Object
派生: HScrollBar, VScrollBar
滚动条的抽象基类。
描述¶
滚动条的抽象基类,通常用于对超出控件可视区域的内容进行导航。滚动条是基于 Range 的控件。
属性¶
|
||
step |
|
主题属性¶
信号¶
scrolling ( )
当滚动条滚动时发出。
属性说明¶
float custom_step = -1.0
覆盖 在按下增和减按钮时或在 ScrollBar 已获得焦点且使用箭头键时 的步长。
主题属性说明¶
Texture2D decrement
用作向左/向上滚动 ScrollBar 的按钮的图标。使用 custom_step 属性支持自定义步长。
Texture2D decrement_highlight
当鼠标指针悬停在递减按钮上时显示。
Texture2D decrement_pressed
在按下递减按钮时显示。
Texture2D increment
用作向右/向下滚动 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 焦点时用作背景。