Info panel: fix executor delay being shown incorrectly above 100% GUI scale

This commit is contained in:
spherallic 2023-09-11 15:06:03 +02:00
parent a66175b93d
commit 181df8bb15
2 changed files with 3 additions and 7 deletions

View file

@ -152,9 +152,9 @@ namespace CodeImp.DoomBuilder.Controls
//
// activationlabel
//
this.activationlabel.Location = new System.Drawing.Point(8, 34);
this.activationlabel.Location = new System.Drawing.Point(78, 34);
this.activationlabel.Name = "activationlabel";
this.activationlabel.Size = new System.Drawing.Size(58, 14);
this.activationlabel.Size = new System.Drawing.Size(100, 14);
this.activationlabel.TabIndex = 30;
this.activationlabel.Text = "Activation:";
this.activationlabel.TextAlign = System.Drawing.ContentAlignment.TopRight;
@ -236,7 +236,7 @@ namespace CodeImp.DoomBuilder.Controls
//
this.activation.AutoSize = true;
this.activation.BackColor = System.Drawing.Color.Transparent;
this.activation.Location = new System.Drawing.Point(66, 34);
this.activation.Location = new System.Drawing.Point(180, 34);
this.activation.Name = "activation";
this.activation.Size = new System.Drawing.Size(162, 13);
this.activation.TabIndex = 31;

View file

@ -125,10 +125,6 @@ namespace CodeImp.DoomBuilder.Controls
activationlabel.Visible = true;
activation.Visible = true;
activationlabel.Size = new Size(100, 14);
activationlabel.Location = new Point(78, 34);
activation.Location = new Point(180, 34);
int locknum = l.Fields.GetValue("executordelay", 0);
if(locknum != 0)
{