Skip to content

Commit

Permalink
changed window sizes and added spaces between versions
Browse files Browse the repository at this point in the history
  • Loading branch information
AmberCronin committed Oct 23, 2018
1 parent d15ec6c commit 1f657b7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Changelog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ private Changelog()

private void Start()
{
changelogRect = new Rect(100, 100, 300f * widthMultiplier, 400f * heightMultiplier);
changelogRect = new Rect(100, 100, 800f * widthMultiplier, 1000f * heightMultiplier);
LoadChangelogs();
}
private void OnGUI()
Expand Down Expand Up @@ -104,6 +104,7 @@ private void LoadChangelogs()
Debug.Log($"[KCL] {changelogNodes.Length} changelogs found");
UrlDir.UrlConfig[] cfgDirs = GameDatabase.Instance.GetConfigs("KERBALCHANGELOG");
UrlDir gameDatabaseUrl = GameDatabase.Instance.root;
bool firstVersionNumber = true;
foreach (UrlDir.UrlConfig cfgDir in cfgDirs)
{
bool show = true;
Expand All @@ -118,6 +119,11 @@ private void LoadChangelogs()
string modChangelog = "";
foreach(ConfigNode vn in cln.GetNodes("VERSION"))
{
if(!firstVersionNumber)
{
modChangelog += "\n";
}
firstVersionNumber = false;
modChangelog += (vn.GetValue("version") + ":\n");
foreach(string change in vn.GetValues("change"))
{
Expand Down

0 comments on commit 1f657b7

Please sign in to comment.