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(Title))]
|
|
|
|
|
public class TitleEditor : MainComponentEditor<Title>
|
|
|
|
|
{
|
|
|
|
|
public override void OnInspectorGUI()
|
|
|
|
|
{
|
|
|
|
|
++EditorGUI.indentLevel;
|
|
|
|
|
PropertyField("m_Text");
|
|
|
|
|
PropertyField("m_SubText");
|
|
|
|
|
PropertyField("m_ItemGap");
|
|
|
|
|
PropertyField("m_Location");
|
|
|
|
|
PropertyField("m_TextStyle");
|
|
|
|
|
PropertyField("m_SubTextStyle");
|
|
|
|
|
--EditorGUI.indentLevel;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|