2022-11-14 14:44:37 +01:00
|
|
|
tool
|
|
|
|
extends EditorPlugin
|
|
|
|
|
2022-11-17 11:57:04 +01:00
|
|
|
#func _enter_tree() -> void:
|
|
|
|
# var paint_editor_plugin : EditorPlugin = Engine.get_global("PaintEditorPlugin")
|
|
|
|
#
|
|
|
|
# if paint_editor_plugin:
|
|
|
|
# var sidebar : PaintSidebar = paint_editor_plugin.get_sidebar()
|
|
|
|
#
|
|
|
|
# #print(sidebar)
|
|
|
|
#
|
|
|
|
#
|
|
|
|
#func _exit_tree() -> void:
|
|
|
|
# var paint_editor_plugin : EditorPlugin = Engine.get_global("PaintEditorPlugin")
|
|
|
|
#
|
|
|
|
# if paint_editor_plugin:
|
|
|
|
# var sidebar : PaintSidebar = paint_editor_plugin.get_sidebar()
|
2022-11-15 18:26:43 +01:00
|
|
|
|
|
|
|
#print(sidebar)
|
|
|
|
|
|
|
|
|
|
|
|
#func _enter_tree() -> void:
|
|
|
|
# for c in get_parent().get_children():
|
|
|
|
# if c is EditorPlugin:
|
|
|
|
# var ep : EditorPlugin = c as EditorPlugin
|
|
|
|
#
|
|
|
|
# if ep.get_class() == "PaintEditorPlugin":
|
|
|
|
# print(ep.get_class())
|