mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-18 09:09:47 +00:00
2ce81f8c1c
It should work properly on Godot 4.2 now
30 lines
542 B
GDScript
30 lines
542 B
GDScript
@tool
|
|
class_name DockableLayoutNode
|
|
extends Resource
|
|
## Base class for DockableLayout tree nodes
|
|
|
|
var parent: DockableLayoutSplit:
|
|
get:
|
|
return _parent_ref.get_ref()
|
|
set(value):
|
|
_parent_ref = weakref(value)
|
|
|
|
var _parent_ref := WeakRef.new()
|
|
|
|
|
|
func emit_tree_changed() -> void:
|
|
var node := self
|
|
while node:
|
|
node.emit_changed()
|
|
node = node.parent
|
|
|
|
|
|
## Returns whether there are any nodes
|
|
func is_empty() -> bool:
|
|
return true
|
|
|
|
|
|
## Returns all tab names in this node
|
|
func get_names() -> PackedStringArray:
|
|
return PackedStringArray()
|