public override string ToString() { return(m_VersionInfo.ToString() + "\n\n" + m_ReleaseNotes); }
void OnGUI() { if (bannerStyle.normal.background == null) { GUILayout.Label("Could Not Load About Window", EditorStyles.centeredGreyMiniLabel, GUILayout.ExpandWidth(true), GUILayout.ExpandHeight(true)); return; } Vector2 mousePosition = Event.current.mousePosition; if (GUILayout.Button(m_BannerContent, bannerStyle)) { Application.OpenURL(k_VideoUrl); } if (GUILayoutUtility.GetLastRect().Contains(mousePosition)) { Repaint(); } GUILayout.BeginVertical(changelogStyle); GUILayout.Label(k_ProductName, header1Style); GUILayout.BeginHorizontal(); GUILayout.FlexibleSpace(); if (GUILayout.Button(m_LearnContent, linkStyle)) { Application.OpenURL(k_LearnUrl); } GUILayout.Label("|", separatorStyle); if (GUILayout.Button(m_ForumLinkContent, linkStyle)) { Application.OpenURL(k_SupportUrl); } GUILayout.Label("|", separatorStyle); if (GUILayout.Button(m_ContactContent, linkStyle)) { Application.OpenURL(k_ContactEmailUrl); } GUILayout.FlexibleSpace(); GUILayout.EndHorizontal(); if (GUILayoutUtility.GetLastRect().Contains(mousePosition)) { Repaint(); } GUILayout.EndVertical(); // always bold the first line (cause it's the version info stuff) m_Scroll = EditorGUILayout.BeginScrollView(m_Scroll, changelogStyle); GUILayout.Label(string.Format("Version: {0}", m_ChangeLogVersionInfo.ToString("M.m.p")), versionInfoStyle); GUILayout.Label("\n" + m_ChangeLogRichText, changelogTextStyle); EditorGUILayout.EndScrollView(); GUILayout.Label(Version.current.ToString("R")); }