2018-08-01 13:40:37 +00:00
|
|
|
tool
|
|
|
|
extends EditorPlugin
|
|
|
|
|
|
|
|
func _enter_tree():
|
|
|
|
# Initialization of the plugin goes here
|
|
|
|
# Add the new type with a name, a parent type, a script and an icon
|
|
|
|
add_custom_type("ui_window", "MarginContainer", preload("ui_window.gd"), preload("icon.png"))
|
|
|
|
|
|
|
|
func _exit_tree():
|
|
|
|
# Clean-up of the plugin goes here
|
|
|
|
# Always remember to remove it from the engine when deactivated
|
2020-01-24 18:56:51 +00:00
|
|
|
remove_custom_type("ui_window")
|