mirror of
https://github.com/Relintai/pandemonium_demo_projects.git
synced 2024-12-21 13:56:50 +01:00
12 lines
352 B
GDScript
12 lines
352 B
GDScript
tool
|
|
extends EditorPlugin
|
|
|
|
func _enter_tree():
|
|
# When this plugin node enters tree, add the custom type
|
|
add_custom_type("Heart", "Node2D", preload("res://addons/custom_node/heart.gd"), preload("res://addons/custom_node/heart_icon.png"))
|
|
|
|
|
|
func _exit_tree():
|
|
# When the plugin node exits the tree, remove the custom type
|
|
remove_custom_type("Heart")
|