You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
using UnityEditor;
|
|
|
|
|
|
|
|
|
|
namespace Unity.PlasticSCM.Editor.UI
|
|
|
|
|
{
|
|
|
|
|
internal static class ShowWindow
|
|
|
|
|
{
|
|
|
|
|
internal static PlasticWindow Plastic()
|
|
|
|
|
{
|
|
|
|
|
return ShowPlasticWindow(false);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
internal static PlasticWindow PlasticAfterDownloadingProject()
|
|
|
|
|
{
|
|
|
|
|
return ShowPlasticWindow(true);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static PlasticWindow ShowPlasticWindow(bool disableCollabWhenLoaded)
|
|
|
|
|
{
|
|
|
|
|
PlasticWindow window = EditorWindow.GetWindow<PlasticWindow>(
|
|
|
|
|
UnityConstants.PLASTIC_WINDOW_TITLE,
|
|
|
|
|
true,
|
|
|
|
|
mConsoleWindowType,
|
|
|
|
|
mProjectBrowserType);
|
|
|
|
|
|
|
|
|
|
if (disableCollabWhenLoaded)
|
|
|
|
|
window.DisableCollabIfEnabledWhenLoaded();
|
|
|
|
|
|
|
|
|
|
window.SetupWindowTitle(PlasticNotification.Status.None);
|
|
|
|
|
|
|
|
|
|
return window;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static Type mConsoleWindowType = typeof(EditorWindow).
|
|
|
|
|
Assembly.GetType("UnityEditor.ConsoleWindow");
|
|
|
|
|
static Type mProjectBrowserType = typeof(EditorWindow).
|
|
|
|
|
Assembly.GetType("UnityEditor.ProjectBrowser");
|
|
|
|
|
}
|
|
|
|
|
}
|