mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-17 05:50:09 +00:00
修复Tooltop的第一个ContentLabelStyle设置color无效的问题
This commit is contained in:
@@ -70,7 +70,7 @@ namespace XCharts.Runtime
|
||||
#if dUI_TextMeshPro
|
||||
if (m_TMPText != null) m_TMPText.fontSize = fontSize;
|
||||
#else
|
||||
if (m_Text != null) m_Text.fontSize = (int) fontSize;
|
||||
if (m_Text != null) m_Text.fontSize = (int)fontSize;
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -104,6 +104,16 @@ namespace XCharts.Runtime
|
||||
#endif
|
||||
}
|
||||
|
||||
public Color GetColor()
|
||||
{
|
||||
#if dUI_TextMeshPro
|
||||
if (m_TMPText != null) return m_TMPText.color;
|
||||
#else
|
||||
if (m_Text != null) return m_Text.color;
|
||||
#endif
|
||||
return Color.clear;
|
||||
}
|
||||
|
||||
public void SetLineSpacing(float lineSpacing)
|
||||
{
|
||||
#if dUI_TextMeshPro
|
||||
|
||||
Reference in New Issue
Block a user