1
0
Fork 0
mirror of https://github.com/tonytins/dressupzack synced 2025-05-05 13:34:48 -04:00
dressupzack/addons/SpritesheetGenerator/SpriteSheetGenerator.gd
Tony Bark a1bd301c95 Upgrade to Godot 4
This is the start of a major rewrite of the game, using varies add-ons whenever possible instead of reinventing the wheel. Not that it wasn't a good learning experience, but, yeah, glad Godot 4 is finally here.
2023-03-14 06:58:09 -04:00

13 lines
568 B
GDScript

@tool
extends EditorPlugin
func _enter_tree() -> void:
add_tool_menu_item("Open Spritesheet Generator", run_generator)
get_editor_interface().get_command_palette().add_command("Open Spritesheet Generator", "addons/open_spritesheet_generator", run_generator)
func _exit_tree() -> void:
remove_tool_menu_item("Open Spritesheet Generator")
get_editor_interface().get_command_palette().remove_command("addons/open_spritesheet_generator")
func run_generator():
get_editor_interface().play_custom_scene("res://addons/SpritesheetGenerator/SpritesheetGenerator.tscn")