mirror of
https://git.alee14.me/shiftos-archive/ShiftOS_TheReturn.git
synced 2025-01-22 18:02:16 +00:00
Fix Pong UI and panel buttons
This commit is contained in:
parent
d90ea0ba01
commit
6f939e295e
3 changed files with 14 additions and 21 deletions
26
ShiftOS.WinForms/Applications/Pong.Designer.cs
generated
26
ShiftOS.WinForms/Applications/Pong.Designer.cs
generated
|
@ -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
|
||||
//
|
||||
|
|
|
@ -633,6 +633,11 @@ namespace ShiftOS.WinForms.Applications
|
|||
|
||||
public void OnLoad()
|
||||
{
|
||||
pnlintro.BringToFront();
|
||||
pnlintro.Show();
|
||||
pnlhighscore.Hide();
|
||||
pnlgamestats.Hide();
|
||||
pnlfinalstats.Hide();
|
||||
}
|
||||
|
||||
public void OnSkinLoad()
|
||||
|
|
|
@ -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;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue