BessereTests/addons/besseretests/plugin.gd

13 lines
391 B
GDScript3
Raw Normal View History

2024-03-28 05:37:29 +01:00
@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!")