mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-22 20:02:48 +00:00
- Fixed a bug where script compile errors were not shown under certain circumstances. Fixes #161.
This commit is contained in:
parent
b5e950df89
commit
36361de889
4 changed files with 2440 additions and 2419 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
2089
Source/Core/Controls/Scripting/ScriptEditorPanel.Designer.cs
generated
2089
Source/Core/Controls/Scripting/ScriptEditorPanel.Designer.cs
generated
File diff suppressed because it is too large
Load diff
|
@ -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
Loading…
Reference in a new issue