You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
887 B

tool
extends EditorPlugin
const TITLE: String = "Tests"
const ControlPanel: PackedScene = preload("res://addons/WAT/gui.tscn")
const TestMetadataEditor: Script = preload("res://addons/WAT/ui/metadata/editor.gd")
const DockController: Script = preload("ui/dock.gd")
const SystemInitializer: Script = preload("system/initializer.gd")
var _ControlPanel: PanelContainer
var _TestMetadataEditor: EditorInspectorPlugin
var _DockController: Node
func get_plugin_name() -> String:
return "WAT"
func _enter_tree() -> void:
SystemInitializer.new()
_ControlPanel = ControlPanel.instance()
_TestMetadataEditor = TestMetadataEditor.new()
add_inspector_plugin(_TestMetadataEditor)
_DockController = DockController.new(self, _ControlPanel)
add_child(_DockController)
func _exit_tree() -> void:
_DockController.free()
_ControlPanel.free()
remove_inspector_plugin(_TestMetadataEditor)