godot-engine.file-editor/addons/file-editor/scripts/file-editor.gd

14 lines
257 B
GDScript3
Raw Normal View History

2019-09-23 15:06:43 +02:00
tool
extends EditorPlugin
var doc
2019-09-24 17:03:49 +02:00
var plugin_version
2019-09-23 15:06:43 +02:00
func _enter_tree():
doc = preload("../scenes/FileEditor.tscn").instance()
add_control_to_dock(EditorPlugin.DOCK_SLOT_LEFT_BR,doc)
2019-09-24 17:03:49 +02:00
2019-09-23 15:06:43 +02:00
func _exit_tree():
remove_control_from_docks(doc)
doc.queue_free()