From efc82d01a7c4351bf655d1f9eee7a9d877504751 Mon Sep 17 00:00:00 2001 From: monitor1394 Date: Mon, 24 May 2021 07:28:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D`Add=20Serie`=E9=9D=A2?= =?UTF-8?q?=E6=9D=BF=E4=B8=8A`Serie=20Name`=E4=B8=8D=E7=94=9F=E6=95=88?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98=20(#149)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/XCharts/CHANGELOG-EN.md | 9 +++++++-- Assets/XCharts/CHANGELOG.md | 1 + Assets/XCharts/Editor/Window/AddSerieEditor.cs | 5 +++-- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/Assets/XCharts/CHANGELOG-EN.md b/Assets/XCharts/CHANGELOG-EN.md index 26ab9394..fad5f2f5 100644 --- a/Assets/XCharts/CHANGELOG-EN.md +++ b/Assets/XCharts/CHANGELOG-EN.md @@ -34,8 +34,13 @@ ## master -* (2021.05.20) Add the `insertDataHead` parameter to `Serie` and `Axis` to control whether data is inserted into the head or tail -* (2021.05.18) Optimize chart creation under 'Editor' #147 +* (2021.05.24) Fixed an issue where `Serie Name` was not working on the `Add Serie` panel (#149) +* (2021.05.23) Added `TextStyle` `wrap` to set whether to wrap lines +* (2021.05.23) Added` axisLabel `to` autoAlign `whether to set alignment automatically +* (2021.05.23) Added `width` and `height` of `axisLabel` to support custom text length and width +* (2021.05.23) Added `Axis` `iconStyle` and `icons` to support setting coordinate Axis labels to display icons +* (2021.05.20) Added the `insertDataHead` parameter to `Serie` and `Axis` to control whether data is inserted into the head or tail +* (2021.05.18) Optimize chart creation under `Editor` #147 * (2021.05.16) Pull out the `Ganttchart` chart and provide it as an extension module * (2021.05.11) Added support for `VisualMap` to set color by `Piecewise` * (2021.05.09) Fixed an issue where `RingChart` could not set the background color of the ring #141 diff --git a/Assets/XCharts/CHANGELOG.md b/Assets/XCharts/CHANGELOG.md index 75a267ab..c99199c1 100644 --- a/Assets/XCharts/CHANGELOG.md +++ b/Assets/XCharts/CHANGELOG.md @@ -34,6 +34,7 @@ ## master +* (2021.05.24) 修复`Add Serie`面板上`Serie Name`不生效的问题 (#149) * (2021.05.23) 增加`TextStyle`的`wrap`设置是否自动换行 * (2021.05.23) 增加`AxisLabel`的`autoAlign`设置是否让系统自动设置对齐方式 * (2021.05.23) 增加`AxisLabel`的`width`和`height`支持自定义文本的长宽 diff --git a/Assets/XCharts/Editor/Window/AddSerieEditor.cs b/Assets/XCharts/Editor/Window/AddSerieEditor.cs index 08fe7bd8..28063193 100644 --- a/Assets/XCharts/Editor/Window/AddSerieEditor.cs +++ b/Assets/XCharts/Editor/Window/AddSerieEditor.cs @@ -15,11 +15,13 @@ namespace XCharts { public static BaseChart chart; private static AddSerieEditor window; + private static string serieName; + private SerieType serieType; - private string serieName; public static void ShowWindow() { + serieName = "serie" + (chart.series.Count + 1); window = GetWindow(); window.titleContent = new GUIContent("Add Serie"); window.minSize = new Vector2(350, window.minSize.y); @@ -42,7 +44,6 @@ namespace XCharts var iconRect = new Rect(5, 10, position.width - 10, EditorGUIUtility.singleLineHeight); serieType = (SerieType)EditorGUI.EnumPopup(iconRect, "Serie Type", serieType); iconRect.y += EditorGUIUtility.singleLineHeight + EditorGUIUtility.standardVerticalSpacing; - serieName = "serie" + (chart.series.Count + 1); serieName = EditorGUI.TextField(iconRect, "Serie Name", serieName); iconRect.y += EditorGUIUtility.singleLineHeight + EditorGUIUtility.standardVerticalSpacing; GUILayout.Space(iconRect.y + 5);