pokeapi_importer/plugin.gd
2026-09-29 15:56:43 +02:00

16 lines
378 B
GDScript

@tool
extends EditorPlugin
var _dock : Control
func _enter_tree() -> void:
PokeApiSettings.register()
_dock = preload("editor/importer_dock.gd").new()
_dock.name = "PokeAPI"
_dock.editor_filesystem = EditorInterface.get_resource_filesystem()
add_control_to_dock(DOCK_SLOT_RIGHT_UL, _dock)
func _exit_tree() -> void:
remove_control_from_docks(_dock)
_dock.queue_free()