CandlestickChart加入菜单栏 #146

This commit is contained in:
monitor1394
2021-05-18 00:06:56 +08:00
parent d5c8b296a7
commit e2aec83de2
2 changed files with 7 additions and 2 deletions

View File

@@ -142,7 +142,12 @@ namespace XCharts
AddChart<LiquidChart>("LiquidChart");
}
[MenuItem("XCharts/CandlestickChart", priority = 54)]
[MenuItem("GameObject/XCharts/CandlestickChart", priority = 54)]
public static void CandlestickChart()
{
AddChart<CandlestickChart>("CandlestickChart");
}
[MenuItem("XCharts/Themes Reload")]
public static void ReloadTheme()

View File

@@ -10,7 +10,7 @@ using UnityEngine;
namespace XCharts
{
[AddComponentMenu("XCharts/CandlestickChart", 21)]
[AddComponentMenu("XCharts/CandlestickChart", 23)]
[ExecuteInEditMode]
[RequireComponent(typeof(RectTransform))]
[DisallowMultipleComponent]