mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-16 13:30:10 +00:00
重构sampleDist到Serie的lineSampleDist
This commit is contained in:
@@ -26,7 +26,6 @@ namespace XCharts
|
||||
protected SerializedProperty m_MaxShowDataNumber;
|
||||
protected SerializedProperty m_MaxCacheDataNumber;
|
||||
protected SerializedProperty m_LineSmoothStyle;
|
||||
protected SerializedProperty m_SampleDist;
|
||||
|
||||
protected float m_DefaultLabelWidth;
|
||||
protected float m_DefaultFieldWidth;
|
||||
@@ -51,7 +50,6 @@ namespace XCharts
|
||||
m_MaxShowDataNumber = serializedObject.FindProperty("m_MaxShowDataNumber");
|
||||
m_MaxCacheDataNumber = serializedObject.FindProperty("m_MaxCacheDataNumber");
|
||||
m_LineSmoothStyle = serializedObject.FindProperty("m_LineSmoothStyle");
|
||||
m_SampleDist = serializedObject.FindProperty("m_SampleDist");
|
||||
}
|
||||
|
||||
public override void OnInspectorGUI()
|
||||
@@ -98,11 +96,9 @@ namespace XCharts
|
||||
EditorGUILayout.PropertyField(m_MaxShowDataNumber, true);
|
||||
EditorGUILayout.PropertyField(m_MaxCacheDataNumber, true);
|
||||
EditorGUILayout.PropertyField(m_LineSmoothStyle,true);
|
||||
EditorGUILayout.PropertyField(m_SampleDist,true);
|
||||
if (m_MinShowDataNumber.intValue < 0) m_MinShowDataNumber.intValue = 0;
|
||||
if (m_MaxShowDataNumber.intValue < 0) m_MaxShowDataNumber.intValue = 0;
|
||||
if (m_MaxCacheDataNumber.intValue < 0) m_MaxCacheDataNumber.intValue = 0;
|
||||
if (m_SampleDist.floatValue < 0) m_SampleDist.floatValue = 0;
|
||||
EditorGUI.indentLevel--;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user