GraphicsEditor/addons/graphics_editor/plugin.gd

13 lines
348 B
GDScript3
Raw Normal View History

2019-08-04 09:57:42 +02:00
tool
extends EditorPlugin
2019-11-23 12:33:43 +01:00
#TODO: Make a system for setting scripts as tool scripts when running as an editor plugin
2019-08-04 09:57:42 +02:00
var editor_scene = load("res://addons/graphics_editor/Editor.tscn").instance()
func _enter_tree():
add_control_to_bottom_panel(editor_scene, "Graphics Editor")
func _exit_tree():
2019-11-23 12:33:43 +01:00
remove_control_from_bottom_panel(editor_scene)