mirror of
https://github.com/Relintai/godot-engine.file-editor.git
synced 2025-02-22 07:37:57 +01:00
14 lines
369 B
GDScript3
14 lines
369 B
GDScript3
|
tool
|
||
|
extends EditorPlugin
|
||
|
|
||
|
var doc
|
||
|
|
||
|
func _enter_tree():
|
||
|
doc = preload("../scenes/FileEditor.tscn").instance()
|
||
|
add_control_to_dock(EditorPlugin.DOCK_SLOT_LEFT_BR,doc)
|
||
|
# add_autoload_singleton("UserData","res://addons/github-integration/scripts/user_data.gd")
|
||
|
|
||
|
func _exit_tree():
|
||
|
remove_control_from_docks(doc)
|
||
|
# remove_autoload_singleton("UserData")
|
||
|
doc.queue_free()
|