diff --git a/src/Driftr/DriftR.Designer.cs b/src/Driftr/DriftR.Designer.cs index 70c64cd..e5655e2 100644 --- a/src/Driftr/DriftR.Designer.cs +++ b/src/Driftr/DriftR.Designer.cs @@ -41,8 +41,8 @@ private void InitializeComponent() this.pictureBox1 = new System.Windows.Forms.PictureBox(); this.lapTimeRedLabel = new System.Windows.Forms.Label(); this.lapTimeYellowLabel = new System.Windows.Forms.Label(); - this.label1 = new System.Windows.Forms.Label(); - this.label2 = new System.Windows.Forms.Label(); + this.lapTimeRedLabel2 = new System.Windows.Forms.Label(); + this.lapTimeYellowLabel2 = new System.Windows.Forms.Label(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.screen)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); @@ -178,12 +178,12 @@ private void InitializeComponent() // lapTimeRedLabel // this.lapTimeRedLabel.AutoSize = true; - this.lapTimeRedLabel.BackColor = System.Drawing.Color.Transparent; - this.lapTimeRedLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.lapTimeRedLabel.BackColor = System.Drawing.Color.ForestGreen; + this.lapTimeRedLabel.Font = new System.Drawing.Font("Verdana", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lapTimeRedLabel.ForeColor = System.Drawing.Color.Red; - this.lapTimeRedLabel.Location = new System.Drawing.Point(479, 426); + this.lapTimeRedLabel.Location = new System.Drawing.Point(491, 496); this.lapTimeRedLabel.Name = "lapTimeRedLabel"; - this.lapTimeRedLabel.Size = new System.Drawing.Size(70, 25); + this.lapTimeRedLabel.Size = new System.Drawing.Size(68, 23); this.lapTimeRedLabel.TabIndex = 24; this.lapTimeRedLabel.Text = "label1"; // @@ -191,39 +191,43 @@ private void InitializeComponent() // this.lapTimeYellowLabel.AutoSize = true; this.lapTimeYellowLabel.BackColor = System.Drawing.Color.Transparent; - this.lapTimeYellowLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.lapTimeYellowLabel.Font = new System.Drawing.Font("Verdana", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lapTimeYellowLabel.ForeColor = System.Drawing.Color.Yellow; - this.lapTimeYellowLabel.Location = new System.Drawing.Point(585, 426); + this.lapTimeYellowLabel.Location = new System.Drawing.Point(598, 496); this.lapTimeYellowLabel.Name = "lapTimeYellowLabel"; - this.lapTimeYellowLabel.Size = new System.Drawing.Size(70, 25); + this.lapTimeYellowLabel.Size = new System.Drawing.Size(68, 23); this.lapTimeYellowLabel.TabIndex = 25; this.lapTimeYellowLabel.Text = "label1"; // - // label1 + // lapTimeRedLabel2 // - this.label1.AutoSize = true; - this.label1.Location = new System.Drawing.Point(481, 464); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(35, 13); - this.label1.TabIndex = 26; - this.label1.Text = "label1"; + this.lapTimeRedLabel2.AutoSize = true; + this.lapTimeRedLabel2.Font = new System.Drawing.Font("Verdana", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.lapTimeRedLabel2.ForeColor = System.Drawing.Color.Red; + this.lapTimeRedLabel2.Location = new System.Drawing.Point(492, 530); + this.lapTimeRedLabel2.Name = "lapTimeRedLabel2"; + this.lapTimeRedLabel2.Size = new System.Drawing.Size(46, 16); + this.lapTimeRedLabel2.TabIndex = 26; + this.lapTimeRedLabel2.Text = "label1"; // - // label2 + // lapTimeYellowLabel2 // - this.label2.AutoSize = true; - this.label2.Location = new System.Drawing.Point(587, 464); - this.label2.Name = "label2"; - this.label2.Size = new System.Drawing.Size(35, 13); - this.label2.TabIndex = 27; - this.label2.Text = "label2"; + this.lapTimeYellowLabel2.AutoSize = true; + this.lapTimeYellowLabel2.Font = new System.Drawing.Font("Verdana", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.lapTimeYellowLabel2.ForeColor = System.Drawing.Color.Yellow; + this.lapTimeYellowLabel2.Location = new System.Drawing.Point(599, 530); + this.lapTimeYellowLabel2.Name = "lapTimeYellowLabel2"; + this.lapTimeYellowLabel2.Size = new System.Drawing.Size(46, 16); + this.lapTimeYellowLabel2.TabIndex = 27; + this.lapTimeYellowLabel2.Text = "label2"; // // Driftr // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(1000, 700); - this.Controls.Add(this.label2); - this.Controls.Add(this.label1); + this.Controls.Add(this.lapTimeYellowLabel2); + this.Controls.Add(this.lapTimeRedLabel2); this.Controls.Add(this.lapTimeYellowLabel); this.Controls.Add(this.lapTimeRedLabel); this.Controls.Add(this.roundsLabelRed); @@ -265,8 +269,8 @@ private void InitializeComponent() private System.Windows.Forms.PictureBox pictureBox1; private System.Windows.Forms.Label lapTimeRedLabel; private System.Windows.Forms.Label lapTimeYellowLabel; - private System.Windows.Forms.Label label1; - private System.Windows.Forms.Label label2; + private System.Windows.Forms.Label lapTimeRedLabel2; + private System.Windows.Forms.Label lapTimeYellowLabel2; } diff --git a/src/Driftr/Driftr.cs b/src/Driftr/Driftr.cs index b978c9d..f5932fe 100644 --- a/src/Driftr/Driftr.cs +++ b/src/Driftr/Driftr.cs @@ -74,8 +74,10 @@ public Driftr() Init(screen.Size); pictureBox1.Parent = screen; pictureBox2.Parent = screen; - //lapTimeRedLabel.Parent = screen; - //lapTimeYellowLabel.Parent = screen; + lapTimeRedLabel.BackColor = Color.FromArgb(31, 161, 1); + lapTimeYellowLabel.BackColor = Color.FromArgb(31, 161, 1); + lapTimeRedLabel2.BackColor = Color.FromArgb(31, 161, 1); + lapTimeYellowLabel2.BackColor = Color.FromArgb(31, 161, 1); // brandstof InitTimer(); @@ -143,16 +145,16 @@ private void DrawScreen() roundsLabelYellow.Text = lapsYellow.ToString(); roundsLabelRed.Text = lapsRed.ToString(); - label1.Text = ""; - label2.Text = ""; + lapTimeRedLabel2.Text = ""; + lapTimeYellowLabel2.Text = ""; foreach (var x in _vehicleLapTimes[_vehicles[0]]) { - label1.Text += x.ToString("mm':'ss':'ff") + Environment.NewLine; + lapTimeRedLabel2.Text += x.ToString("mm':'ss':'ff") + Environment.NewLine; } foreach (var x in _vehicleLapTimes[_vehicles[1]]) { - label2.Text += x.ToString("mm':'ss':'ff") + Environment.NewLine; + lapTimeYellowLabel2.Text += x.ToString("mm':'ss':'ff") + Environment.NewLine; } }