mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-17 22:10:11 +00:00
v2.2.2
This commit is contained in:
@@ -12,6 +12,7 @@ namespace XCharts
|
||||
{
|
||||
public class ChartLabel : ChartObject
|
||||
{
|
||||
private bool m_EmptyStringHideIcon = false;
|
||||
private bool m_LabelAutoSize = true;
|
||||
private float m_LabelPaddingLeftRight = 3f;
|
||||
private float m_LabelPaddingTopBottom = 3f;
|
||||
@@ -48,6 +49,8 @@ namespace XCharts
|
||||
}
|
||||
}
|
||||
|
||||
public bool emptyStringHideIcon { set { m_EmptyStringHideIcon = value; } }
|
||||
|
||||
public ChartLabel()
|
||||
{
|
||||
}
|
||||
@@ -179,6 +182,10 @@ namespace XCharts
|
||||
return sizeChange;
|
||||
}
|
||||
AdjustIconPos();
|
||||
if (m_EmptyStringHideIcon)
|
||||
{
|
||||
ChartHelper.SetActive(m_IconImage.gameObject, !string.IsNullOrEmpty(text));
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user