mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-23 17:30:10 +00:00
Add Time axis warning
This commit is contained in:
@@ -29,6 +29,12 @@ namespace XCharts
|
|||||||
EditorGUI.indentLevel++;
|
EditorGUI.indentLevel++;
|
||||||
PropertyField(prop, isPolar ? "m_PolarIndex" : "m_GridIndex");
|
PropertyField(prop, isPolar ? "m_PolarIndex" : "m_GridIndex");
|
||||||
PropertyField(prop, "m_Type");
|
PropertyField(prop, "m_Type");
|
||||||
|
if (type == Axis.AxisType.Time)
|
||||||
|
{
|
||||||
|
var chartTypeName = prop.serializedObject.targetObject.GetType().Name;
|
||||||
|
if (!chartTypeName.Equals("GanttChart"))
|
||||||
|
EditorGUILayout.HelpBox("The Time axis is currently only supported in GanttChart.", MessageType.Warning);
|
||||||
|
}
|
||||||
PropertyField(prop, "m_Position");
|
PropertyField(prop, "m_Position");
|
||||||
PropertyField(prop, "m_Offset");
|
PropertyField(prop, "m_Offset");
|
||||||
if (type == Axis.AxisType.Log)
|
if (type == Axis.AxisType.Log)
|
||||||
|
|||||||
Reference in New Issue
Block a user