增加PieRadargridIndex支持设置指定网格

This commit is contained in:
monitor1394
2023-08-29 22:20:29 +08:00
parent e4fbe5670f
commit 8df1dbe0fb
17 changed files with 164 additions and 63 deletions

View File

@@ -9,12 +9,15 @@ namespace XCharts.Editor
public override void OnInspectorGUI()
{
++EditorGUI.indentLevel;
var layoutIndex = baseProperty.FindPropertyRelative("m_LayoutIndex").intValue;
PropertyField("m_LayoutIndex");
PropertyField("m_Left");
PropertyField("m_Right");
PropertyField("m_Top");
PropertyField("m_Bottom");
if (layoutIndex < 0)
{
PropertyField("m_Left");
PropertyField("m_Right");
PropertyField("m_Top");
PropertyField("m_Bottom");
}
PropertyField("m_BackgroundColor");
PropertyField("m_ShowBorder");
PropertyField("m_BorderWidth");

View File

@@ -16,6 +16,7 @@ namespace XCharts.Editor
PropertyField("m_Row");
PropertyField("m_Column");
PropertyField("m_Spacing");
PropertyField("m_Inverse");
--EditorGUI.indentLevel;
}
}

View File

@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 97c3db8110ca44c3bb088f8af9c56aa6
guid: 4288bf299494d43d497436ace4b7a5a3
MonoImporter:
externalObjects: {}
serializedVersion: 2

View File

@@ -10,6 +10,7 @@ namespace XCharts.Editor
public override void OnInspectorGUI()
{
++EditorGUI.indentLevel;
PropertyField("m_GridIndex");
PropertyField("m_Shape");
PropertyField("m_PositionType");
PropertyTwoFiled("m_Center");