public static MaintainerWindow Create() { MaintainerWindow window = GetWindow <MaintainerWindow>("Maintainer"); window.minSize = new Vector2(640f, 480f); window.Focus(); currentTab = MaintainerSettings.Instance.selectedTabIndex; IssuesTab.Refresh(); return(window); }
public static void Draw(MaintainerWindow parentWindow) { GUILayout.Space(30); GUILayout.BeginHorizontal(); GUILayout.FlexibleSpace(); GUILayout.BeginVertical(); GUILayout.Space(5); Texture2D logo; if (EditorGUIUtility.isProSkin) { logo = GetLogoTexture(LOGO_DARK_NAME); } else { logo = GetLogoTexture(LOGO_LIGHT_NAME); } if (logo != null) { Rect logoRect = EditorGUILayout.GetControlRect(GUILayout.Width(logo.width), GUILayout.Height(logo.height)); GUI.DrawTexture(logoRect, logo); } GUILayout.Space(10); GUILayout.Label("<size=14><b>Maintainer ver. " + Maintainer.VERSION + "</b></size>", UIHelpers.centeredLabel); GUILayout.Label("Developed by Dmitriy Yukhanov", UIHelpers.centeredLabel); GUILayout.Space(10); if (GUILayout.Button("Homepage")) { Application.OpenURL(HOMEPAGE); } if (GUILayout.Button("Support contacts")) { Application.OpenURL(SUPPORT_LINK); } GUILayout.EndVertical(); GUILayout.FlexibleSpace(); GUILayout.EndHorizontal(); }