MenuProvider.cs 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. using HybridCLR.Editor.Installer;
  2. using UnityEditor;
  3. using UnityEngine;
  4. namespace HybridCLR.Editor.Settings
  5. {
  6. public static class MenuProvider
  7. {
  8. [MenuItem("HybridCLR/About", priority = 0)]
  9. public static void OpenAbout() => Application.OpenURL("https://hybridclr.doc.code-philosophy.com/docs/intro");
  10. [MenuItem("HybridCLR/Installer...", priority = 60)]
  11. private static void Open()
  12. {
  13. InstallerWindow window = EditorWindow.GetWindow<InstallerWindow>("HybridCLR Installer", true);
  14. window.minSize = new Vector2(800f, 500f);
  15. }
  16. [MenuItem("HybridCLR/Settings...", priority = 61)]
  17. public static void OpenSettings() => SettingsService.OpenProjectSettings("Project/HybridCLR Settings");
  18. [MenuItem("HybridCLR/Documents/Quick Start")]
  19. public static void OpenQuickStart() => Application.OpenURL("https://hybridclr.doc.code-philosophy.com/docs/beginner/quickstart");
  20. [MenuItem("HybridCLR/Documents/Performance")]
  21. public static void OpenPerformance() => Application.OpenURL("https://hybridclr.doc.code-philosophy.com/docs/basic/performance");
  22. [MenuItem("HybridCLR/Documents/FAQ")]
  23. public static void OpenFAQ() => Application.OpenURL("https://hybridclr.doc.code-philosophy.com/docs/help/faq");
  24. [MenuItem("HybridCLR/Documents/Common Errors")]
  25. public static void OpenCommonErrors() => Application.OpenURL("https://hybridclr.doc.code-philosophy.com/docs/help/commonerrors");
  26. [MenuItem("HybridCLR/Documents/Bug Report")]
  27. public static void OpenBugReport() => Application.OpenURL("https://hybridclr.doc.code-philosophy.com/docs/help/issue");
  28. }
  29. }