1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-18 09:09:47 +00:00
Pixelorama/addons/dockable_container/layout_node.gd
Emmanouil Papadeas 2ce81f8c1c Update the dockable container addon
It should work properly on Godot 4.2 now
2023-12-01 19:01:11 +02:00

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()