43 lines
1.2 KiB
C#
43 lines
1.2 KiB
C#
using System;
|
|
|
|
using UnityEditor;
|
|
|
|
using Unity.PlasticSCM.Editor.CloudDrive;
|
|
|
|
namespace Unity.PlasticSCM.Editor.UI
|
|
{
|
|
internal static class ShowWindow
|
|
{
|
|
internal static UVCSWindow UVCS()
|
|
{
|
|
UVCSWindow window = EditorWindow.GetWindow<UVCSWindow>(
|
|
UnityConstants.UVCS_WINDOW_TITLE,
|
|
true,
|
|
mConsoleWindowType,
|
|
mProjectBrowserType);
|
|
|
|
window.titleContent.image = UVCSPlugin.Instance.GetPluginStatusIcon();
|
|
|
|
return window;
|
|
}
|
|
|
|
internal static CloudDriveWindow CloudDrive()
|
|
{
|
|
CloudDriveWindow window = EditorWindow.GetWindow<CloudDriveWindow>(
|
|
UnityConstants.CloudDrive.WINDOW_TITLE,
|
|
true,
|
|
mConsoleWindowType,
|
|
mProjectBrowserType);
|
|
|
|
window.titleContent.image = Images.GetCloudDriveViewIcon();
|
|
|
|
return window;
|
|
}
|
|
|
|
static Type mConsoleWindowType = typeof(EditorWindow).
|
|
Assembly.GetType("UnityEditor.ConsoleWindow");
|
|
static Type mProjectBrowserType = typeof(EditorWindow).
|
|
Assembly.GetType("UnityEditor.ProjectBrowser");
|
|
}
|
|
}
|