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 的控制項。
屬性
|
||
focus_mode |
|
|
step |
|
主題屬性
訊號
scrolling() 🔗
當捲軸滾動時發出。
屬性說明
覆蓋 在按下增和減按鈕時或在 ScrollBar 已獲得焦點且使用方向鍵時 的步長。
主題屬性說明
作為按鈕使用的圖示,它用於使 ScrollBar 向左滾動。滾動步長由 custom_step 屬性值自訂。
Texture2D decrement_highlight 🔗
當滑鼠指標懸停在遞減按鈕上時顯示。
在按下遞減按鈕時顯示。
作為按鈕使用的圖示,它用於使 ScrollBar 向右滾動。滾動步長由 custom_step 屬性值自訂。
Texture2D increment_highlight 🔗
當滑鼠指標懸停在差異量按鈕上時顯示。
在按下差異量按鈕時顯示。
用作拖動條的紋理,表示目前的可拖動元素。
當滑鼠懸停在拖動條上時使用。
在拖動條被拖動時使用。
用作此 ScrollBar 的背景。
當 ScrollBar 具有 GUI 焦點時用作背景。