- Fixed a bug where script compile errors were not shown under certain circumstances. Fixes #161.

This commit is contained in:
biwa 2019-04-19 19:58:41 +02:00
parent b5e950df89
commit 36361de889
4 changed files with 2440 additions and 2419 deletions

View file

@ -408,6 +408,14 @@ namespace CodeImp.DoomBuilder.Controls
//public void BeginInit() { }
//public void EndInit() { }
// biwa. Fills the stored sized with some value other than 0. Otherwise
// the error list will not be shown correctly when toggling the panel
public void SetSizes()
{
storedpanel1minsize = Panel1MinSize;
storedpanel2minsize = Panel2MinSize;
}
#endregion
}
}

File diff suppressed because it is too large Load diff

View file

@ -1106,11 +1106,11 @@ namespace CodeImp.DoomBuilder.Controls
if(errorlist.Items.Count > 0)
{
infotabs.SelectedTab = taberrors;
scriptsplitter.IsCollapsed = false;
if(scriptsplitter.IsCollapsed) scriptsplitter.IsCollapsed = false; // biwa. Only toggle if it's not shown
}
else if(infotabs.SelectedTab == taberrors)
{
scriptsplitter.IsCollapsed = true;
if(!scriptsplitter.IsCollapsed) scriptsplitter.IsCollapsed = true; // biwa. Only toggle if it's shown
}
}
@ -2229,5 +2229,18 @@ namespace CodeImp.DoomBuilder.Controls
}
#endregion
private void ScriptEditorPanel_Load(object sender, EventArgs e)
{
// biwa. The designer is setting the properties in the wrong order, which
// results in them not being set correctly at all. Set them here manually
// scriptsplitter.SplitterDistance = 100;
scriptsplitter.Panel1MinSize = 100;
scriptsplitter.Panel2MinSize = 100;
scriptsplitter.SetSizes();
mainsplitter.Panel1MinSize = 180;
mainsplitter.SetSizes();
}
}
}

File diff suppressed because it is too large Load diff