mirror of
https://github.com/Relintai/pandemonium_paint_experimental.git
synced 2024-11-07 16:52:10 +01:00
Initial test plugin code setup.
This commit is contained in:
parent
701e13fe53
commit
c9e59d5b87
@ -1,10 +1,28 @@
|
||||
tool
|
||||
extends EditorPlugin
|
||||
|
||||
|
||||
func _enter_tree() -> void:
|
||||
pass
|
||||
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:
|
||||
pass
|
||||
var paint_editor_plugin : EditorPlugin = Engine.get_global("PaintEditorPlugin")
|
||||
|
||||
if paint_editor_plugin:
|
||||
var sidebar : PaintSidebar = paint_editor_plugin.get_sidebar()
|
||||
|
||||
#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())
|
||||
|
Loading…
Reference in New Issue
Block a user