XChartsEditor.PolarChart.cs 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. using System;
  2. using System.Collections.Generic;
  3. using System.IO;
  4. using System.Linq;
  5. using UnityEditor;
  6. using UnityEngine;
  7. using UnityEngine.EventSystems;
  8. using UnityEngine.UI;
  9. using XCharts.Runtime;
  10. using ADB = UnityEditor.AssetDatabase;
  11. namespace XCharts.Editor
  12. {
  13. public partial class XChartsEditor
  14. {
  15. [MenuItem("XCharts/PolarChart/Line", priority = 54)]
  16. [MenuItem("GameObject/XCharts/PolarChart/Line", priority = 54)]
  17. public static void PolarChart()
  18. {
  19. AddChart<PolarChart>("PolarChart");
  20. }
  21. [MenuItem("XCharts/PolarChart/Radial Bar", priority = 54)]
  22. [MenuItem("GameObject/XCharts/PolarChart/Radial Bar", priority = 54)]
  23. public static void PolarChart_RadialBar()
  24. {
  25. var chart = AddChart<PolarChart>("PolarChart");
  26. chart.DefaultRadialBarPolarChart();
  27. }
  28. [MenuItem("XCharts/PolarChart/Tangential Bar", priority = 54)]
  29. [MenuItem("GameObject/XCharts/PolarChart/Tangential Bar", priority = 54)]
  30. public static void PolarChart_TangentialBar()
  31. {
  32. var chart = AddChart<PolarChart>("PolarChart");
  33. chart.DefaultTangentialBarPolarChart();
  34. }
  35. [MenuItem("XCharts/PolarChart/Heatmap", priority = 54)]
  36. [MenuItem("GameObject/XCharts/PolarChart/Heatmap", priority = 54)]
  37. public static void PolarChart_Heatmap()
  38. {
  39. var chart = AddChart<PolarChart>("PolarChart");
  40. chart.DefaultHeatmapPolarChart();
  41. }
  42. }
  43. }