From 9d74b49ab62908d4acf53dde444413886b8b28e5 Mon Sep 17 00:00:00 2001 From: Radio Date: Thu, 4 Jun 2026 15:15:11 +0300 Subject: escoria setup and old branch archives --- addons/escoria-wizard/escoria_wizard.gd | 43 +++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 addons/escoria-wizard/escoria_wizard.gd (limited to 'addons/escoria-wizard/escoria_wizard.gd') diff --git a/addons/escoria-wizard/escoria_wizard.gd b/addons/escoria-wizard/escoria_wizard.gd new file mode 100644 index 0000000..9f7b151 --- /dev/null +++ b/addons/escoria-wizard/escoria_wizard.gd @@ -0,0 +1,43 @@ +@tool +extends Control + + +const GENERIC_ERROR_NODE = "Menu/InformationWindows/generic_error_window" + + +# This variable is set by plugin.gd and used to allow the plugin to interact with the Godot +# editor (open the ESCPlayer scene in the editor once it's created) +var plugin_reference + + +func _ready() -> void: + for section_loop in ["RoomCreator", "CharacterCreator", "ItemCreator"]: + get_node(section_loop).visible = false + + $Menu.visible = true + + +func NewGame_pressed() -> void: + pass # Replace with function body. + + +func NewRoom_pressed() -> void: + $Menu.visible = false + $RoomCreator.visible = true + $RoomCreator.room_creator_reset() + + +func CharacterCreator_pressed() -> void: + $Menu.visible = false + $CharacterCreator.visible = true + + if plugin_reference == null: + get_node(GENERIC_ERROR_NODE).dialog_text = "Warning!\n\nExporting your character will fail when\n" + get_node(GENERIC_ERROR_NODE).dialog_text += "running the character creator directly rather than\n" + get_node(GENERIC_ERROR_NODE).dialog_text += "as a plugin.\n\nPlease open this as a plugin." + get_node(GENERIC_ERROR_NODE).popup() + + +func InventoryItem_pressed() -> void: + $Menu.visible = false + $ItemCreator.visible = true -- cgit v1.3