public static void Show(string publisher)
{
MetroCreateTestCertificateWindow[] windowArray = (MetroCreateTestCertificateWindow[]) Resources.FindObjectsOfTypeAll(typeof(MetroCreateTestCertificateWindow));
MetroCreateTestCertificateWindow window = (windowArray.Length <= 0) ? ScriptableObject.CreateInstance<MetroCreateTestCertificateWindow>() : windowArray[0];
window.path = Path.Combine(Application.dataPath, "WSATestCertificate.pfx").Replace('\\', '/');
window.publisher = publisher;
window.password = string.Empty;
window.confirm = window.password;
window.message = !File.Exists(window.path) ? GUIContent.none : EditorGUIUtility.TextContent("Current file will be overwritten.");
window.messageStyle = new GUIStyle(GUI.skin.label);
window.messageStyle.fontStyle = FontStyle.Italic;
window.focus = "publisher";
if (windowArray.Length > 0)
{
window.Focus();
}
else
{
window.titleContent = EditorGUIUtility.TextContent("Create Test Certificate for Windows Store");
window.position = new Rect(100f, 100f, 350f, 140f);
window.minSize = new Vector2(window.position.width, window.position.height);
window.maxSize = window.minSize;
window.ShowUtility();
}
}
}