XCharts 2.0

This commit is contained in:
monitor1394
2021-01-11 08:54:28 +08:00
parent ed8d0687f7
commit 489095865d
304 changed files with 14799 additions and 12503 deletions

View File

@@ -1,9 +1,9 @@
/******************************************/
/* */
/* Copyright (c) 2018 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/******************************************/
/************************************************/
/* */
/* Copyright (c) 2018 - 2021 monitor1394 */
/* https://github.com/monitor1394 */
/* */
/************************************************/
using UnityEditor;
using UnityEngine;
@@ -12,7 +12,7 @@ using UnityEngine.EventSystems;
namespace XCharts
{
public class XChartEditor : EditorWindow
public class XChartEditor : Editor
{
private static Transform GetParent()
{
@@ -141,5 +141,23 @@ namespace XCharts
{
AddChart<LiquidChart>("LiquidChart");
}
[MenuItem("XCharts/Themes Reload")]
public static void ReloadTheme()
{
XChartsMgr.Instance.LoadThemesFromResources();
}
[MenuItem("XCharts/TextMeshPro Enable")]
public static void EnableTextMeshPro()
{
XChartsMgr.EnableTextMeshPro();
}
[MenuItem("XCharts/TextMeshPro Disable")]
public static void DisableTextMeshPro()
{
XChartsMgr.DisableTextMeshPro();
}
}
}