增加二维数据支持,XY轴都可以设置为数值轴

This commit is contained in:
monitor1394
2019-07-14 14:34:18 +08:00
parent e0ca33d7cb
commit 9ec5e80d22
15 changed files with 11930 additions and 13223 deletions

View File

@@ -48,7 +48,7 @@ public class ChartEditorHelper
}
}
public static void MakeFoldout(ref Rect drawRect, ref bool moduleToggle, string content,
public static bool MakeFoldout(ref Rect drawRect, ref bool moduleToggle, string content,
SerializedProperty prop = null, bool bold = true)
{
float defaultWidth = drawRect.width;
@@ -63,6 +63,7 @@ public class ChartEditorHelper
}
drawRect.width = defaultWidth;
drawRect.x = defaultX;
return moduleToggle;
}
public static void MakeList(ref Rect drawRect, ref int listSize, SerializedProperty listProp, SerializedProperty large = null)
@@ -80,7 +81,7 @@ public class ChartEditorHelper
while (listSize < listProp.arraySize)
listProp.DeleteArrayElementAtIndex(listProp.arraySize - 1);
}
if (listSize > 50)
if (listSize > 30)
{
SerializedProperty element;
int num = listSize > 10 ? 10 : listSize;