80 lines
3.3 KiB
Text
80 lines
3.3 KiB
Text
[gd_scene load_steps=4 format=3 uid="uid://dkq82o31vr3i2"]
|
|
|
|
[ext_resource type="Script" uid="uid://dkgxtig5fwdgi" path="res://addons/pvzadventure/scripts/AdventureEditor.cs" id="1_go5yu"]
|
|
[ext_resource type="Script" uid="uid://binuuattefn7d" path="res://addons/pvzadventure/scripts/FileButton.cs" id="2_d5hwn"]
|
|
[ext_resource type="Script" uid="uid://b0hl4ap18wbb2" path="res://addons/pvzadventure/scripts/AdventureResourceInspector.cs" id="3_d5hwn"]
|
|
|
|
[node name="AdventureEditor" type="MarginContainer"]
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
size_flags_horizontal = 3
|
|
size_flags_vertical = 3
|
|
theme_override_constants/margin_left = 5
|
|
theme_override_constants/margin_top = 5
|
|
theme_override_constants/margin_right = 5
|
|
theme_override_constants/margin_bottom = 5
|
|
script = ExtResource("1_go5yu")
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="."]
|
|
layout_mode = 2
|
|
|
|
[node name="StatusBar" type="PanelContainer" parent="VBoxContainer"]
|
|
layout_mode = 2
|
|
|
|
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer/StatusBar"]
|
|
layout_mode = 2
|
|
|
|
[node name="FileButton" type="MenuButton" parent="VBoxContainer/StatusBar/HBoxContainer"]
|
|
layout_mode = 2
|
|
text = "File"
|
|
switch_on_hover = true
|
|
item_count = 3
|
|
popup/item_0/text = "New"
|
|
popup/item_0/id = 0
|
|
popup/item_1/text = "Save"
|
|
popup/item_1/id = 1
|
|
popup/item_2/text = "Open"
|
|
popup/item_2/id = 2
|
|
script = ExtResource("2_d5hwn")
|
|
|
|
[node name="FileDialog" type="FileDialog" parent="VBoxContainer/StatusBar/HBoxContainer/FileButton"]
|
|
|
|
[node name="WorkArea" type="HSplitContainer" parent="VBoxContainer"]
|
|
layout_mode = 2
|
|
size_flags_vertical = 3
|
|
split_offset = 500
|
|
|
|
[node name="PanelContainer" type="PanelContainer" parent="VBoxContainer/WorkArea"]
|
|
layout_mode = 2
|
|
|
|
[node name="Inspector" type="VSplitContainer" parent="VBoxContainer/WorkArea"]
|
|
layout_mode = 2
|
|
|
|
[node name="ResourceInspector" type="VBoxContainer" parent="VBoxContainer/WorkArea/Inspector"]
|
|
layout_mode = 2
|
|
size_flags_vertical = 3
|
|
script = ExtResource("3_d5hwn")
|
|
|
|
[node name="Tree" type="Tree" parent="VBoxContainer/WorkArea/Inspector/ResourceInspector"]
|
|
custom_minimum_size = Vector2(0, 100)
|
|
layout_mode = 2
|
|
size_flags_vertical = 3
|
|
hide_folding = true
|
|
enable_recursive_folding = false
|
|
|
|
[node name="ControlButtons" type="HBoxContainer" parent="VBoxContainer/WorkArea/Inspector/ResourceInspector"]
|
|
layout_mode = 2
|
|
size_flags_vertical = 8
|
|
|
|
[node name="NewButton" type="Button" parent="VBoxContainer/WorkArea/Inspector/ResourceInspector/ControlButtons"]
|
|
layout_mode = 2
|
|
text = "New"
|
|
|
|
[connection signal="ResourceChanged" from="." to="VBoxContainer/WorkArea/Inspector/ResourceInspector" method="Refresh"]
|
|
[connection signal="Refreshed" from="VBoxContainer/WorkArea/Inspector/ResourceInspector" to="." method="Save"]
|
|
[connection signal="button_clicked" from="VBoxContainer/WorkArea/Inspector/ResourceInspector/Tree" to="VBoxContainer/WorkArea/Inspector/ResourceInspector" method="OnTreeButtonClicked"]
|
|
[connection signal="item_selected" from="VBoxContainer/WorkArea/Inspector/ResourceInspector/Tree" to="VBoxContainer/WorkArea/Inspector/ResourceInspector" method="OnItemSelected"]
|
|
[connection signal="pressed" from="VBoxContainer/WorkArea/Inspector/ResourceInspector/ControlButtons/NewButton" to="VBoxContainer/WorkArea/Inspector/ResourceInspector" method="OnNewButtonPressed"]
|