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 Align m_Align = Align.Left;
private Image m_IconImage;
private bool m_Active = true;
public Image icon
{
@@ -188,9 +189,18 @@ namespace XCharts.Runtime
return transform.localPosition;
}
public override bool IsActive()
{
return m_Active;
}
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)
{