From 26a12f7a33b2da359adaf80e72f87c3be627c1ba Mon Sep 17 00:00:00 2001 From: monitor1394 Date: Thu, 1 Jul 2021 07:35:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B4=E7=90=86=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Editor/PropertyDrawers/LineStyleDrawer.cs | 2 +- Editor/Utility/XChartsBuild.cs | 2 +- Runtime/Internal/BaseChart.cs | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Editor/PropertyDrawers/LineStyleDrawer.cs b/Editor/PropertyDrawers/LineStyleDrawer.cs index 378e3157..24cd12f8 100644 --- a/Editor/PropertyDrawers/LineStyleDrawer.cs +++ b/Editor/PropertyDrawers/LineStyleDrawer.cs @@ -5,7 +5,6 @@ /* */ /************************************************/ -using System.Collections.Generic; using UnityEditor; using UnityEngine; @@ -26,6 +25,7 @@ namespace XCharts PropertyField(prop, "m_ToColor"); PropertyField(prop, "m_ToColor2"); PropertyField(prop, "m_Width"); + PropertyField(prop, "m_Length"); PropertyField(prop, "m_Opacity"); --EditorGUI.indentLevel; } diff --git a/Editor/Utility/XChartsBuild.cs b/Editor/Utility/XChartsBuild.cs index 0f589bce..cf8b7bde 100644 --- a/Editor/Utility/XChartsBuild.cs +++ b/Editor/Utility/XChartsBuild.cs @@ -13,7 +13,7 @@ namespace XCharts [System.Obsolete] public class XChartsBuild : IPreprocessBuild, IPostprocessBuild { - public int callbackOrder => 1; + public int callbackOrder { get { return 1; } } public void OnPostprocessBuild(BuildTarget target, string path) { diff --git a/Runtime/Internal/BaseChart.cs b/Runtime/Internal/BaseChart.cs index 11285af5..4f42cca2 100644 --- a/Runtime/Internal/BaseChart.cs +++ b/Runtime/Internal/BaseChart.cs @@ -172,11 +172,11 @@ namespace XCharts return null; } - internal void RefreshBasePainter() + public void RefreshBasePainter() { m_Painter.Refresh(); } - internal void RefreshTopPainter() + public void RefreshTopPainter() { m_PainterTop.Refresh(); } @@ -201,7 +201,7 @@ namespace XCharts } } - internal void SetPainterActive(int index, bool flag) + public void SetPainterActive(int index, bool flag) { var painter = GetPainter(index); if (painter == null) return;