19 lines
353 B
GDScript
19 lines
353 B
GDScript
|
|
@tool
|
||
|
|
extends EditorPlugin
|
||
|
|
|
||
|
|
var plugin: LanguagetToolPlugin
|
||
|
|
|
||
|
|
func _enter_tree() -> void:
|
||
|
|
plugin = LanguagetToolPlugin.new()
|
||
|
|
add_child(plugin)
|
||
|
|
|
||
|
|
EditorInterface.get_inspector().edited_object_changed.connect(_inspector_edited_object_changed)
|
||
|
|
|
||
|
|
func _inspector_edited_object_changed():
|
||
|
|
plugin.check_new_inspector();
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
func _exit_tree() -> void:
|
||
|
|
pass
|