mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-23 09:20:08 +00:00
3.0 - bar chart
This commit is contained in:
@@ -74,7 +74,7 @@ namespace XCharts
|
||||
|
||||
public bool TryGetValue(ref float value, ref bool interacting, float animationDuration = 250)
|
||||
{
|
||||
if (!m_ValueEnable || m_PreviousValue == 0)
|
||||
if (!IsValueEnable() || m_PreviousValue == 0)
|
||||
return false;
|
||||
if (m_UpdateFlag)
|
||||
{
|
||||
@@ -99,7 +99,7 @@ namespace XCharts
|
||||
|
||||
public bool TryGetColor(ref Color32 color, ref bool interacting, float animationDuration = 250)
|
||||
{
|
||||
if (!m_ValueEnable)
|
||||
if (!IsValueEnable())
|
||||
return false;
|
||||
if (m_UpdateFlag)
|
||||
{
|
||||
@@ -124,7 +124,7 @@ namespace XCharts
|
||||
|
||||
public bool TryGetColor(ref Color32 color, ref Color32 toColor, ref bool interacting, float animationDuration = 250)
|
||||
{
|
||||
if (!m_ValueEnable)
|
||||
if (!IsValueEnable())
|
||||
return false;
|
||||
if (m_UpdateFlag)
|
||||
{
|
||||
@@ -150,7 +150,7 @@ namespace XCharts
|
||||
}
|
||||
public bool TryGetValueAndColor(ref float value, ref Color32 color, ref Color32 toColor, ref bool interacting, float animationDuration = 250)
|
||||
{
|
||||
if (!m_ValueEnable)
|
||||
if (!IsValueEnable())
|
||||
return false;
|
||||
if (m_UpdateFlag)
|
||||
{
|
||||
@@ -181,5 +181,14 @@ namespace XCharts
|
||||
{
|
||||
m_ValueEnable = false;
|
||||
}
|
||||
|
||||
private bool IsValueEnable()
|
||||
{
|
||||
#if UNITY_EDITOR
|
||||
if (!Application.isPlaying)
|
||||
return false;
|
||||
#endif
|
||||
return m_ValueEnable;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user