Merge main branche

This commit is contained in:
2022-05-18 17:02:04 +08:00
parent c69369857d
commit 06192a06fe
4 changed files with 6206 additions and 4346 deletions

View File

@@ -1004,20 +1004,20 @@ namespace GrasscutterTools
btn.Enabled = true;
}
private const int TxtCommandRunLogMinHeight = 100;
private const int TxtCommandRunLogMinHeight = 150;
private TextBox TxtCommandRunLog;
private void ExpandCommandRunLog()
{
if (SCBase.IsSplitterFixed)
if (GrpCommand.Height < TxtCommandRunLogMinHeight)
{
if (WindowState == FormWindowState.Maximized)
WindowState = FormWindowState.Normal;
SCBase.FixedPanel = FixedPanel.Panel1;
TCMain.Anchor &= ~AnchorStyles.Bottom;
GrpCommand.Anchor |= AnchorStyles.Top;
Size = new Size(Width, Height + TxtCommandRunLogMinHeight);
MinimumSize = new Size(MinimumSize.Width, MinimumSize.Height + TxtCommandRunLogMinHeight);
SCBase.Panel2MinSize += TxtCommandRunLogMinHeight;
SCBase.FixedPanel = FixedPanel.None;
SCBase.IsSplitterFixed = false;
TCMain.Anchor |= AnchorStyles.Bottom;
GrpCommand.Anchor &= ~AnchorStyles.Top;
}
if (TxtCommandRunLog == null)