BessereTests/addons/besseretests/plugin.gd
2024-03-28 05:37:29 +01:00

12 lines
391 B
GDScript

@tool
extends EditorPlugin
var button: Button = preload("res://addons/besseretests/scenesrc/editorbutton.tscn").instantiate()
func _enter_tree():
add_control_to_container(CustomControlContainer.CONTAINER_TOOLBAR, button)
func _exit_tree():
remove_control_from_container(CustomControlContainer.CONTAINER_TOOLBAR, button)
button.queue_free()
print("Thank you for using Bessere Tests!")