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(Legend))]
|
|
|
|
|
public class LegendEditor : MainComponentEditor<Legend>
|
|
|
|
|
{
|
|
|
|
|
public override void OnInspectorGUI()
|
|
|
|
|
{
|
|
|
|
|
++EditorGUI.indentLevel;
|
|
|
|
|
PropertyField("m_IconType");
|
|
|
|
|
PropertyField("m_ItemWidth");
|
|
|
|
|
PropertyField("m_ItemHeight");
|
|
|
|
|
PropertyField("m_ItemGap");
|
|
|
|
|
PropertyField("m_ItemAutoColor");
|
2022-05-22 22:17:38 +08:00
|
|
|
PropertyField("m_ItemOpacity");
|
2025-03-27 22:35:02 +08:00
|
|
|
PropertyField("m_ItemInactiveOpacity");
|
2021-11-23 13:20:07 +08:00
|
|
|
PropertyField("m_SelectedMode");
|
|
|
|
|
PropertyField("m_Orient");
|
|
|
|
|
PropertyField("m_Location");
|
2022-04-26 08:24:45 +08:00
|
|
|
PropertyField("m_LabelStyle");
|
2023-12-12 10:22:32 +08:00
|
|
|
PropertyField("m_TextLimit");
|
2022-06-24 22:17:01 +08:00
|
|
|
PropertyField("m_Background");
|
|
|
|
|
PropertyField("m_Padding");
|
2021-11-23 13:20:07 +08:00
|
|
|
PropertyListField("m_Icons");
|
2022-05-22 22:17:38 +08:00
|
|
|
PropertyListField("m_Colors");
|
2023-03-04 21:09:50 +08:00
|
|
|
PropertyListField("m_Positions");
|
2021-11-23 13:20:07 +08:00
|
|
|
PropertyListField("m_Data");
|
|
|
|
|
--EditorGUI.indentLevel;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|