增加chartName属性可指定图表的别称

This commit is contained in:
monitor1394
2020-05-18 07:36:01 +08:00
parent f23347a86e
commit 008e2210d4
9 changed files with 64 additions and 57 deletions

View File

@@ -27,15 +27,16 @@ namespace XCharts
get { return m_ChartName; }
set
{
if (XChartsMgr.Instance.ContainsChart(value)) Debug.LogError("chartName repeated:" + value);
if (!string.IsNullOrEmpty(value) && XChartsMgr.Instance.ContainsChart(value))
{
Debug.LogError("chartName repeated:" + value);
}
else
{
m_ChartName = value;
m_ChartUUID = value;
}
}
}
public string chartUUID { get { return m_ChartUUID; } }
/// <summary>
/// The theme info.
/// </summary>