mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-16 21:40:41 +00:00
19 lines
464 B
C#
19 lines
464 B
C#
|
|
using UnityEditor;
|
|||
|
|
using UnityEditorInternal;
|
|||
|
|
using UnityEngine;
|
|||
|
|
|
|||
|
|
namespace XCharts
|
|||
|
|
{
|
|||
|
|
[CustomPropertyDrawer(typeof(XAxis), true)]
|
|||
|
|
public class XAxisDrawer : AxisDrawer
|
|||
|
|
{
|
|||
|
|
protected override string GetDisplayName(string displayName)
|
|||
|
|
{
|
|||
|
|
if (displayName.StartsWith("Element"))
|
|||
|
|
{
|
|||
|
|
displayName = displayName.Replace("Element", "X Axis");
|
|||
|
|
}
|
|||
|
|
return displayName;
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|