2023-05-21 09:50:38 +08:00
|
|
|
using HybridCLR.Editor.Installer;
|
2022-10-09 03:25:56 +08:00
|
|
|
using UnityEditor;
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
public static class MenuProvider
|
|
|
|
{
|
2023-05-21 09:50:38 +08:00
|
|
|
|
|
|
|
[MenuItem("HybridCLR/About HybridCLR", priority = 0)]
|
2023-06-15 17:06:55 +08:00
|
|
|
public static void OpenAbout() => Application.OpenURL("https://hybridclr.doc.code-philosophy.com/docs/intro");
|
2023-05-21 09:50:38 +08:00
|
|
|
|
|
|
|
[MenuItem("HybridCLR/Installer...", priority = 60)]
|
|
|
|
private static void Open()
|
|
|
|
{
|
|
|
|
InstallerWindow window = EditorWindow.GetWindow<InstallerWindow>("HybridCLR Installer", true);
|
|
|
|
window.minSize = new Vector2(800f, 500f);
|
|
|
|
}
|
|
|
|
|
|
|
|
[MenuItem("HybridCLR/Settings...", priority = 61)]
|
2022-10-09 03:25:56 +08:00
|
|
|
public static void OpenSettings() => SettingsService.OpenProjectSettings("Project/HybridCLR Settings");
|
2023-05-21 09:50:38 +08:00
|
|
|
|
|
|
|
[MenuItem("HybridCLR/Documents/Quick Start")]
|
2023-06-15 17:06:55 +08:00
|
|
|
public static void OpenQuickStart() => Application.OpenURL("https://hybridclr.doc.code-philosophy.com/docs/beginner/quickstart");
|
2023-05-21 09:50:38 +08:00
|
|
|
|
2023-06-15 17:06:55 +08:00
|
|
|
[MenuItem("HybridCLR/Documents/Performance")]
|
|
|
|
public static void OpenPerformance() => Application.OpenURL("https://hybridclr.doc.code-philosophy.com/docs/basic/performance");
|
2023-05-21 09:50:38 +08:00
|
|
|
|
|
|
|
[MenuItem("HybridCLR/Documents/FAQ")]
|
2023-06-15 17:06:55 +08:00
|
|
|
public static void OpenFAQ() => Application.OpenURL("https://hybridclr.doc.code-philosophy.com/docs/help/faq");
|
2023-05-21 09:50:38 +08:00
|
|
|
|
|
|
|
[MenuItem("HybridCLR/Documents/Common Errors")]
|
2023-06-15 17:06:55 +08:00
|
|
|
public static void OpenCommonErrors() => Application.OpenURL("https://hybridclr.doc.code-philosophy.com/docs/help/commonerrors");
|
2023-05-21 09:50:38 +08:00
|
|
|
|
|
|
|
[MenuItem("HybridCLR/Documents/Bug Report")]
|
2023-06-15 17:06:55 +08:00
|
|
|
public static void OpenBugReport() => Application.OpenURL("https://hybridclr.doc.code-philosophy.com/docs/help/issue");
|
2022-10-09 03:25:56 +08:00
|
|
|
}
|
2022-10-25 17:36:32 +08:00
|
|
|
|