From 1b50ca1c5c28622ef062d7580a5b050b6af308b3 Mon Sep 17 00:00:00 2001 From: Alee14 Date: Sat, 12 May 2018 17:46:27 -0400 Subject: Main menu & license stuff --- Project Ports/Form1.Designer.cs | 60 ++++++++++++++++++- Project Ports/Form1.cs | 31 +++++++++- Project Ports/Form1.resx | 120 +++++++++++++++++++++++++++++++++++++ Project Ports/Program.cs | 21 ++++++- Project Ports/Project Ports.csproj | 3 + 5 files changed, 232 insertions(+), 3 deletions(-) create mode 100644 Project Ports/Form1.resx diff --git a/Project Ports/Form1.Designer.cs b/Project Ports/Form1.Designer.cs index 09a6bd3..793f15c 100644 --- a/Project Ports/Form1.Designer.cs +++ b/Project Ports/Form1.Designer.cs @@ -28,20 +28,78 @@ /// private void InitializeComponent() { + this.button1 = new System.Windows.Forms.Button(); + this.label1 = new System.Windows.Forms.Label(); + this.button2 = new System.Windows.Forms.Button(); + this.label2 = new System.Windows.Forms.Label(); this.SuspendLayout(); // + // button1 + // + this.button1.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.button1.Location = new System.Drawing.Point(24, 79); + this.button1.Name = "button1"; + this.button1.Size = new System.Drawing.Size(159, 44); + this.button1.TabIndex = 0; + this.button1.Text = "Play"; + this.button1.UseVisualStyleBackColor = true; + this.button1.Click += new System.EventHandler(this.button1_Click); + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Font = new System.Drawing.Font("Consolas", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label1.ForeColor = System.Drawing.Color.White; + this.label1.Location = new System.Drawing.Point(20, 32); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(126, 19); + this.label1.TabIndex = 1; + this.label1.Text = "Project Ports"; + // + // button2 + // + this.button2.Location = new System.Drawing.Point(24, 139); + this.button2.Name = "button2"; + this.button2.Size = new System.Drawing.Size(159, 44); + this.button2.TabIndex = 2; + this.button2.Text = "Exit"; + this.button2.UseVisualStyleBackColor = true; + this.button2.Click += new System.EventHandler(this.button2_Click); + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Font = new System.Drawing.Font("Consolas", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label2.ForeColor = System.Drawing.Color.White; + this.label2.Location = new System.Drawing.Point(20, 260); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(252, 19); + this.label2.TabIndex = 3; + this.label2.Text = "Copyright (C) 2018 AleeCorp"; + // // Form1 // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(800, 450); + this.BackColor = System.Drawing.Color.Black; + this.ClientSize = new System.Drawing.Size(580, 319); + this.Controls.Add(this.label2); + this.Controls.Add(this.button2); + this.Controls.Add(this.label1); + this.Controls.Add(this.button1); this.Name = "Form1"; this.Text = "Form1"; this.ResumeLayout(false); + this.PerformLayout(); } #endregion + + private System.Windows.Forms.Button button1; + private System.Windows.Forms.Label label1; + private System.Windows.Forms.Button button2; + private System.Windows.Forms.Label label2; } } diff --git a/Project Ports/Form1.cs b/Project Ports/Form1.cs index 7530d37..23049d6 100644 --- a/Project Ports/Form1.cs +++ b/Project Ports/Form1.cs @@ -1,4 +1,23 @@ -using System; +/************************************************************************ + * + * Project Ports + * Copyright (C) 2018 AleeCorp + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + **************************************************************************/ +using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; @@ -16,5 +35,15 @@ namespace Project_Ports { InitializeComponent(); } + + private void button1_Click(object sender, EventArgs e) + { + MessageBox.Show("Oof... you can't play this game yet. Our team is working very hard :)"); + } + + private void button2_Click(object sender, EventArgs e) + { + this.Close(); + } } } diff --git a/Project Ports/Form1.resx b/Project Ports/Form1.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/Project Ports/Form1.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/Project Ports/Program.cs b/Project Ports/Program.cs index c8db6f2..1f36b09 100644 --- a/Project Ports/Program.cs +++ b/Project Ports/Program.cs @@ -1,4 +1,23 @@ -using System; +/************************************************************************ + * + * Project Ports + * Copyright (C) 2018 AleeCorp + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + **************************************************************************/ +using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; diff --git a/Project Ports/Project Ports.csproj b/Project Ports/Project Ports.csproj index 8d5fad0..6d9cf01 100644 --- a/Project Ports/Project Ports.csproj +++ b/Project Ports/Project Ports.csproj @@ -53,6 +53,9 @@ + + Form1.cs + ResXFileCodeGenerator Resources.Designer.cs -- cgit v1.2.3