Fix Pong UI and panel buttons

This commit is contained in:
Michael 2017-02-11 13:32:26 -05:00
parent d90ea0ba01
commit 6f939e295e
3 changed files with 14 additions and 21 deletions

View file

@ -435,25 +435,13 @@ namespace ShiftOS.WinForms.Applications
//
// lblbutyougained
//
if (ShiftoriumFrontend.UpgradeInstalled("pong_upgrade_2"))
{
this.lblbutyougained.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblbutyougained.Location = new System.Drawing.Point(3, 125);
this.lblbutyougained.Name = "lblbutyougained";
this.lblbutyougained.Size = new System.Drawing.Size(146, 35);
this.lblbutyougained.TabIndex = 3;
this.lblbutyougained.Text = "But you gained 5 Codepoints";
this.lblbutyougained.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
} else
{
this.lblbutyougained.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblbutyougained.Location = new System.Drawing.Point(3, 125);
this.lblbutyougained.Name = "lblbutyougained";
this.lblbutyougained.Size = new System.Drawing.Size(0, 0);
this.lblbutyougained.TabIndex = 3;
this.lblbutyougained.Text = "But you gained 5 Codepoints";
this.lblbutyougained.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
}
this.lblbutyougained.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblbutyougained.Location = new System.Drawing.Point(3, 125);
this.lblbutyougained.Name = "lblbutyougained";
this.lblbutyougained.Size = new System.Drawing.Size(146, 35);
this.lblbutyougained.TabIndex = 3;
this.lblbutyougained.Text = "But you gained 5 Codepoints";
this.lblbutyougained.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// btnlosetryagain
//

View file

@ -633,6 +633,11 @@ namespace ShiftOS.WinForms.Applications
public void OnLoad()
{
pnlintro.BringToFront();
pnlintro.Show();
pnlhighscore.Hide();
pnlgamestats.Hide();
pnlfinalstats.Hide();
}
public void OnSkinLoad()

View file

@ -172,7 +172,6 @@ namespace ShiftOS.WinForms
pnlbtntext.AutoSize = true;
pnlbtntext.Location = LoadedSkin.PanelButtonFromLeft;
pnlbtntext.ForeColor = LoadedSkin.PanelButtonTextColor;
pnlbtntext.Font = LoadedSkin.PanelButtonFont;
pnlbtntext.BackColor = Color.Transparent;
pnlbtn.BackColor = LoadedSkin.PanelButtonColor;
@ -193,7 +192,8 @@ namespace ShiftOS.WinForms
pnlbtn.Click += onClick;
pnlbtntext.Click += onClick;
}
SetCursors(pnlbtn);
pnlbtntext.Font = LoadedSkin.PanelButtonFont;
}
}
}