mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-19 23:10:06 +00:00
修复Add Serie面板上Serie Name不生效的问题 (#149)
This commit is contained in:
@@ -15,11 +15,13 @@ namespace XCharts
|
||||
{
|
||||
public static BaseChart chart;
|
||||
private static AddSerieEditor window;
|
||||
private static string serieName;
|
||||
|
||||
private SerieType serieType;
|
||||
private string serieName;
|
||||
|
||||
public static void ShowWindow()
|
||||
{
|
||||
serieName = "serie" + (chart.series.Count + 1);
|
||||
window = GetWindow<AddSerieEditor>();
|
||||
window.titleContent = new GUIContent("Add Serie");
|
||||
window.minSize = new Vector2(350, window.minSize.y);
|
||||
@@ -42,7 +44,6 @@ namespace XCharts
|
||||
var iconRect = new Rect(5, 10, position.width - 10, EditorGUIUtility.singleLineHeight);
|
||||
serieType = (SerieType)EditorGUI.EnumPopup(iconRect, "Serie Type", serieType);
|
||||
iconRect.y += EditorGUIUtility.singleLineHeight + EditorGUIUtility.standardVerticalSpacing;
|
||||
serieName = "serie" + (chart.series.Count + 1);
|
||||
serieName = EditorGUI.TextField(iconRect, "Serie Name", serieName);
|
||||
iconRect.y += EditorGUIUtility.singleLineHeight + EditorGUIUtility.standardVerticalSpacing;
|
||||
GUILayout.Space(iconRect.y + 5);
|
||||
|
||||
Reference in New Issue
Block a user