Traveller/scenes/LevelGraphEditor.tscn
Cold-Mint 2e64f57749
Support for saving node data to json files.
支持将节点数据转存为json文件了。
2024-05-15 21:52:07 +08:00

242 lines
5.4 KiB
Plaintext

[gd_scene load_steps=2 format=3 uid="uid://ckl23uwxrjat4"]
[ext_resource type="Script" path="res://scripts/loader/uiLoader/LevelGraphEditorLoader.cs" id="1_g1axq"]
[node name="LevelGraphEditor" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_g1axq")
[node name="GraphEdit" type="GraphEdit" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = 12.0
offset_top = 52.0
offset_right = -16.0
offset_bottom = -13.0
grow_horizontal = 2
grow_vertical = 2
show_grid = false
minimap_enabled = false
show_minimap_button = false
[node name="Label" type="Label" parent="."]
layout_mode = 0
offset_left = 11.0
offset_top = 7.0
offset_right = 143.0
offset_bottom = 32.0
text = "level_graph_editor"
[node name="CreateOrEditorPanel" type="Panel" parent="."]
visible = false
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = 15.0
offset_top = 44.0
offset_right = -16.0
offset_bottom = -15.0
grow_horizontal = 2
grow_vertical = 2
[node name="Label" type="Label" parent="CreateOrEditorPanel"]
layout_mode = 1
offset_left = 10.0
offset_top = 13.0
offset_right = 97.0
offset_bottom = 38.0
text = "create_room"
[node name="Label3" type="Label" parent="CreateOrEditorPanel"]
layout_mode = 1
offset_left = 12.0
offset_top = 106.0
offset_right = 72.0
offset_bottom = 131.0
text = "describe"
[node name="Label4" type="Label" parent="CreateOrEditorPanel"]
layout_mode = 1
offset_left = 15.0
offset_top = 152.0
offset_right = 75.0
offset_bottom = 177.0
text = "room_template_collection_prompt"
[node name="RoomTemplateTipsLabel" type="Label" parent="CreateOrEditorPanel"]
layout_mode = 1
offset_left = 18.0
offset_top = 319.0
offset_right = 265.0
offset_bottom = 344.0
text = "errorTip"
[node name="RoomNameLineEdit" type="LineEdit" parent="CreateOrEditorPanel"]
layout_mode = 1
anchors_preset = 10
anchor_right = 1.0
offset_left = 100.0
offset_top = 59.0
offset_right = -8.0
offset_bottom = 92.0
grow_horizontal = 2
[node name="RoomDescriptionLineEdit" type="LineEdit" parent="CreateOrEditorPanel"]
layout_mode = 1
anchors_preset = 10
anchor_right = 1.0
offset_left = 100.0
offset_top = 104.0
offset_right = -8.0
offset_bottom = 137.0
grow_horizontal = 2
[node name="HideCreateRoomPanelButton" type="Button" parent="CreateOrEditorPanel"]
layout_mode = 1
anchors_preset = 1
anchor_left = 1.0
anchor_right = 1.0
offset_left = -57.0
offset_top = 6.0
offset_right = -11.0
offset_bottom = 39.0
grow_horizontal = 0
text = "close"
[node name="Label2" type="Label" parent="CreateOrEditorPanel"]
layout_mode = 1
offset_left = 13.0
offset_top = 60.0
offset_right = 48.0
offset_bottom = 85.0
text = "name"
[node name="CreateRoomButton" type="Button" parent="CreateOrEditorPanel"]
layout_mode = 1
anchors_preset = 3
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -80.0
offset_top = -46.0
offset_right = -13.0
offset_bottom = -13.0
grow_horizontal = 0
grow_vertical = 0
text = "creation"
[node name="RoomTemplateCollectionTextEdit" type="TextEdit" parent="CreateOrEditorPanel"]
layout_mode = 0
offset_left = 16.0
offset_top = 187.0
offset_right = 1111.0
offset_bottom = 303.0
[node name="HBoxContainer" type="HBoxContainer" parent="."]
layout_mode = 1
anchors_preset = 1
anchor_left = 1.0
anchor_right = 1.0
offset_left = -160.0
offset_top = 4.0
offset_right = -15.0
offset_bottom = 47.0
grow_horizontal = 0
[node name="OpenExportFolderButton" type="Button" parent="HBoxContainer"]
layout_mode = 2
text = "open_the_export_directory"
[node name="SaveButton" type="Button" parent="HBoxContainer"]
layout_mode = 2
text = "save"
[node name="ShowCreateRoomPanelButton" type="Button" parent="HBoxContainer"]
layout_mode = 2
text = "create_room"
[node name="ReturnButton" type="Button" parent="HBoxContainer"]
layout_mode = 2
text = "close"
[node name="SaveOrloadPanel" type="Panel" parent="."]
visible = false
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = 232.0
offset_top = 202.0
offset_right = -121.0
offset_bottom = -155.0
grow_horizontal = 2
grow_vertical = 2
[node name="Label" type="Label" parent="SaveOrloadPanel"]
layout_mode = 1
anchors_preset = 5
anchor_left = 0.5
anchor_right = 0.5
offset_left = -18.5
offset_top = 15.0
offset_right = 21.5
offset_bottom = 40.0
grow_horizontal = 2
text = "save"
[node name="LineEdit" type="LineEdit" parent="SaveOrloadPanel"]
layout_mode = 1
anchors_preset = 14
anchor_top = 0.5
anchor_right = 1.0
anchor_bottom = 0.5
offset_left = 18.0
offset_top = -5.0
offset_right = -18.0
offset_bottom = 28.0
grow_horizontal = 2
grow_vertical = 2
[node name="Label2" type="Label" parent="SaveOrloadPanel"]
layout_mode = 1
anchors_preset = 4
anchor_top = 0.5
anchor_bottom = 0.5
offset_left = 20.0
offset_top = -38.0
offset_right = 80.0
offset_bottom = -13.0
grow_vertical = 2
text = "filename"
[node name="HBoxContainer" type="HBoxContainer" parent="SaveOrloadPanel"]
layout_mode = 1
anchors_preset = 3
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -117.0
offset_top = -50.0
offset_right = -19.0
offset_bottom = -10.0
grow_horizontal = 0
grow_vertical = 0
[node name="CancelButton" type="Button" parent="SaveOrloadPanel/HBoxContainer"]
layout_mode = 2
text = "cancel"
[node name="ActionButton" type="Button" parent="SaveOrloadPanel/HBoxContainer"]
layout_mode = 2
text = "save"