diff --git a/ColdMint.Traveler.csproj b/ColdMint.Traveler.csproj index 8fddecf..49b333a 100644 --- a/ColdMint.Traveler.csproj +++ b/ColdMint.Traveler.csproj @@ -1,13 +1,13 @@ - - - net6.0 - net7.0 - net8.0 - true - ColdMint - enable - - - - + + + net6.0 + net7.0 + net8.0 + true + ColdMint + enable + + + + \ No newline at end of file diff --git a/locals/UI.csv b/locals/UI.csv index 8aaf0d3..27e8618 100644 --- a/locals/UI.csv +++ b/locals/UI.csv @@ -18,4 +18,8 @@ close,关闭,Close,閉じます name,名称,Name,めいしょう describe,描述,Describe,ないよう creation,创建,Creation,創建 -default_room_name,房间{0},Room{0},部屋{0}です \ No newline at end of file +default_room_name,房间{0},Room{0},部屋{0}です +room_template_collection_prompt,房间模板集(每一行被认为是一条房间模板地址。),Room template set (Each row is considered to be one room template address.),お部屋テンプレートセット(各行がお部屋テンプレートアドレスとされています。) +error_specifying_room_template_line,位于{0}错误,文件不存在。,"Located at {0} error, file does not exist.",{0}エラーに位置し、ファイルは存在しません。 +line_errors_must_start_with_res,位于{0}错误,必须以res://开头。,"Located at {0} error, must start with res://.",{0}エラーに位置し、res://で始めなければなりません。 +display_current_page_data,显示当前页面数据,Displays the current page data,現在のページデータを表示します \ No newline at end of file diff --git a/locals/UI.en.translation b/locals/UI.en.translation index 91a4ec6..63f638f 100644 Binary files a/locals/UI.en.translation and b/locals/UI.en.translation differ diff --git a/locals/UI.jp.translation b/locals/UI.jp.translation index 4d09760..4582fc9 100644 Binary files a/locals/UI.jp.translation and b/locals/UI.jp.translation differ diff --git a/locals/UI.zh.translation b/locals/UI.zh.translation index 4acfcee..e18f24e 100644 Binary files a/locals/UI.zh.translation and b/locals/UI.zh.translation differ diff --git a/scenes/LevelGraphEditor.tscn b/scenes/LevelGraphEditor.tscn index 223f54b..544e7cb 100644 --- a/scenes/LevelGraphEditor.tscn +++ b/scenes/LevelGraphEditor.tscn @@ -63,6 +63,22 @@ 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 @@ -118,6 +134,13 @@ 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 @@ -129,6 +152,10 @@ offset_right = -15.0 offset_bottom = 47.0 grow_horizontal = 0 +[node name="DisplayCurrentPageData" type="Button" parent="HBoxContainer"] +layout_mode = 2 +text = "display_current_page_data" + [node name="ShowCreateRoomPanelButton" type="Button" parent="HBoxContainer"] layout_mode = 2 text = "create_room" diff --git a/scripts/levelGraphEditor/ConnectionData.cs b/scripts/levelGraphEditor/ConnectionData.cs new file mode 100644 index 0000000..b256880 --- /dev/null +++ b/scripts/levelGraphEditor/ConnectionData.cs @@ -0,0 +1,9 @@ +namespace ColdMint.scripts.levelGraphEditor; + +public class ConnectionData +{ + public IRoomNodeData? From { get; set; } + public IRoomNodeData? To { get; set; } + public int FromPort { get; set; } + public int ToPort { get; set; } +} \ No newline at end of file diff --git a/scripts/levelGraphEditor/LevelGraphEditorSaveData.cs b/scripts/levelGraphEditor/LevelGraphEditorSaveData.cs new file mode 100644 index 0000000..74c98cc --- /dev/null +++ b/scripts/levelGraphEditor/LevelGraphEditorSaveData.cs @@ -0,0 +1,12 @@ +using System.Collections.Generic; + +namespace ColdMint.scripts.levelGraphEditor; + +/// +/// Level map editor saves data +/// 关卡图编辑器保存的数据 +/// +public class LevelGraphEditorSaveData +{ + public List? ConnectionData { get; set; } +} \ No newline at end of file diff --git a/scripts/levelGraphEditor/RoomNode.cs b/scripts/levelGraphEditor/RoomNode.cs index 8964274..a178872 100644 --- a/scripts/levelGraphEditor/RoomNode.cs +++ b/scripts/levelGraphEditor/RoomNode.cs @@ -16,11 +16,10 @@ public partial class RoomNode : GraphNode Title = value.Title; if (value.Description.Length == 0) { - _describeLabel.Visible = false; + _describeLabel.Text = string.Empty; } else { - _describeLabel.Visible = true; _describeLabel.Text = value.Description; } @@ -33,5 +32,4 @@ public partial class RoomNode : GraphNode base._Ready(); _describeLabel = GetNode