[gd_scene format=3 uid="uid://beawklamapteq"] [ext_resource type="Script" uid="uid://bxj8cgfbk5r8f" path="res://addons/escoria-wizard/item_creator.gd" id="1"] [ext_resource type="Texture2D" uid="uid://mxyijpemwkkg" path="res://addons/escoria-wizard/graphics/inventory_preview.png" id="2"] [ext_resource type="Texture2D" uid="uid://d2chqmjr3qq3m" path="res://addons/escoria-wizard/graphics/object_preview.png" id="3"] [node name="ItemCreator" type="MarginContainer" unique_id=691174334] custom_minimum_size = Vector2(500, 500) offset_left = 395.0 offset_top = 50.0 offset_right = 895.0 offset_bottom = 850.0 size_flags_horizontal = 4 size_flags_vertical = 4 script = ExtResource("1") [node name="window_background_colour" type="ColorRect" parent="." unique_id=1006540274] custom_minimum_size = Vector2(500, 800) layout_mode = 2 color = Color(0.235294, 0.341176, 0.290196, 1) [node name="VBoxContainer" type="VBoxContainer" parent="." unique_id=1556992828] layout_mode = 2 [node name="Control" type="CenterContainer" parent="VBoxContainer" unique_id=272720985] custom_minimum_size = Vector2(0, 60) layout_mode = 2 [node name="CenterContainer" type="CenterContainer" parent="VBoxContainer/Control" unique_id=1294587700] layout_mode = 2 [node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer/Control/CenterContainer" unique_id=1459294672] layout_mode = 2 [node name="BackgroundObjectCheckBox" type="CheckBox" parent="VBoxContainer/Control/CenterContainer/HBoxContainer" unique_id=1733794135] layout_mode = 2 text = "Create background object" [node name="InventoryItemCheckBox" type="CheckBox" parent="VBoxContainer/Control/CenterContainer/HBoxContainer" unique_id=1237062721] layout_mode = 2 text = "Create inventory item" [node name="HSeparator" type="HSeparator" parent="VBoxContainer" unique_id=1468681635] layout_mode = 2 [node name="HelperHeading" type="MarginContainer" parent="VBoxContainer" unique_id=1282537158] custom_minimum_size = Vector2(0, 40) layout_mode = 2 [node name="CenterContainer" type="CenterContainer" parent="VBoxContainer/HelperHeading" unique_id=407105498] layout_mode = 2 [node name="ObjectHeading" type="Label" parent="VBoxContainer/HelperHeading/CenterContainer" unique_id=1913640739] layout_mode = 2 theme_override_colors/font_color = Color(0.592157, 0.87451, 0.533333, 1) theme_override_colors/font_shadow_color = Color(0, 0, 0, 1) text = "Object Creator" uppercase = true [node name="InventoryHeading" type="Label" parent="VBoxContainer/HelperHeading/CenterContainer" unique_id=1615178370] visible = false layout_mode = 2 theme_override_colors/font_color = Color(0.592157, 0.87451, 0.533333, 1) theme_override_colors/font_shadow_color = Color(0, 0, 0, 1) text = "Inventory Item Creator" uppercase = true [node name="Description" type="MarginContainer" parent="VBoxContainer" unique_id=348444932] layout_mode = 2 [node name="ObjectDescription" type="Label" parent="VBoxContainer/Description" unique_id=1367984222] layout_mode = 2 text = "The object creator is used to create background objects that the player can interact with, but that will not become part of their inventory. NOTE: The node will be created as a child of whichever node is currently selected in the scene tree. " horizontal_alignment = 1 [node name="InventoryDescription" type="Label" parent="VBoxContainer/Description" unique_id=609879510] visible = false layout_mode = 2 text = "The inventory item creator is used to create objects that the player can pick up to add to their inventory. NOTE: The node will be created in the inventory folder shown below. All inventory items for your game must live in the same folder. " horizontal_alignment = 1 [node name="Content" type="MarginContainer" parent="VBoxContainer" unique_id=990904092] custom_minimum_size = Vector2(0, 500) layout_mode = 2 theme_override_constants/margin_left = 20 theme_override_constants/margin_top = 0 theme_override_constants/margin_right = 20 [node name="GridContainer" type="GridContainer" parent="VBoxContainer/Content" unique_id=158727013] custom_minimum_size = Vector2(460, 500) layout_mode = 2 columns = 3 [node name="ItemNameLabel" type="Label" parent="VBoxContainer/Content/GridContainer" unique_id=364727612] layout_mode = 2 text = "Item name:" [node name="ItemName" type="LineEdit" parent="VBoxContainer/Content/GridContainer" unique_id=331794259] custom_minimum_size = Vector2(200, 0) layout_mode = 2 text = "replace_me" [node name="BlankItem" type="Control" parent="VBoxContainer/Content/GridContainer" unique_id=63798475] layout_mode = 2 [node name="ItemGlobalIDLabel" type="Label" parent="VBoxContainer/Content/GridContainer" unique_id=1865740109] layout_mode = 2 text = "Global ID:" [node name="ItemGlobalID" type="LineEdit" parent="VBoxContainer/Content/GridContainer" unique_id=2143247033] layout_mode = 2 [node name="BlankItem2" type="Control" parent="VBoxContainer/Content/GridContainer" unique_id=264709736] layout_mode = 2 [node name="StartsInteractiveLabel" type="Label" parent="VBoxContainer/Content/GridContainer" unique_id=479125211] custom_minimum_size = Vector2(110, 0) layout_mode = 2 text = "Is 'Interactive':" [node name="StartsInteractiveCheckBox" type="CheckBox" parent="VBoxContainer/Content/GridContainer" unique_id=247353906] layout_mode = 2 tooltip_text = "When the room first loads, can the player interact with this?" button_pressed = true [node name="BlankItem3" type="Control" parent="VBoxContainer/Content/GridContainer" unique_id=107820231] layout_mode = 2 [node name="DefaultActionLabel" type="Label" parent="VBoxContainer/Content/GridContainer" unique_id=732630412] layout_mode = 2 text = "Default action: " vertical_alignment = 1 [node name="DefaultActionOption" type="OptionButton" parent="VBoxContainer/Content/GridContainer" unique_id=606279851] custom_minimum_size = Vector2(200, 31) layout_mode = 2 selected = 0 item_count = 1 popup/item_0/id = 0 [node name="BlankItem4" type="Control" parent="VBoxContainer/Content/GridContainer" unique_id=433328003] layout_mode = 2 [node name="ImagePathLabel" type="Label" parent="VBoxContainer/Content/GridContainer" unique_id=398723320] layout_mode = 2 text = "Item graphic:" [node name="ImagePath" type="LineEdit" parent="VBoxContainer/Content/GridContainer" unique_id=938646351] layout_mode = 2 editable = false [node name="ChangeImageButton" type="Button" parent="VBoxContainer/Content/GridContainer" unique_id=1854196443] layout_mode = 2 text = "Change Image" [node name="PreviewLabel" type="Label" parent="VBoxContainer/Content/GridContainer" unique_id=44519053] layout_mode = 2 text = "Preview:" [node name="Preview" type="ColorRect" parent="VBoxContainer/Content/GridContainer" unique_id=92417030] custom_minimum_size = Vector2(240, 240) layout_mode = 2 color = Color(0.121569, 0.196078, 0.0823529, 1) [node name="BackgroundColour" type="ColorRect" parent="VBoxContainer/Content/GridContainer/Preview" unique_id=1329101639] custom_minimum_size = Vector2(232, 232) layout_mode = 0 offset_left = 4.0 offset_top = 4.0 offset_right = 236.0 offset_bottom = 236.0 color = Color(0.254902, 0.231373, 0.231373, 1) [node name="InventoryPreview" type="TextureRect" parent="VBoxContainer/Content/GridContainer/Preview" unique_id=1373748569] visible = false layout_mode = 0 offset_left = 4.0 offset_top = 4.0 offset_right = 236.0 offset_bottom = 236.0 texture = ExtResource("2") [node name="ObjectPreview" type="TextureRect" parent="VBoxContainer/Content/GridContainer/Preview" unique_id=134323334] layout_mode = 0 offset_left = 4.0 offset_top = 4.0 offset_right = 236.0 offset_bottom = 236.0 texture = ExtResource("3") [node name="Preview" type="TextureRect" parent="VBoxContainer/Content/GridContainer/Preview" unique_id=776503273] custom_minimum_size = Vector2(232, 232) layout_mode = 0 offset_left = 4.0 offset_top = 4.0 offset_right = 236.0 offset_bottom = 236.0 [node name="BlankItem5" type="Control" parent="VBoxContainer/Content/GridContainer" unique_id=1394861351] layout_mode = 2 [node name="ImageSizeLabel" type="Label" parent="VBoxContainer/Content/GridContainer" unique_id=212608889] layout_mode = 2 text = "Image size:" [node name="ImageSize" type="Label" parent="VBoxContainer/Content/GridContainer" unique_id=1613836739] layout_mode = 2 text = "(0, 0)" [node name="BlankItem6" type="Control" parent="VBoxContainer/Content/GridContainer" unique_id=1884527510] layout_mode = 2 [node name="InventoryPathLabel" type="Label" parent="VBoxContainer/Content/GridContainer" unique_id=1516523054] visible = false layout_mode = 2 text = "Inventory path:" [node name="InventoryPath" type="Label" parent="VBoxContainer/Content/GridContainer" unique_id=692354482] visible = false layout_mode = 2 text = "res://" [node name="ChangePathButton" type="Button" parent="VBoxContainer/Content/GridContainer" unique_id=216018542] visible = false layout_mode = 2 text = "Change Inventory Path" [node name="BlankItem7" type="Control" parent="VBoxContainer/Content/GridContainer" unique_id=816977697] visible = false layout_mode = 2 [node name="Buttons" type="MarginContainer" parent="VBoxContainer" unique_id=317694956] layout_mode = 2 mouse_filter = 2 theme_override_constants/margin_bottom = 10 [node name="CenterContainer" type="CenterContainer" parent="VBoxContainer/Buttons" unique_id=832093664] layout_mode = 2 [node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer/Buttons/CenterContainer" unique_id=308534454] layout_mode = 2 [node name="CreateButton" type="Button" parent="VBoxContainer/Buttons/CenterContainer/HBoxContainer" unique_id=103034756] layout_mode = 2 text = "Create Object" [node name="Spacer" type="Control" parent="VBoxContainer/Buttons/CenterContainer/HBoxContainer" unique_id=635434229] custom_minimum_size = Vector2(20, 0) layout_mode = 2 [node name="ClearButton" type="Button" parent="VBoxContainer/Buttons/CenterContainer/HBoxContainer" unique_id=1557616416] layout_mode = 2 text = "Clear All" [node name="Spacer2" type="Control" parent="VBoxContainer/Buttons/CenterContainer/HBoxContainer" unique_id=959146374] custom_minimum_size = Vector2(20, 0) layout_mode = 2 [node name="ExitButton" type="Button" parent="VBoxContainer/Buttons/CenterContainer/HBoxContainer" unique_id=1012963769] layout_mode = 2 text = "Main Menu" [node name="LoadObjectGraphic" type="CenterContainer" parent="." unique_id=2039551690] visible = false layout_mode = 2 mouse_filter = 2 [node name="LoadObjectFileDialog" type="FileDialog" parent="LoadObjectGraphic" unique_id=183617470] oversampling_override = 1.0 title = "Open a File" position = Vector2i(0, 36) file_mode = 0 filters = PackedStringArray("*.png", "*.bmp", "*.jpg", "*.jpeg", "*.webp", "*.tga") [node name="Windows" type="CenterContainer" parent="." unique_id=353631974] visible = false layout_mode = 2 [node name="ConfirmationDialog" type="ConfirmationDialog" parent="Windows" unique_id=739679800] dialog_text = "WARNING! If you continue you will lose the current object." [node name="ErrorDialog" type="AcceptDialog" parent="Windows" unique_id=1922609345] [node name="CreateCompleteDialog" type="AcceptDialog" parent="Windows" unique_id=605735600] [node name="FileDialog" type="FileDialog" parent="Windows" unique_id=1161118336] mode = 2 position = Vector2i(0, 36) [connection signal="toggled" from="VBoxContainer/Control/CenterContainer/HBoxContainer/BackgroundObjectCheckBox" to="." method="_on_BackgroundObjectCheckBox_toggled"] [connection signal="toggled" from="VBoxContainer/Control/CenterContainer/HBoxContainer/InventoryItemCheckBox" to="." method="_on_InventoryItemCheckBox_toggled"] [connection signal="text_changed" from="VBoxContainer/Content/GridContainer/ItemName" to="." method="background_on_ItemName_text_changed"] [connection signal="text_changed" from="VBoxContainer/Content/GridContainer/ItemGlobalID" to="." method="_on_ItemGlobalID_text_changed"] [connection signal="pressed" from="VBoxContainer/Content/GridContainer/StartsInteractiveCheckBox" to="." method="_on_StartsInteractiveCheckBox_pressed"] [connection signal="item_selected" from="VBoxContainer/Content/GridContainer/DefaultActionOption" to="." method="_on_DefaultActionOption_item_selected"] [connection signal="pressed" from="VBoxContainer/Content/GridContainer/ChangeImageButton" to="." method="load_button_pressed"] [connection signal="pressed" from="VBoxContainer/Content/GridContainer/ChangePathButton" to="." method="_on_ChangePathButton_pressed"] [connection signal="pressed" from="VBoxContainer/Buttons/CenterContainer/HBoxContainer/CreateButton" to="." method="_on_CreateButton_pressed"] [connection signal="pressed" from="VBoxContainer/Buttons/CenterContainer/HBoxContainer/ClearButton" to="." method="Item_on_ClearButton_pressed"] [connection signal="pressed" from="VBoxContainer/Buttons/CenterContainer/HBoxContainer/ExitButton" to="." method="Item_on_ExitButton_pressed"] [connection signal="file_selected" from="LoadObjectGraphic/LoadObjectFileDialog" to="." method="LoadObjectFileDialog_file_selected"] [connection signal="confirmed" from="Windows/ConfirmationDialog" to="." method="_on_ObjectConfirmationDialog_confirmed"] [connection signal="confirmed" from="Windows/CreateCompleteDialog" to="." method="_on_CreateCompleteDialog_confirmed"] [connection signal="dir_selected" from="Windows/FileDialog" to="." method="_on_FileDialog_dir_selected"]