SW-Wiktor-Bombola/SW-Unity/Library/PackageCache/com.unity.collab-proxy@1.10.2/Editor/PlasticSCM/PlasticMenuItem.cs
2021-12-04 15:15:29 +01:00

33 lines
720 B
C#

using Unity.PlasticSCM.Editor.UI;
namespace Unity.PlasticSCM.Editor
{
internal static class PlasticMenuItem
{
internal static void Add()
{
HandleMenuItem.AddMenuItem(
MENU_ITEM_NAME,
MENU_ITEM_PRIORITY,
ShowPanel,
ValidateMenu);
HandleMenuItem.UpdateAllMenus();
}
static bool ValidateMenu()
{
return !CollabPlugin.IsEnabled();
}
static void ShowPanel()
{
ShowWindow.Plastic();
}
const string MENU_ITEM_NAME = "Window/" + UnityConstants.PLASTIC_WINDOW_TITLE;
const int MENU_ITEM_PRIORITY = 1000;
}
}