mirror of
https://github.com/seriocomedy/ShiftOS-C-.git
synced 2025-01-23 09:32:14 +00:00
f1856e8ed3
This glitch has been prevelant ever since ShiftOS first had Knowledge Input. And I don't mean 0.1.0, I mean all the way back before 0.0.5 when OSFirstTimer was developing it. Basically, buttons would show light gray backgrounds when you click on them. Now they show black (and it's skinnable :D)
588 lines
No EOL
31 KiB
C#
588 lines
No EOL
31 KiB
C#
using System;
|
|
using ShiftUI;
|
|
|
|
namespace ShiftOS
|
|
{
|
|
partial class Pong
|
|
{
|
|
/// <summary>
|
|
/// Required designer variable.
|
|
/// </summary>
|
|
private System.ComponentModel.IContainer components = null;
|
|
|
|
/// <summary>
|
|
/// Clean up any resources being used.
|
|
/// </summary>
|
|
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
|
protected override void Dispose(bool disposing)
|
|
{
|
|
if (disposing && (components != null))
|
|
{
|
|
components.Dispose();
|
|
}
|
|
base.Dispose(disposing);
|
|
}
|
|
|
|
private void InitializeComponent()
|
|
{
|
|
this.components = new System.ComponentModel.Container();
|
|
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Pong));
|
|
this.pgcontents = new ShiftUI.Panel();
|
|
this.pnlgamestats = new ShiftUI.Panel();
|
|
this.lblnextstats = new ShiftUI.Label();
|
|
this.Label7 = new ShiftUI.Label();
|
|
this.lblpreviousstats = new ShiftUI.Label();
|
|
this.Label4 = new ShiftUI.Label();
|
|
this.btnplayon = new ShiftUI.Button();
|
|
this.Label3 = new ShiftUI.Label();
|
|
this.btncashout = new ShiftUI.Button();
|
|
this.Label2 = new ShiftUI.Label();
|
|
this.lbllevelreached = new ShiftUI.Label();
|
|
this.pnllose = new ShiftUI.Panel();
|
|
this.lblmissedout = new ShiftUI.Label();
|
|
this.btnlosetryagain = new ShiftUI.Button();
|
|
this.Label5 = new ShiftUI.Label();
|
|
this.Label1 = new ShiftUI.Label();
|
|
this.pnlintro = new ShiftUI.Panel();
|
|
this.Label6 = new ShiftUI.Label();
|
|
this.btnstartgame = new ShiftUI.Button();
|
|
this.Label8 = new ShiftUI.Label();
|
|
this.pnlfinalstats = new ShiftUI.Panel();
|
|
this.btnplayagain = new ShiftUI.Button();
|
|
this.lblfinalcodepoints = new ShiftUI.Label();
|
|
this.Label11 = new ShiftUI.Label();
|
|
this.lblfinalcomputerreward = new ShiftUI.Label();
|
|
this.Label9 = new ShiftUI.Label();
|
|
this.lblfinallevelreward = new ShiftUI.Label();
|
|
this.lblfinallevelreached = new ShiftUI.Label();
|
|
this.lblfinalcodepointswithtext = new ShiftUI.Label();
|
|
this.lblbeatai = new ShiftUI.Label();
|
|
this.lblcountdown = new ShiftUI.Label();
|
|
this.ball = new ShiftUI.Panel();
|
|
this.paddleHuman = new ShiftUI.PictureBox();
|
|
this.paddleComputer = new ShiftUI.Panel();
|
|
this.lbllevelandtime = new ShiftUI.Label();
|
|
this.lblstatscodepoints = new ShiftUI.Label();
|
|
this.lblstatsY = new ShiftUI.Label();
|
|
this.lblstatsX = new ShiftUI.Label();
|
|
this.gameTimer = new ShiftUI.Timer(this.components);
|
|
this.counter = new ShiftUI.Timer(this.components);
|
|
this.tmrcountdown = new ShiftUI.Timer(this.components);
|
|
this.tmrstoryline = new ShiftUI.Timer(this.components);
|
|
this.pgcontents.SuspendLayout();
|
|
this.pnlgamestats.SuspendLayout();
|
|
this.pnllose.SuspendLayout();
|
|
this.pnlintro.SuspendLayout();
|
|
this.pnlfinalstats.SuspendLayout();
|
|
((System.ComponentModel.ISupportInitialize)(this.paddleHuman)).BeginInit();
|
|
this.SuspendLayout();
|
|
//
|
|
// pgcontents
|
|
//
|
|
this.pgcontents.BackColor = System.Drawing.Color.White;
|
|
this.pgcontents.Widgets.Add(this.pnlgamestats);
|
|
this.pgcontents.Widgets.Add(this.pnllose);
|
|
this.pgcontents.Widgets.Add(this.pnlintro);
|
|
this.pgcontents.Widgets.Add(this.pnlfinalstats);
|
|
this.pgcontents.Widgets.Add(this.lblbeatai);
|
|
this.pgcontents.Widgets.Add(this.lblcountdown);
|
|
this.pgcontents.Widgets.Add(this.ball);
|
|
this.pgcontents.Widgets.Add(this.paddleHuman);
|
|
this.pgcontents.Widgets.Add(this.paddleComputer);
|
|
this.pgcontents.Widgets.Add(this.lbllevelandtime);
|
|
this.pgcontents.Widgets.Add(this.lblstatscodepoints);
|
|
this.pgcontents.Widgets.Add(this.lblstatsY);
|
|
this.pgcontents.Widgets.Add(this.lblstatsX);
|
|
this.pgcontents.Dock = ShiftUI.DockStyle.Fill;
|
|
this.pgcontents.Location = new System.Drawing.Point(0, 0);
|
|
this.pgcontents.Name = "pgcontents";
|
|
this.pgcontents.Size = new System.Drawing.Size(700, 400);
|
|
this.pgcontents.TabIndex = 20;
|
|
this.pgcontents.MouseMove += new ShiftUI.MouseEventHandler(this.pongMain_MouseMove);
|
|
//
|
|
// pnlgamestats
|
|
//
|
|
this.pnlgamestats.Widgets.Add(this.lblnextstats);
|
|
this.pnlgamestats.Widgets.Add(this.Label7);
|
|
this.pnlgamestats.Widgets.Add(this.lblpreviousstats);
|
|
this.pnlgamestats.Widgets.Add(this.Label4);
|
|
this.pnlgamestats.Widgets.Add(this.btnplayon);
|
|
this.pnlgamestats.Widgets.Add(this.Label3);
|
|
this.pnlgamestats.Widgets.Add(this.btncashout);
|
|
this.pnlgamestats.Widgets.Add(this.Label2);
|
|
this.pnlgamestats.Widgets.Add(this.lbllevelreached);
|
|
this.pnlgamestats.Location = new System.Drawing.Point(56, 76);
|
|
this.pnlgamestats.Name = "pnlgamestats";
|
|
this.pnlgamestats.Size = new System.Drawing.Size(466, 206);
|
|
this.pnlgamestats.TabIndex = 6;
|
|
this.pnlgamestats.Visible = false;
|
|
//
|
|
// lblnextstats
|
|
//
|
|
this.lblnextstats.AutoSize = true;
|
|
this.lblnextstats.Location = new System.Drawing.Point(278, 136);
|
|
this.lblnextstats.Name = "lblnextstats";
|
|
this.lblnextstats.Size = new System.Drawing.Size(0, 13);
|
|
this.lblnextstats.TabIndex = 8;
|
|
//
|
|
// Label7
|
|
//
|
|
this.Label7.AutoSize = true;
|
|
this.Label7.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.Label7.Location = new System.Drawing.Point(278, 119);
|
|
this.Label7.Name = "Label7";
|
|
this.Label7.Size = new System.Drawing.Size(124, 16);
|
|
this.Label7.TabIndex = 7;
|
|
this.Label7.Text = "Next Level Stats:";
|
|
//
|
|
// lblpreviousstats
|
|
//
|
|
this.lblpreviousstats.AutoSize = true;
|
|
this.lblpreviousstats.Location = new System.Drawing.Point(278, 54);
|
|
this.lblpreviousstats.Name = "lblpreviousstats";
|
|
this.lblpreviousstats.Size = new System.Drawing.Size(0, 13);
|
|
this.lblpreviousstats.TabIndex = 6;
|
|
//
|
|
// Label4
|
|
//
|
|
this.Label4.AutoSize = true;
|
|
this.Label4.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.Label4.Location = new System.Drawing.Point(278, 37);
|
|
this.Label4.Name = "Label4";
|
|
this.Label4.Size = new System.Drawing.Size(154, 16);
|
|
this.Label4.TabIndex = 5;
|
|
this.Label4.Text = "Previous Level Stats:";
|
|
//
|
|
// btnplayon
|
|
//
|
|
this.btnplayon.FlatStyle = ShiftUI.FlatStyle.Standard;
|
|
this.btnplayon.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.btnplayon.Location = new System.Drawing.Point(32, 162);
|
|
this.btnplayon.Name = "btnplayon";
|
|
this.btnplayon.Size = new System.Drawing.Size(191, 35);
|
|
this.btnplayon.TabIndex = 4;
|
|
this.btnplayon.Text = "Play on for 3 codepoints!";
|
|
this.btnplayon.UseVisualStyleBackColor = true;
|
|
this.btnplayon.Click += new System.EventHandler(this.btnplayon_Click);
|
|
//
|
|
// Label3
|
|
//
|
|
this.Label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.Label3.Location = new System.Drawing.Point(8, 126);
|
|
this.Label3.Name = "Label3";
|
|
this.Label3.Size = new System.Drawing.Size(245, 33);
|
|
this.Label3.TabIndex = 3;
|
|
this.Label3.Text = "Or do you want to try your luck on the next level to increase your reward?";
|
|
this.Label3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
|
//
|
|
// btncashout
|
|
//
|
|
this.btncashout.FlatStyle = ShiftUI.FlatStyle.Standard;
|
|
this.btncashout.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.btncashout.Location = new System.Drawing.Point(32, 73);
|
|
this.btncashout.Name = "btncashout";
|
|
this.btncashout.Size = new System.Drawing.Size(191, 35);
|
|
this.btncashout.TabIndex = 2;
|
|
this.btncashout.Text = "Cash out with 1 codepoint!";
|
|
this.btncashout.UseVisualStyleBackColor = true;
|
|
this.btncashout.Click += new System.EventHandler(this.btncashout_Click);
|
|
//
|
|
// Label2
|
|
//
|
|
this.Label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.Label2.Location = new System.Drawing.Point(8, 37);
|
|
this.Label2.Name = "Label2";
|
|
this.Label2.Size = new System.Drawing.Size(245, 33);
|
|
this.Label2.TabIndex = 1;
|
|
this.Label2.Text = "Would you like the end the game now and cash out with your reward?";
|
|
this.Label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
|
//
|
|
// lbllevelreached
|
|
//
|
|
this.lbllevelreached.AutoSize = true;
|
|
this.lbllevelreached.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.lbllevelreached.Location = new System.Drawing.Point(149, 6);
|
|
this.lbllevelreached.Name = "lbllevelreached";
|
|
this.lbllevelreached.Size = new System.Drawing.Size(185, 20);
|
|
this.lbllevelreached.TabIndex = 0;
|
|
this.lbllevelreached.Text = "You Reached Level 2!";
|
|
//
|
|
// pnllose
|
|
//
|
|
this.pnllose.Widgets.Add(this.lblmissedout);
|
|
this.pnllose.Widgets.Add(this.btnlosetryagain);
|
|
this.pnllose.Widgets.Add(this.Label5);
|
|
this.pnllose.Widgets.Add(this.Label1);
|
|
this.pnllose.Location = new System.Drawing.Point(209, 71);
|
|
this.pnllose.Name = "pnllose";
|
|
this.pnllose.Size = new System.Drawing.Size(266, 214);
|
|
this.pnllose.TabIndex = 10;
|
|
this.pnllose.Visible = false;
|
|
//
|
|
// lblmissedout
|
|
//
|
|
this.lblmissedout.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.lblmissedout.Location = new System.Drawing.Point(3, 175);
|
|
this.lblmissedout.Name = "lblmissedout";
|
|
this.lblmissedout.Size = new System.Drawing.Size(146, 35);
|
|
this.lblmissedout.TabIndex = 3;
|
|
this.lblmissedout.Text = "You Missed Out On: 500 Codepoints";
|
|
this.lblmissedout.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
|
//
|
|
// btnlosetryagain
|
|
//
|
|
this.btnlosetryagain.FlatStyle = ShiftUI.FlatStyle.Standard;
|
|
this.btnlosetryagain.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.btnlosetryagain.Location = new System.Drawing.Point(155, 176);
|
|
this.btnlosetryagain.Name = "btnlosetryagain";
|
|
this.btnlosetryagain.Size = new System.Drawing.Size(106, 35);
|
|
this.btnlosetryagain.TabIndex = 2;
|
|
this.btnlosetryagain.Text = "Try Again";
|
|
this.btnlosetryagain.UseVisualStyleBackColor = true;
|
|
this.btnlosetryagain.Click += new System.EventHandler(this.btnlosetryagain_Click);
|
|
//
|
|
// Label5
|
|
//
|
|
this.Label5.Location = new System.Drawing.Point(7, 26);
|
|
this.Label5.Name = "Label5";
|
|
this.Label5.Size = new System.Drawing.Size(260, 163);
|
|
this.Label5.TabIndex = 1;
|
|
//
|
|
// Label1
|
|
//
|
|
this.Label1.Dock = ShiftUI.DockStyle.Top;
|
|
this.Label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.Label1.Location = new System.Drawing.Point(0, 0);
|
|
this.Label1.Name = "Label1";
|
|
this.Label1.Size = new System.Drawing.Size(266, 16);
|
|
this.Label1.TabIndex = 0;
|
|
this.Label1.Text = "You lose!";
|
|
this.Label1.TextAlign = System.Drawing.ContentAlignment.TopCenter;
|
|
//
|
|
// pnlintro
|
|
//
|
|
this.pnlintro.Widgets.Add(this.Label6);
|
|
this.pnlintro.Widgets.Add(this.btnstartgame);
|
|
this.pnlintro.Widgets.Add(this.Label8);
|
|
this.pnlintro.Location = new System.Drawing.Point(52, 29);
|
|
this.pnlintro.Name = "pnlintro";
|
|
this.pnlintro.Size = new System.Drawing.Size(595, 303);
|
|
this.pnlintro.TabIndex = 13;
|
|
//
|
|
// Label6
|
|
//
|
|
this.Label6.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.Label6.Location = new System.Drawing.Point(3, 39);
|
|
this.Label6.Name = "Label6";
|
|
this.Label6.Size = new System.Drawing.Size(589, 227);
|
|
this.Label6.TabIndex = 15;
|
|
this.Label6.Text = resources.GetString("Label6.Text");
|
|
this.Label6.TextAlign = System.Drawing.ContentAlignment.TopCenter;
|
|
//
|
|
// btnstartgame
|
|
//
|
|
this.btnstartgame.FlatStyle = ShiftUI.FlatStyle.Standard;
|
|
this.btnstartgame.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.btnstartgame.Location = new System.Drawing.Point(186, 273);
|
|
this.btnstartgame.Name = "btnstartgame";
|
|
this.btnstartgame.Size = new System.Drawing.Size(242, 28);
|
|
this.btnstartgame.TabIndex = 15;
|
|
this.btnstartgame.Text = "Click this button to play pong!";
|
|
this.btnstartgame.UseVisualStyleBackColor = true;
|
|
this.btnstartgame.Click += new System.EventHandler(this.btnstartgame_Click);
|
|
//
|
|
// Label8
|
|
//
|
|
this.Label8.AutoSize = true;
|
|
this.Label8.Font = new System.Drawing.Font("Microsoft Sans Serif", 20.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.Label8.ForeColor = System.Drawing.Color.Black;
|
|
this.Label8.Location = new System.Drawing.Point(179, 5);
|
|
this.Label8.Name = "Label8";
|
|
this.Label8.Size = new System.Drawing.Size(250, 31);
|
|
this.Label8.TabIndex = 14;
|
|
this.Label8.Text = "Welcome to Pong!";
|
|
//
|
|
// pnlfinalstats
|
|
//
|
|
this.pnlfinalstats.Widgets.Add(this.btnplayagain);
|
|
this.pnlfinalstats.Widgets.Add(this.lblfinalcodepoints);
|
|
this.pnlfinalstats.Widgets.Add(this.Label11);
|
|
this.pnlfinalstats.Widgets.Add(this.lblfinalcomputerreward);
|
|
this.pnlfinalstats.Widgets.Add(this.Label9);
|
|
this.pnlfinalstats.Widgets.Add(this.lblfinallevelreward);
|
|
this.pnlfinalstats.Widgets.Add(this.lblfinallevelreached);
|
|
this.pnlfinalstats.Widgets.Add(this.lblfinalcodepointswithtext);
|
|
this.pnlfinalstats.Location = new System.Drawing.Point(172, 74);
|
|
this.pnlfinalstats.Name = "pnlfinalstats";
|
|
this.pnlfinalstats.Size = new System.Drawing.Size(362, 226);
|
|
this.pnlfinalstats.TabIndex = 9;
|
|
this.pnlfinalstats.Visible = false;
|
|
//
|
|
// btnplayagain
|
|
//
|
|
this.btnplayagain.FlatStyle = ShiftUI.FlatStyle.Standard;
|
|
this.btnplayagain.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.btnplayagain.Location = new System.Drawing.Point(5, 194);
|
|
this.btnplayagain.Name = "btnplayagain";
|
|
this.btnplayagain.Size = new System.Drawing.Size(352, 29);
|
|
this.btnplayagain.TabIndex = 16;
|
|
this.btnplayagain.Text = "Click this button to play again!";
|
|
this.btnplayagain.UseVisualStyleBackColor = true;
|
|
this.btnplayagain.Click += new System.EventHandler(this.btnplayagain_Click);
|
|
//
|
|
// lblfinalcodepoints
|
|
//
|
|
this.lblfinalcodepoints.Font = new System.Drawing.Font("Microsoft Sans Serif", 48F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.lblfinalcodepoints.Location = new System.Drawing.Point(3, 124);
|
|
this.lblfinalcodepoints.Name = "lblfinalcodepoints";
|
|
this.lblfinalcodepoints.Size = new System.Drawing.Size(356, 73);
|
|
this.lblfinalcodepoints.TabIndex = 15;
|
|
this.lblfinalcodepoints.Text = "134 CP";
|
|
this.lblfinalcodepoints.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
|
//
|
|
// Label11
|
|
//
|
|
this.Label11.AutoSize = true;
|
|
this.Label11.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.Label11.Location = new System.Drawing.Point(162, 82);
|
|
this.Label11.Name = "Label11";
|
|
this.Label11.Size = new System.Drawing.Size(33, 33);
|
|
this.Label11.TabIndex = 14;
|
|
this.Label11.Text = "+";
|
|
this.Label11.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
|
//
|
|
// lblfinalcomputerreward
|
|
//
|
|
this.lblfinalcomputerreward.Font = new System.Drawing.Font("Microsoft Sans Serif", 27.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.lblfinalcomputerreward.Location = new System.Drawing.Point(193, 72);
|
|
this.lblfinalcomputerreward.Name = "lblfinalcomputerreward";
|
|
this.lblfinalcomputerreward.Size = new System.Drawing.Size(151, 52);
|
|
this.lblfinalcomputerreward.TabIndex = 12;
|
|
this.lblfinalcomputerreward.Text = "34";
|
|
this.lblfinalcomputerreward.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
|
//
|
|
// Label9
|
|
//
|
|
this.Label9.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.Label9.Location = new System.Drawing.Point(179, 31);
|
|
this.Label9.Name = "Label9";
|
|
this.Label9.Size = new System.Drawing.Size(180, 49);
|
|
this.Label9.TabIndex = 11;
|
|
this.Label9.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
|
//
|
|
// lblfinallevelreward
|
|
//
|
|
this.lblfinallevelreward.Font = new System.Drawing.Font("Microsoft Sans Serif", 27.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.lblfinallevelreward.Location = new System.Drawing.Point(12, 72);
|
|
this.lblfinallevelreward.Name = "lblfinallevelreward";
|
|
this.lblfinallevelreward.Size = new System.Drawing.Size(151, 52);
|
|
this.lblfinallevelreward.TabIndex = 10;
|
|
this.lblfinallevelreward.Text = "100";
|
|
this.lblfinallevelreward.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
|
//
|
|
// lblfinallevelreached
|
|
//
|
|
this.lblfinallevelreached.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.lblfinallevelreached.Location = new System.Drawing.Point(3, 31);
|
|
this.lblfinallevelreached.Name = "lblfinallevelreached";
|
|
this.lblfinallevelreached.Size = new System.Drawing.Size(170, 49);
|
|
this.lblfinallevelreached.TabIndex = 9;
|
|
this.lblfinallevelreached.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
|
//
|
|
// lblfinalcodepointswithtext
|
|
//
|
|
this.lblfinalcodepointswithtext.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.lblfinalcodepointswithtext.Location = new System.Drawing.Point(3, 2);
|
|
this.lblfinalcodepointswithtext.Name = "lblfinalcodepointswithtext";
|
|
this.lblfinalcodepointswithtext.Size = new System.Drawing.Size(356, 26);
|
|
this.lblfinalcodepointswithtext.TabIndex = 1;
|
|
this.lblfinalcodepointswithtext.Text = "You cashed out with 134 codepoints!";
|
|
this.lblfinalcodepointswithtext.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
|
//
|
|
// lblbeatai
|
|
//
|
|
this.lblbeatai.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.lblbeatai.Location = new System.Drawing.Point(47, 41);
|
|
this.lblbeatai.Name = "lblbeatai";
|
|
this.lblbeatai.Size = new System.Drawing.Size(600, 30);
|
|
this.lblbeatai.TabIndex = 8;
|
|
this.lblbeatai.Text = "You got 2 codepoints for beating the Computer!";
|
|
this.lblbeatai.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
|
this.lblbeatai.Visible = false;
|
|
//
|
|
// lblcountdown
|
|
//
|
|
this.lblcountdown.Font = new System.Drawing.Font("Microsoft Sans Serif", 24F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.lblcountdown.Location = new System.Drawing.Point(182, 152);
|
|
this.lblcountdown.Name = "lblcountdown";
|
|
this.lblcountdown.Size = new System.Drawing.Size(315, 49);
|
|
this.lblcountdown.TabIndex = 7;
|
|
this.lblcountdown.Text = "3";
|
|
this.lblcountdown.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
|
this.lblcountdown.Visible = false;
|
|
//
|
|
// ball
|
|
//
|
|
this.ball.BackColor = System.Drawing.Color.Black;
|
|
this.ball.Location = new System.Drawing.Point(300, 152);
|
|
this.ball.Name = "ball";
|
|
this.ball.Size = new System.Drawing.Size(20, 20);
|
|
this.ball.TabIndex = 2;
|
|
//
|
|
// paddleHuman
|
|
//
|
|
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);
|
|
this.paddleHuman.TabIndex = 3;
|
|
this.paddleHuman.TabStop = false;
|
|
//
|
|
// paddleComputer
|
|
//
|
|
this.paddleComputer.Anchor = ((ShiftUI.AnchorStyles)(((ShiftUI.AnchorStyles.Top | ShiftUI.AnchorStyles.Bottom)
|
|
| ShiftUI.AnchorStyles.Right)));
|
|
this.paddleComputer.BackColor = System.Drawing.Color.Black;
|
|
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);
|
|
this.paddleComputer.TabIndex = 1;
|
|
//
|
|
// lbllevelandtime
|
|
//
|
|
this.lbllevelandtime.Dock = ShiftUI.DockStyle.Top;
|
|
this.lbllevelandtime.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.lbllevelandtime.Location = new System.Drawing.Point(0, 0);
|
|
this.lbllevelandtime.Name = "lbllevelandtime";
|
|
this.lbllevelandtime.Size = new System.Drawing.Size(700, 22);
|
|
this.lbllevelandtime.TabIndex = 4;
|
|
this.lbllevelandtime.Text = "Level: 1 - 58 Seconds Left";
|
|
this.lbllevelandtime.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
|
//
|
|
// lblstatscodepoints
|
|
//
|
|
this.lblstatscodepoints.Anchor = ((ShiftUI.AnchorStyles)(((ShiftUI.AnchorStyles.Bottom | ShiftUI.AnchorStyles.Left)
|
|
| ShiftUI.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);
|
|
this.lblstatscodepoints.Name = "lblstatscodepoints";
|
|
this.lblstatscodepoints.Size = new System.Drawing.Size(219, 35);
|
|
this.lblstatscodepoints.TabIndex = 12;
|
|
this.lblstatscodepoints.Text = "Codepoints: ";
|
|
this.lblstatscodepoints.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
|
//
|
|
// lblstatsY
|
|
//
|
|
this.lblstatsY.Anchor = ((ShiftUI.AnchorStyles)((ShiftUI.AnchorStyles.Bottom | ShiftUI.AnchorStyles.Right)));
|
|
this.lblstatsY.Font = new System.Drawing.Font("Georgia", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.lblstatsY.Location = new System.Drawing.Point(542, 356);
|
|
this.lblstatsY.Name = "lblstatsY";
|
|
this.lblstatsY.Size = new System.Drawing.Size(144, 35);
|
|
this.lblstatsY.TabIndex = 11;
|
|
this.lblstatsY.Text = "Yspeed:";
|
|
this.lblstatsY.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
|
//
|
|
// lblstatsX
|
|
//
|
|
this.lblstatsX.Anchor = ((ShiftUI.AnchorStyles)((ShiftUI.AnchorStyles.Bottom | ShiftUI.AnchorStyles.Left)));
|
|
this.lblstatsX.Font = new System.Drawing.Font("Georgia", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.lblstatsX.Location = new System.Drawing.Point(3, 356);
|
|
this.lblstatsX.Name = "lblstatsX";
|
|
this.lblstatsX.Size = new System.Drawing.Size(144, 35);
|
|
this.lblstatsX.TabIndex = 5;
|
|
this.lblstatsX.Text = "Xspeed: ";
|
|
this.lblstatsX.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
|
//
|
|
// gameTimer
|
|
//
|
|
this.gameTimer.Interval = 30;
|
|
this.gameTimer.Tick += new System.EventHandler(this.gameTimer_Tick);
|
|
//
|
|
// counter
|
|
//
|
|
this.counter.Interval = 1000;
|
|
this.counter.Tick += new System.EventHandler(this.counter_Tick);
|
|
//
|
|
// tmrcountdown
|
|
//
|
|
this.tmrcountdown.Interval = 1000;
|
|
this.tmrcountdown.Tick += new System.EventHandler(this.countdown_Tick);
|
|
//
|
|
// tmrstoryline
|
|
//
|
|
this.tmrstoryline.Interval = 1000;
|
|
this.tmrstoryline.Tick += new System.EventHandler(this.tmrstoryline_Tick);
|
|
//
|
|
// Pong
|
|
//
|
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
|
this.AutoScaleMode = ShiftUI.AutoScaleMode.Font;
|
|
this.BackColor = System.Drawing.Color.White;
|
|
this.ClientSize = new System.Drawing.Size(700, 400);
|
|
this.Widgets.Add(this.pgcontents);
|
|
this.DoubleBuffered = true;
|
|
this.FormBorderStyle = ShiftUI.FormBorderStyle.None;
|
|
this.Name = "Pong";
|
|
this.Text = "Pong";
|
|
this.TopMost = true;
|
|
this.FormClosing += new ShiftUI.FormClosingEventHandler(this.me_closing);
|
|
this.Load += new System.EventHandler(this.Pong_Load);
|
|
this.MouseMove += new ShiftUI.MouseEventHandler(this.pongMain_MouseMove);
|
|
this.pgcontents.ResumeLayout(false);
|
|
this.pnlgamestats.ResumeLayout(false);
|
|
this.pnlgamestats.PerformLayout();
|
|
this.pnllose.ResumeLayout(false);
|
|
this.pnlintro.ResumeLayout(false);
|
|
this.pnlintro.PerformLayout();
|
|
this.pnlfinalstats.ResumeLayout(false);
|
|
this.pnlfinalstats.PerformLayout();
|
|
((System.ComponentModel.ISupportInitialize)(this.paddleHuman)).EndInit();
|
|
this.ResumeLayout(false);
|
|
|
|
}
|
|
internal ShiftUI.Panel pgcontents;
|
|
internal ShiftUI.Panel ball;
|
|
internal ShiftUI.Panel paddleComputer;
|
|
internal ShiftUI.Timer gameTimer;
|
|
internal ShiftUI.PictureBox paddleHuman;
|
|
internal ShiftUI.Label lbllevelandtime;
|
|
internal ShiftUI.Label lblstatsX;
|
|
internal ShiftUI.Timer counter;
|
|
internal ShiftUI.Panel pnlgamestats;
|
|
internal ShiftUI.Label lblnextstats;
|
|
internal ShiftUI.Label Label7;
|
|
internal ShiftUI.Label lblpreviousstats;
|
|
internal ShiftUI.Label Label4;
|
|
internal ShiftUI.Button btnplayon;
|
|
internal ShiftUI.Label Label3;
|
|
internal ShiftUI.Button btncashout;
|
|
internal ShiftUI.Label Label2;
|
|
internal ShiftUI.Label lbllevelreached;
|
|
internal ShiftUI.Label lblcountdown;
|
|
internal ShiftUI.Timer tmrcountdown;
|
|
internal ShiftUI.Label lblbeatai;
|
|
internal ShiftUI.Panel pnlfinalstats;
|
|
internal ShiftUI.Button btnplayagain;
|
|
internal ShiftUI.Label lblfinalcodepoints;
|
|
internal ShiftUI.Label Label11;
|
|
internal ShiftUI.Label lblfinalcomputerreward;
|
|
internal ShiftUI.Label Label9;
|
|
internal ShiftUI.Label lblfinallevelreward;
|
|
internal ShiftUI.Label lblfinallevelreached;
|
|
internal ShiftUI.Label lblfinalcodepointswithtext;
|
|
internal ShiftUI.Panel pnllose;
|
|
internal ShiftUI.Label lblmissedout;
|
|
internal ShiftUI.Button btnlosetryagain;
|
|
internal ShiftUI.Label Label5;
|
|
internal ShiftUI.Label Label1;
|
|
internal ShiftUI.Label lblstatscodepoints;
|
|
internal ShiftUI.Label lblstatsY;
|
|
internal ShiftUI.Panel pnlintro;
|
|
internal ShiftUI.Label Label6;
|
|
internal ShiftUI.Button btnstartgame;
|
|
internal ShiftUI.Label Label8;
|
|
internal ShiftUI.Timer tmrstoryline;
|
|
|
|
}
|
|
} |