2021-11-23 13:20:07 +08:00
|
|
|
using UnityEditor;
|
2022-02-19 22:37:57 +08:00
|
|
|
using XCharts.Runtime;
|
2021-11-23 13:20:07 +08:00
|
|
|
|
2021-12-24 13:33:09 +08:00
|
|
|
namespace XCharts.Editor
|
2021-11-23 13:20:07 +08:00
|
|
|
{
|
|
|
|
|
[ComponentEditor(typeof(GridCoord))]
|
|
|
|
|
public class GridCoordEditor : MainComponentEditor<GridCoord>
|
|
|
|
|
{
|
|
|
|
|
public override void OnInspectorGUI()
|
|
|
|
|
{
|
|
|
|
|
++EditorGUI.indentLevel;
|
|
|
|
|
PropertyField("m_Left");
|
|
|
|
|
PropertyField("m_Right");
|
|
|
|
|
PropertyField("m_Top");
|
|
|
|
|
PropertyField("m_Bottom");
|
|
|
|
|
PropertyField("m_BackgroundColor");
|
2022-02-25 08:10:09 +08:00
|
|
|
PropertyField("m_ShowBorder");
|
|
|
|
|
PropertyField("m_BorderWidth");
|
|
|
|
|
PropertyField("m_BorderColor");
|
2021-11-23 13:20:07 +08:00
|
|
|
--EditorGUI.indentLevel;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|