74 lines
2.7 KiB
Plaintext
74 lines
2.7 KiB
Plaintext
[gd_scene load_steps=4 format=3 uid="uid://b3ypva4l8wfoh"]
|
|
|
|
[ext_resource type="Script" uid="uid://bngqk8kje5m2k" path="res://LearnTree.cs" id="1_brfkd"]
|
|
[ext_resource type="Script" uid="uid://dxkhiggkgqs6" path="res://ItemInfoPanel.cs" id="2_gvmkm"]
|
|
[ext_resource type="Script" uid="uid://hbu73fxqen34" path="res://FileDirSelector.cs" id="2_nnvrw"]
|
|
|
|
[node name="Control" type="Control"]
|
|
layout_mode = 3
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="."]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
|
|
[node name="Toolbar" type="HBoxContainer" parent="VBoxContainer"]
|
|
layout_mode = 2
|
|
|
|
[node name="Button" type="Button" parent="VBoxContainer/Toolbar"]
|
|
layout_mode = 2
|
|
size_flags_vertical = 4
|
|
text = "打开文件夹"
|
|
|
|
[node name="HSplitContainer" type="HSplitContainer" parent="VBoxContainer"]
|
|
layout_mode = 2
|
|
size_flags_vertical = 3
|
|
|
|
[node name="Tree" type="Tree" parent="VBoxContainer/HSplitContainer" node_paths=PackedStringArray("_dirSelector", "_itemInfoPanel")]
|
|
custom_minimum_size = Vector2(700, 0)
|
|
layout_mode = 2
|
|
allow_search = false
|
|
hide_root = true
|
|
select_mode = 2
|
|
script = ExtResource("1_brfkd")
|
|
_dirSelector = NodePath("../../../FileDirDialog")
|
|
_itemInfoPanel = NodePath("../VBoxContainer/ItemInfoPanel")
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="VBoxContainer/HSplitContainer"]
|
|
layout_mode = 2
|
|
|
|
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer/HSplitContainer/VBoxContainer"]
|
|
layout_mode = 2
|
|
|
|
[node name="Add" type="Button" parent="VBoxContainer/HSplitContainer/VBoxContainer/HBoxContainer"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 0
|
|
text = "添加字段"
|
|
|
|
[node name="Remove" type="Button" parent="VBoxContainer/HSplitContainer/VBoxContainer/HBoxContainer"]
|
|
layout_mode = 2
|
|
text = "移除选中"
|
|
|
|
[node name="ItemInfoPanel" type="Tree" parent="VBoxContainer/HSplitContainer/VBoxContainer"]
|
|
layout_mode = 2
|
|
size_flags_vertical = 3
|
|
allow_search = false
|
|
hide_root = true
|
|
select_mode = 2
|
|
script = ExtResource("2_gvmkm")
|
|
|
|
[node name="FileDirDialog" type="FileDialog" parent="."]
|
|
script = ExtResource("2_nnvrw")
|
|
|
|
[connection signal="pressed" from="VBoxContainer/Toolbar/Button" to="VBoxContainer/HSplitContainer/Tree" method="Open"]
|
|
[connection signal="pressed" from="VBoxContainer/HSplitContainer/VBoxContainer/HBoxContainer/Add" to="VBoxContainer/HSplitContainer/VBoxContainer/ItemInfoPanel" method="AddKeyValue"]
|
|
[connection signal="pressed" from="VBoxContainer/HSplitContainer/VBoxContainer/HBoxContainer/Remove" to="VBoxContainer/HSplitContainer/VBoxContainer/ItemInfoPanel" method="RemoveKeyValue"]
|