mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-24 18:00:26 +00:00
调整Covert重命名为Convert
This commit is contained in:
@@ -14,7 +14,7 @@ namespace XCharts.Editor
|
||||
{
|
||||
public static readonly GUIContent btnAddSerie = new GUIContent("Add Serie", "");
|
||||
public static readonly GUIContent btnAddComponent = new GUIContent("Add Main Component", "");
|
||||
public static readonly GUIContent btnCovertXYAxis = new GUIContent("Covert XY Axis", "");
|
||||
public static readonly GUIContent btnConvertXYAxis = new GUIContent("Convert XY Axis", "");
|
||||
public static readonly GUIContent btnRebuildChartObject = new GUIContent("Rebuild Chart Object", "");
|
||||
public static readonly GUIContent btnSaveAsImage = new GUIContent("Save As Image", "");
|
||||
public static readonly GUIContent btnCheckWarning = new GUIContent("Check Warning", "");
|
||||
@@ -273,8 +273,8 @@ namespace XCharts.Editor
|
||||
{
|
||||
if (m_Chart.HasChartComponent<XAxis>() && m_Chart.HasChartComponent<YAxis>())
|
||||
{
|
||||
if (GUILayout.Button(Styles.btnCovertXYAxis))
|
||||
m_Chart.CovertXYAxis(0);
|
||||
if (GUILayout.Button(Styles.btnConvertXYAxis))
|
||||
m_Chart.ConvertXYAxis(0);
|
||||
}
|
||||
if (GUILayout.Button(Styles.btnRebuildChartObject))
|
||||
{
|
||||
|
||||
@@ -169,11 +169,11 @@ namespace XCharts.Editor
|
||||
RefreshEditors();
|
||||
}
|
||||
}));
|
||||
foreach (var type in GetCovertToSerie(editor.serie.GetType()))
|
||||
foreach (var type in GetConvertToSerie(editor.serie.GetType()))
|
||||
{
|
||||
editor.menus.Add(new HeaderMenuInfo("Covert to " + type.Name, () =>
|
||||
editor.menus.Add(new HeaderMenuInfo("Convert to " + type.Name, () =>
|
||||
{
|
||||
CovertSerie(editor.serie, type);
|
||||
ConvertSerie(editor.serie, type);
|
||||
}));
|
||||
}
|
||||
if (editor.serie.GetType().IsDefined(typeof(SerieExtraComponentAttribute), false))
|
||||
@@ -224,9 +224,9 @@ namespace XCharts.Editor
|
||||
AssetDatabase.Refresh();
|
||||
}
|
||||
|
||||
public void CovertSerie(Serie serie, Type type)
|
||||
public void ConvertSerie(Serie serie, Type type)
|
||||
{
|
||||
chart.CovertSerie(serie, type);
|
||||
chart.ConvertSerie(serie, type);
|
||||
m_SeriesProperty = m_BaseEditor.RefreshSeries();
|
||||
RefreshEditors();
|
||||
}
|
||||
@@ -254,7 +254,7 @@ namespace XCharts.Editor
|
||||
AssetDatabase.Refresh();
|
||||
}
|
||||
|
||||
private List<Type> GetCovertToSerie(Type serie)
|
||||
private List<Type> GetConvertToSerie(Type serie)
|
||||
{
|
||||
var list = new List<Type>();
|
||||
var typeMap = RuntimeUtil.GetAllTypesDerivedFrom<Serie>();
|
||||
|
||||
Reference in New Issue
Block a user