aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAren <[email protected]>2017-02-23 23:43:12 +0100
committerGitHub <[email protected]>2017-02-23 23:43:12 +0100
commit867a95493a31ba65f5e2a36c2be24a3014a45871 (patch)
tree3cfe7ceb65a00a592b196566c5fcf2de00209e52
parent741c9ad1536aafe851a9a2f521f39a15b064a3c8 (diff)
parentbd051072ff58f76983741b24d752945439937c26 (diff)
downloadshiftos_thereturn-867a95493a31ba65f5e2a36c2be24a3014a45871.tar.gz
shiftos_thereturn-867a95493a31ba65f5e2a36c2be24a3014a45871.tar.bz2
shiftos_thereturn-867a95493a31ba65f5e2a36c2be24a3014a45871.zip
Merge pull request #77 from craftxbox/patch-1
Pong paddle size upgrade now actually does something
-rw-r--r--ShiftOS.WinForms/Applications/Pong.Designer.cs23
1 files changed, 19 insertions, 4 deletions
diff --git a/ShiftOS.WinForms/Applications/Pong.Designer.cs b/ShiftOS.WinForms/Applications/Pong.Designer.cs
index 16ae4e0..38cb63b 100644
--- a/ShiftOS.WinForms/Applications/Pong.Designer.cs
+++ b/ShiftOS.WinForms/Applications/Pong.Designer.cs
@@ -1,3 +1,4 @@
+
/*
* MIT License
*
@@ -553,7 +554,14 @@ namespace ShiftOS.WinForms.Applications
this.paddleHuman.BackColor = System.Drawing.Color.Black;
this.paddleHuman.Location = new System.Drawing.Point(10, 134);
this.paddleHuman.Name = "paddleHuman";
- this.paddleHuman.Size = new System.Drawing.Size(20, 100);
+ if (ShiftoriumFrontend.UpgradeInstalled("pong_increased_paddle_size"))
+ {
+ this.paddleHuman.Size = new System.Drawing.Size(20, 150);
+ }
+ else
+ {
+ this.paddleHuman.Size = new System.Drawing.Size(20, 100);
+ }
this.paddleHuman.TabIndex = 3;
this.paddleHuman.TabStop = false;
//
@@ -564,7 +572,14 @@ namespace ShiftOS.WinForms.Applications
this.paddleComputer.Location = new System.Drawing.Point(666, 134);
this.paddleComputer.MaximumSize = new System.Drawing.Size(20, 100);
this.paddleComputer.Name = "paddleComputer";
- this.paddleComputer.Size = new System.Drawing.Size(20, 100);
+ if (ShiftoriumFrontend.UpgradeInstalled("pong_increased_paddle_size"))
+ {
+ this.paddleComputer.Size = new System.Drawing.Size(20, 150);
+ }
+ else
+ {
+ this.paddleComputer.Size = new System.Drawing.Size(20, 100);
+ }
this.paddleComputer.TabIndex = 1;
//
// lbllevelandtime
@@ -580,7 +595,7 @@ namespace ShiftOS.WinForms.Applications
//
// lblstatscodepoints
//
- this.lblstatscodepoints.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
+ this.lblstatscodepoints.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.lblstatscodepoints.Font = new System.Drawing.Font("Georgia", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblstatscodepoints.Location = new System.Drawing.Point(239, 356);
@@ -715,4 +730,4 @@ namespace ShiftOS.WinForms.Applications
private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel1;
private System.Windows.Forms.Button button2;
}
-} \ No newline at end of file
+}