From a1d7b599b2e2fd15bc987fc003eb3d4febdb895a Mon Sep 17 00:00:00 2001 From: zhangaotian <8474238@qq.com> Date: Thu, 11 Jun 2026 14:16:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=B3=E5=8D=A1=E7=BC=96=E8=BE=91=E5=99=A8?= =?UTF-8?q?=20=E6=88=98=E6=97=97=E8=A7=A6=E5=8F=91=E5=8C=BA=E6=94=B9?= =?UTF-8?q?=E4=B8=BA=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Code/Scripts/GameWrapper/Level/LevelData.cs | 4 ++-- .../LevelEditor/LevelEditorWindow.EditorClass.cs | 13 ++++++++++++- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/ProjectNLD/Assets/Code/Scripts/GameWrapper/Level/LevelData.cs b/ProjectNLD/Assets/Code/Scripts/GameWrapper/Level/LevelData.cs index 7ad3d2a9b49..04dc2463bd0 100644 --- a/ProjectNLD/Assets/Code/Scripts/GameWrapper/Level/LevelData.cs +++ b/ProjectNLD/Assets/Code/Scripts/GameWrapper/Level/LevelData.cs @@ -146,7 +146,7 @@ namespace Gameplay.Level [HideInInspector] [LabelText("区域ID")] public int id; [HideInInspector] [LabelText("区域点位")] public List cellIndex = new List(); [LabelText("所属战旗ID")] public int flagID; - [LabelText("区域争夺触发区ID")] public int triggerAreaID; + [HideInInspector] [LabelText("区域争夺触发区ID")] public int triggerTaskID; [LabelText("占领时间")] public float captureTime; } @@ -623,7 +623,7 @@ namespace Gameplay.Level [HideInInspector] public List blockRegions = new(); /// - /// 防守区 + /// 触发区 /// [HideInInspector] public List defenseRegions = new(); diff --git a/ProjectNLD/Assets/Editor/LevelEditor/LevelEditorWindow.EditorClass.cs b/ProjectNLD/Assets/Editor/LevelEditor/LevelEditorWindow.EditorClass.cs index e327c989041..c455104f04a 100644 --- a/ProjectNLD/Assets/Editor/LevelEditor/LevelEditorWindow.EditorClass.cs +++ b/ProjectNLD/Assets/Editor/LevelEditor/LevelEditorWindow.EditorClass.cs @@ -1507,7 +1507,18 @@ public partial class LevelEditorWindow [Serializable] public class HoldFlagEditorInfo { - [HorizontalGroup("1")] [ReadOnly] public int id; + [HorizontalGroup("0")] [ReadOnly] public int id; + + [HorizontalGroup("1")] [LabelText("触发条件")] [ReadOnly] + public string triggerTask; + + [HorizontalGroup("1")] + [Button("搜索/选择触发条件", ButtonSizes.Small)] + private void OpenTriggerTaskSelector() + { + currWindow.ShowTaskSelector("选择触发条件", taskName => triggerTask = taskName, + taskID => info.triggerTaskID = taskID); + } [HorizontalGroup("2")] [LabelText("区域点位")] public List Positions;