void OnEnable() { InitGuiStyles(); Texture2D banner = bannerStyle.normal.background; if (banner == null) { Debug.LogWarning("Could not load About window resources"); EditorApplication.delayCall += Close; } else { bannerStyle.fixedWidth = k_BannerWidth; // banner.width; bannerStyle.fixedHeight = k_BannerHeight; // banner.height; this.wantsMouseMove = true; this.minSize = new Vector2(k_BannerWidth + 24, k_BannerHeight * 2.5f); this.maxSize = new Vector2(k_BannerWidth + 24, k_BannerHeight * 2.5f); } TextAsset changeText = EditorUtility.LoadInternalAsset <TextAsset>(k_ChangeLogPath); string raw = changeText != null ? changeText.text : ""; if (!string.IsNullOrEmpty(raw)) { var log = new Changelog(raw); m_ChangeLogVersionInfo = log.entries.First().versionInfo; m_ChangeLogRichText = ConvertReleaseNotesToRichText(log.entries.First().releaseNotes); } if (m_ChangeLogVersionInfo == null) { Debug.LogWarning("Could not open ProGrids changelog, exiting About Window!"); EditorApplication.delayCall += Close; } }
public ChangelogEntry(SemVer version, string releaseNotes) { m_VersionInfo = version; m_ReleaseNotes = releaseNotes; }