diff options
| author | Radio <radiohotline@disroot.org> | 2026-06-04 15:15:11 +0300 |
|---|---|---|
| committer | Radio <radiohotline@disroot.org> | 2026-06-04 15:15:11 +0300 |
| commit | 9d74b49ab62908d4acf53dde444413886b8b28e5 (patch) | |
| tree | 0cb785267ea7e239b19d88684c0d64b9bd5d52f0 /addons/escoria-wizard/escoria_wizard.gd | |
| parent | 2c85d452ad02a5f89cd43bad7f9de31d0e4fa0c1 (diff) | |
escoria setup and old branch archives
Diffstat (limited to 'addons/escoria-wizard/escoria_wizard.gd')
| -rw-r--r-- | addons/escoria-wizard/escoria_wizard.gd | 43 |
1 files changed, 43 insertions, 0 deletions
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 |
