1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-18 17:19:50 +00:00
Pixelorama/addons/dockable_container/layout_node.gd

31 lines
606 B
GDScript3
Raw Normal View History

tool
extends Resource
# Base class for Layout tree nodes
var parent = null
func emit_tree_changed() -> void:
var node = self
while node:
node.emit_signal("changed")
node = node.parent
# Returns a deep copy of the layout.
#
# Use this instead of `Resource.duplicate(true)` to ensure objects have the
# right script and parenting is correctly set for each node.
func clone():
assert(false, "FIXME: implement on child")
# Returns whether there are any nodes
func empty() -> bool:
return true
# Returns all tab names in this node
func get_names() -> PoolStringArray:
return PoolStringArray()