forked from newt/gmtk-2024
15 lines
279 B
GDScript
15 lines
279 B
GDScript
@tool
|
|
extends Button
|
|
|
|
signal node_dropped(node_path)
|
|
|
|
func _can_drop_data(_pos, data):
|
|
if data.type == "nodes":
|
|
var node = get_node(data.nodes[0])
|
|
return node is AnimationPlayer
|
|
return false
|
|
|
|
|
|
func _drop_data(_pos, data):
|
|
var path = data.nodes[0]
|
|
node_dropped.emit(path)
|