diff --git a/Assets/Editor/BFOthersTools/BoardEditorTools/BoardEditorWindow.cs b/Assets/Editor/BFOthersTools/BoardEditorTools/BoardEditorWindow.cs index 124f5856b..c40f47066 100644 --- a/Assets/Editor/BFOthersTools/BoardEditorTools/BoardEditorWindow.cs +++ b/Assets/Editor/BFOthersTools/BoardEditorTools/BoardEditorWindow.cs @@ -29,6 +29,7 @@ namespace BFEditor string boardFiledName = "board"; string boardEdgeFiledName = "grid_edge"; string randomTypeStr = ""; + string boardEdgeStr = ""; int curIndex = 1; int maxRow = 7; Dictionary> boardGridTypeDict = new Dictionary>(); @@ -341,6 +342,45 @@ namespace BFEditor boardDict[curIndex] = ja; } GUILayout.EndHorizontal(); + GUILayout.EndVertical(); + GUILayout.EndArea(); + GUILayout.BeginArea(new Rect(730, 650, 500, 100)); + GUILayout.BeginVertical(); + GUILayout.Label("棋盘边缘元素"); + boardEdgeStr = GUILayout.TextField(boardEdgeStr, GUILayout.Width(500), GUILayout.Height(300)); + if(GUILayout.Button("重新加载边缘元素")) + { + string[] units = boardEdgeStr.Split('{'); + List edgeList = new List(); + for (int i = 0; i < units.Length; i++) + { + string formatStr = units[i].Replace("[", "").Replace("]", "").Replace(" ", "").Replace("}", ""); + string[] unitList = formatStr.Split(','); + if (unitList.Length >= 3) + { + string str = "["; + for(int j = 0; j < 3; j++) + { + str = str + unitList[j]; + if (j != 2) + { + str = str + ","; + } + } + str = str + "]"; + edgeList.Add(str); + } + } + + JArray ja = new JArray(); + for (int i = 0; i < edgeList.Count; i++) + { + JArray unit = (JArray)JsonConvert.DeserializeObject(edgeList[i]); + ja.Add(unit); + } + edgeDict[curIndex] = ja; + } + GUILayout.EndVertical(); GUILayout.EndArea(); if(GUI.Button(new Rect(1050, 10, 100, 30), "导出到Excel")) { diff --git a/Assets/lua/app/module/battle/controller/battle_controller_full_moon_skin.lua.bytes b/Assets/lua/app/module/battle/controller/battle_controller_full_moon_skin.lua.bytes index 32702d2db..299af53b1 100644 Binary files a/Assets/lua/app/module/battle/controller/battle_controller_full_moon_skin.lua.bytes and b/Assets/lua/app/module/battle/controller/battle_controller_full_moon_skin.lua.bytes differ