mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-24 09:50:15 +00:00
3.0
This commit is contained in:
@@ -28,6 +28,7 @@ namespace XCharts.Editor
|
|||||||
private bool m_CheckWarning = false;
|
private bool m_CheckWarning = false;
|
||||||
private int m_LastComponentCount = 0;
|
private int m_LastComponentCount = 0;
|
||||||
private int m_LastSerieCount = 0;
|
private int m_LastSerieCount = 0;
|
||||||
|
private string m_VersionString = "";
|
||||||
private StringBuilder sb = new StringBuilder();
|
private StringBuilder sb = new StringBuilder();
|
||||||
MainComponentListEditor m_ComponentList;
|
MainComponentListEditor m_ComponentList;
|
||||||
SerieListEditor m_SerieList;
|
SerieListEditor m_SerieList;
|
||||||
@@ -51,6 +52,10 @@ namespace XCharts.Editor
|
|||||||
RefreshSeries();
|
RefreshSeries();
|
||||||
m_SerieList = new SerieListEditor(this);
|
m_SerieList = new SerieListEditor(this);
|
||||||
m_SerieList.Init(m_Chart, serializedObject, m_Series);
|
m_SerieList.Init(m_Chart, serializedObject, m_Series);
|
||||||
|
|
||||||
|
m_VersionString = "v" + XChartsMgr.fullVersion;
|
||||||
|
if (m_EnableTextMeshPro.boolValue)
|
||||||
|
m_VersionString += "-tmp";
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<SerializedProperty> RefreshComponent()
|
public List<SerializedProperty> RefreshComponent()
|
||||||
@@ -165,11 +170,7 @@ namespace XCharts.Editor
|
|||||||
|
|
||||||
private void ShowVersion()
|
private void ShowVersion()
|
||||||
{
|
{
|
||||||
sb.Length = 0;
|
EditorGUILayout.HelpBox(m_VersionString, MessageType.None);
|
||||||
sb.AppendFormat("v{0}", XChartsMgr.fullVersion);
|
|
||||||
if(m_EnableTextMeshPro.boolValue)
|
|
||||||
sb.Append("-tmp");
|
|
||||||
EditorGUILayout.HelpBox(sb.ToString(), MessageType.None);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void AddComponent()
|
private void AddComponent()
|
||||||
|
|||||||
@@ -96,21 +96,20 @@
|
|||||||
- XCharts2.0 进入维护阶段,后续只修复严重bug理论上不再加新功能。
|
- XCharts2.0 进入维护阶段,后续只修复严重bug理论上不再加新功能。
|
||||||
- XCharts 理论上支持Unity 5.6及以上版本,但由于版本测试有限难免疏漏,发现版本兼容问题可提Issue。
|
- XCharts 理论上支持Unity 5.6及以上版本,但由于版本测试有限难免疏漏,发现版本兼容问题可提Issue。
|
||||||
- XCharts 内置图表都为常见的图表,可以免费使用;扩展图表大部分为不常使用的图表,有需要的可付费获取,感谢对XCharts的支持。
|
- XCharts 内置图表都为常见的图表,可以免费使用;扩展图表大部分为不常使用的图表,有需要的可付费获取,感谢对XCharts的支持。
|
||||||
|
- 本仓库只包含XCharts源码,不包含Demo示例部分。需要查看Demo示例请到[XCharts-Demo](https://github.com/XCharts-Team/XCharts-Demo)
|
||||||
|
|
||||||
## 截图
|
## 截图
|
||||||
|
|
||||||
[XCharts Demo 项目](https://github.com/XCharts-Team/XCharts-Demo)
|
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
更多效果请到 [XCharts-Demo](https://github.com/XCharts-Team/XCharts-Demo) 查看
|
||||||
|
|
||||||
## 使用
|
## 使用
|
||||||
|
|
||||||
[XCharts教程:5分钟上手教程](Documentation/XChartsTutorial01-ZH.md)
|
[XCharts教程:5分钟上手教程](Documentation/XChartsTutorial01-ZH.md)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## 日志
|
## 日志
|
||||||
|
|
||||||
[更新日志](CHANGELOG.md)
|
[更新日志](CHANGELOG.md)
|
||||||
|
|||||||
@@ -854,6 +854,9 @@ namespace XCharts.Runtime
|
|||||||
|
|
||||||
private void ResetSeriesIndex()
|
private void ResetSeriesIndex()
|
||||||
{
|
{
|
||||||
|
#if UNITY_EDITOR && UNITY_2019_1_OR_NEWER
|
||||||
|
UnityEditor.EditorUtility.SetDirty(this);
|
||||||
|
#endif
|
||||||
for (int i = 0; i < m_Series.Count; i++)
|
for (int i = 0; i < m_Series.Count; i++)
|
||||||
{
|
{
|
||||||
m_Series[i].index = i;
|
m_Series[i].index = i;
|
||||||
|
|||||||
@@ -353,7 +353,6 @@ namespace XCharts.Runtime
|
|||||||
subTitle.tmpFont = tmpFont;
|
subTitle.tmpFont = tmpFont;
|
||||||
legend.tmpFont = tmpFont;
|
legend.tmpFont = tmpFont;
|
||||||
axis.tmpFont = tmpFont;
|
axis.tmpFont = tmpFont;
|
||||||
gauge.tmpFont = tmpFont;
|
|
||||||
tooltip.tmpFont = tmpFont;
|
tooltip.tmpFont = tmpFont;
|
||||||
dataZoom.tmpFont = tmpFont;
|
dataZoom.tmpFont = tmpFont;
|
||||||
visualMap.tmpFont = tmpFont;
|
visualMap.tmpFont = tmpFont;
|
||||||
|
|||||||
Reference in New Issue
Block a user