13 [CustomPropertyDrawer(typeof(Settings),
true)]
16 public override string ClassName {
get {
return "Settings"; } }
17 public override void OnGUI(
Rect pos, SerializedProperty prop, GUIContent label)
19 base.OnGUI(pos, prop, label);
20 if (MakeFoldout(prop,
""))
23 var btnRect =
new Rect(pos.x + pos.width - btnWidth, pos.y, btnWidth, EditorGUIUtility.singleLineHeight);
24 if (GUI.Button(btnRect,
new GUIContent(
"Reset",
"Reset to default settings")))
26 var chart = prop.serializedObject.targetObject as
BaseChart;
29 ++EditorGUI.indentLevel;
30 PropertyField(prop,
"m_ReversePainter");
31 PropertyField(prop,
"m_MaxPainter");
32 PropertyField(prop,
"m_BasePainterMaterial");
33 PropertyField(prop,
"m_SeriePainterMaterial");
34 PropertyField(prop,
"m_TopPainterMaterial");
35 PropertyField(prop,
"m_LineSmoothStyle");
36 PropertyField(prop,
"m_LineSmoothness");
37 PropertyField(prop,
"m_LineSegmentDistance");
38 PropertyField(prop,
"m_CicleSmoothness");
39 PropertyField(prop,
"m_LegendIconLineWidth");
40 PropertyListField(prop,
"m_LegendIconCornerRadius",
true);
41 --EditorGUI.indentLevel;