2020-03-22 19:12:52 +00:00
|
|
|
tool
|
|
|
|
extends EditorPlugin
|
|
|
|
|
|
|
|
func _enter_tree():
|
2021-05-27 21:56:16 +00:00
|
|
|
# Initialization of the plugin goes here
|
|
|
|
# Add the new type with a name, a parent type, a script and an icon
|
2021-09-23 20:23:01 +00:00
|
|
|
add_custom_type("kh_window", "MarginContainer", load("res://addons/kh_window/kh_window.gd"), load("res://addons/kh_window/icon.png"))
|
2020-03-22 19:12:52 +00:00
|
|
|
|
|
|
|
func _exit_tree():
|
2021-05-27 21:56:16 +00:00
|
|
|
# Clean-up of the plugin goes here
|
|
|
|
# Always remember to remove it from the engine when deactivated
|
|
|
|
remove_custom_type("kh_window")
|