private void OnGUI() { if (changelogs.Count == 0) { return; } dispcl = changelogs[dispIndex]; if (showChangelog && changesLoaded && !changelogSelection) { displayWindow = GUILayout.Window(89156, displayWindow, DrawChangelogWindow, dispcl.modName + " " + dispcl.highestVersion, GUILayout.Width(WindowConstants.windowWidth), GUILayout.Height(WindowConstants.windowHeight)); } else if (showChangelog && changesLoaded && changelogSelection) { displayWindow = GUILayout.Window(89157, displayWindow, DrawChangelogSelection, "Kerbal Changelog", GUILayout.Width(WindowConstants.windowWidth), GUILayout.Height(WindowConstants.windowHeight)); } }
private bool canShow(Changelog cl) { return(showOldChanges || cl.HasUnseen(settings.SeenVersions(cl.modName))); }