This commit is contained in:
monitor1394
2022-12-30 22:30:42 +08:00
parent d90a0d69b2
commit a4aabb5bbe
3 changed files with 16 additions and 6 deletions

View File

@@ -21,6 +21,7 @@ namespace XCharts.Runtime
private Vector3 m_IconOffest; private Vector3 m_IconOffest;
private Align m_Align = Align.Left; private Align m_Align = Align.Left;
private Image m_IconImage; private Image m_IconImage;
private bool m_Active = true;
public Image icon public Image icon
{ {
@@ -188,9 +189,18 @@ namespace XCharts.Runtime
return transform.localPosition; return transform.localPosition;
} }
public override bool IsActive()
{
return m_Active;
}
public void SetActive(bool flag) public void SetActive(bool flag)
{ {
ChartHelper.SetActive(gameObject, flag); if (m_Active != flag)
{
m_Active = flag;
ChartHelper.SetActive(gameObject, flag);
}
} }
public void SetTextActive(bool flag) public void SetTextActive(bool flag)
{ {

View File

@@ -20,8 +20,8 @@ namespace XCharts.Runtime
[ExecuteInEditMode] [ExecuteInEditMode]
public static class XChartsMgr public static class XChartsMgr
{ {
public static readonly string version = "3.5.0"; public static readonly string version = "3.6.0";
public static readonly int versionDate = 20221201; public static readonly int versionDate = 20230201;
public static string fullVersion { get { return version + "-" + versionDate; } } public static string fullVersion { get { return version + "-" + versionDate; } }
internal static List<BaseChart> chartList = new List<BaseChart>(); internal static List<BaseChart> chartList = new List<BaseChart>();

View File

@@ -1,9 +1,9 @@
{ {
"name": "com.monitor1394.xcharts", "name": "com.monitor1394.xcharts",
"displayName": "XCharts", "displayName": "XCharts",
"version": "3.5.0", "version": "3.6.0",
"date": "20221201", "date": "20230201",
"checkdate": "20221101", "checkdate": "20230201",
"desc": "如果 XCharts 对您有帮助,希望您能在 Github 上点 Star 支持,非常感谢!", "desc": "如果 XCharts 对您有帮助,希望您能在 Github 上点 Star 支持,非常感谢!",
"unity": "2018.3", "unity": "2018.3",
"description": "A charting and data visualization library for Unity.", "description": "A charting and data visualization library for Unity.",