feat: escoria-wizard

This commit is contained in:
Balloonpopper
2022-07-28 22:10:46 +10:00
committed by Julian Murgia
parent a53637fac1
commit faab5ba808
93 changed files with 5543 additions and 0 deletions

View File

@@ -0,0 +1,41 @@
tool
extends EditorPlugin
const helper_ui = preload("res://addons/escoria-wizard/escoria_wizard.tscn")
# This is the instance of the plugin code that is instantiated by the plugin.
var helper_instance
func _enter_tree() -> void:
helper_instance = helper_ui.instance()
helper_instance.plugin_reference = self
# Add the panel to the main viewport
get_editor_interface().get_editor_viewport().add_child(helper_instance)
make_visible(false)
func _exit_tree() -> void:
if helper_instance:
helper_instance.queue_free()
func has_main_screen() -> bool:
# Add the button to the Godot interface ribbon
return true
func make_visible(visible: bool) -> void:
if helper_instance:
helper_instance.visible = visible
func get_plugin_name() -> String:
return "Escoria Wizard"
func get_plugin_icon() -> Texture:
return (preload("res://addons/escoria-wizard/graphics/icon16x16.png"))
func open_scene(path: String) -> void:
get_editor_interface().open_scene_from_path(path)