30 lines
780 B
C#
30 lines
780 B
C#
using MCPForUnity.Editor.Setup;
|
|
using MCPForUnity.Editor.Windows;
|
|
using UnityEditor;
|
|
using UnityEngine;
|
|
|
|
namespace MCPForUnity.Editor.MenuItems
|
|
{
|
|
public static class MCPForUnityMenu
|
|
{
|
|
[MenuItem("Window/MCP For Unity/Setup Window", priority = 1)]
|
|
public static void ShowSetupWindow()
|
|
{
|
|
SetupWindowService.ShowSetupWindow();
|
|
}
|
|
|
|
[MenuItem("Window/MCP For Unity/Toggle MCP Window %#m", priority = 2)]
|
|
public static void ToggleMCPWindow()
|
|
{
|
|
if (MCPForUnityEditorWindow.HasAnyOpenWindow())
|
|
{
|
|
MCPForUnityEditorWindow.CloseAllOpenWindows();
|
|
}
|
|
else
|
|
{
|
|
MCPForUnityEditorWindow.ShowWindow();
|
|
}
|
|
}
|
|
}
|
|
}
|