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( UnityConstants.UVCS_WINDOW_TITLE, true, mConsoleWindowType, mProjectBrowserType); window.titleContent.image = UVCSPlugin.Instance.GetPluginStatusIcon(); return window; } internal static CloudDriveWindow CloudDrive() { CloudDriveWindow window = EditorWindow.GetWindow( 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"); } }