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...
GraphFrame¶
实验性: This class may be changed or removed in future versions.
继承: GraphElement < Container < Control < CanvasItem < Node < Object
GraphFrame 是一种特殊的 GraphElement,可用于组织 GraphEdit 中的其他 GraphElement。
描述¶
GraphFrame 是一种特殊的 GraphElement,其他 GraphElement 可以附加到其上。可以将其配置为自动调整大小以包含所有附加的 GraphElement。如果移动该框,则其内的所有附加 GraphElement 也会移动。
GraphFrame 在 GraphEdit 内始终位于连接层和其他 GraphElement 后面。
属性¶
|
||
|
||
|
||
mouse_filter |
|
|
|
||
|
||
|
方法¶
主题属性¶
|
||
信号¶
autoshrink_changed() 🔗
更改 autoshrink_enabled 或 autoshrink_margin 时发出。
属性说明¶
bool autoshrink_enabled = true 🔗
如果为 true,则框的矩形将自动调整以包含所有附加的 GraphElement。
当 autoshrink_enabled 为 true 时,附加节点周围用于计算框大小的边距。
框架的内部边距,可用于拖拽该框架。
Color tint_color = Color(0.3, 0.3, 0.3, 0.75) 🔗
框架在 tint_color_enabled 为 true 时的颜色。
bool tint_color_enabled = false 🔗
如果为 true,则会使用着色颜色着色框架。
框架的标题。
方法说明¶
HBoxContainer get_titlebar_hbox() 🔗
返回标题栏所使用的 HBoxContainer,默认只包含一个 Label,用于显示标题。
可用于向标题栏添加自定义控件,例如选项和关闭按钮等。
主题属性说明¶
Color resizer_color = Color(0.875, 0.875, 0.875, 1) 🔗
应用于调整尺寸大小图标的颜色调制。
用于该 GraphFrame 背景的默认 StyleBox。
当 GraphFrame 被选中时,其背景使用的 StyleBox。
用于 GraphFrame 标题栏的 StyleBox。
当 GraphFrame 被选中时,用于其标题栏的 StyleBox。