1
0
mirror of synced 2024-09-24 11:38:22 +02:00

Double click to hide contents of the timeline, console, and texture viewer

This commit is contained in:
KillzXGaming 2019-03-29 18:57:54 -04:00
parent 8b2c8466fc
commit 5d0254a5e2
9 changed files with 18 additions and 0 deletions

Binary file not shown.

View File

@ -166,6 +166,7 @@
this.stPanel1.Name = "stPanel1";
this.stPanel1.Size = new System.Drawing.Size(440, 186);
this.stPanel1.TabIndex = 3;
this.stPanel1.DoubleClick += new System.EventHandler(this.stPanel1_DoubleClick);
//
// stTabControl2
//

View File

@ -172,5 +172,22 @@ namespace FirstPlugin.Forms
OnLoadedTab();
}
}
bool IsTimelineVisable = true;
int controlHeight = 0;
private void stPanel1_DoubleClick(object sender, EventArgs e)
{
if (IsTimelineVisable)
{
controlHeight = stTabControl2.Height;
IsTimelineVisable = false;
stPanel1.Height -= (controlHeight - 25);
}
else
{
IsTimelineVisable = true;
stPanel1.Height += (controlHeight + 25);
}
}
}
}