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...
VSplitContainer¶
Inherits: SplitContainer < Container < Control < CanvasItem < Node < Object
会将两个子控件进行垂直分隔的容器,并且提供了用于调整分隔比例的抓取器。
Description¶
仅接受两个子控件的容器,会将这两个控件垂直排列,在两者之间创建一条分隔线。分隔线可以拖动,从而改变两个子控件之间的大小关系。
Tutorials¶
Theme Properties¶
|
||
|
||
|
||
Theme Property Descriptions¶
int autohide = 1
布尔值。如果1 (true
),抓取器将在不在光标下时自动隐藏。如果0 (false
),抓取器总是可见。
int minimum_grab_thickness = 6
用户可以点击的区域的最小粗细,点击该区域将抓取分割线。如果 separation 或 grabber 的粗细太小,这将保证分割线仍然可以被拖动。
int separation = 12
容器两侧之间的空间。
Texture2D grabber
在中间区域绘制的抓取图标。