From cebc36ad82b35856c78ea7de4b0b412b48cc526e Mon Sep 17 00:00:00 2001 From: Alee14 Date: Sat, 12 May 2018 20:24:09 -0400 Subject: Main menu changes and added about --- Project Ports/About.Designer.cs | 78 ++++++++++++++++++ Project Ports/About.cs | 44 ++++++++++ Project Ports/About.resx | 138 ++++++++++++++++++++++++++++++++ Project Ports/Form1.Designer.cs | 105 ------------------------ Project Ports/Form1.cs | 49 ------------ Project Ports/Form1.resx | 120 ---------------------------- Project Ports/MainMenu.Designer.cs | 159 +++++++++++++++++++++++++++++++++++++ Project Ports/MainMenu.cs | 55 +++++++++++++ Project Ports/MainMenu.resx | 120 ++++++++++++++++++++++++++++ Project Ports/Program.cs | 2 +- Project Ports/Project Ports.csproj | 19 +++-- 11 files changed, 609 insertions(+), 280 deletions(-) create mode 100644 Project Ports/About.Designer.cs create mode 100644 Project Ports/About.cs create mode 100644 Project Ports/About.resx delete mode 100644 Project Ports/Form1.Designer.cs delete mode 100644 Project Ports/Form1.cs delete mode 100644 Project Ports/Form1.resx create mode 100644 Project Ports/MainMenu.Designer.cs create mode 100644 Project Ports/MainMenu.cs create mode 100644 Project Ports/MainMenu.resx (limited to 'Project Ports') diff --git a/Project Ports/About.Designer.cs b/Project Ports/About.Designer.cs new file mode 100644 index 0000000..85a9a7d --- /dev/null +++ b/Project Ports/About.Designer.cs @@ -0,0 +1,78 @@ +namespace Project_Ports +{ + partial class About + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(About)); + this.richTextBox1 = new System.Windows.Forms.RichTextBox(); + this.button1 = new System.Windows.Forms.Button(); + this.SuspendLayout(); + // + // richTextBox1 + // + this.richTextBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.richTextBox1.Enabled = false; + this.richTextBox1.Location = new System.Drawing.Point(12, 31); + this.richTextBox1.Name = "richTextBox1"; + this.richTextBox1.Size = new System.Drawing.Size(416, 311); + this.richTextBox1.TabIndex = 0; + this.richTextBox1.Text = resources.GetString("richTextBox1.Text"); + // + // button1 + // + this.button1.Anchor = System.Windows.Forms.AnchorStyles.Bottom; + this.button1.Location = new System.Drawing.Point(165, 362); + this.button1.Name = "button1"; + this.button1.Size = new System.Drawing.Size(97, 44); + this.button1.TabIndex = 1; + this.button1.Text = "Close"; + this.button1.UseVisualStyleBackColor = true; + this.button1.Click += new System.EventHandler(this.button1_Click); + // + // About + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(440, 418); + this.ControlBox = false; + this.Controls.Add(this.button1); + this.Controls.Add(this.richTextBox1); + this.Name = "About"; + this.Text = "About"; + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.RichTextBox richTextBox1; + private System.Windows.Forms.Button button1; + } +} \ No newline at end of file diff --git a/Project Ports/About.cs b/Project Ports/About.cs new file mode 100644 index 0000000..3ab8ac1 --- /dev/null +++ b/Project Ports/About.cs @@ -0,0 +1,44 @@ +/************************************************************************ + * + * 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; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace Project_Ports +{ + public partial class About : Form + { + public About() + { + InitializeComponent(); + } + + private void button1_Click(object sender, EventArgs e) + { + this.Close(); + } + } +} diff --git a/Project Ports/About.resx b/Project Ports/About.resx new file mode 100644 index 0000000..f4b7cd6 --- /dev/null +++ b/Project Ports/About.resx @@ -0,0 +1,138 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + + + 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 <https://www.gnu.org/licenses/> + + \ No newline at end of file diff --git a/Project Ports/Form1.Designer.cs b/Project Ports/Form1.Designer.cs deleted file mode 100644 index 793f15c..0000000 --- a/Project Ports/Form1.Designer.cs +++ /dev/null @@ -1,105 +0,0 @@ -namespace Project_Ports -{ - partial class Form1 - { - /// - /// Required designer variable. - /// - private System.ComponentModel.IContainer components = null; - - /// - /// Clean up any resources being used. - /// - /// true if managed resources should be disposed; otherwise, false. - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region Windows Form Designer generated code - - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - 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.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 deleted file mode 100644 index 23049d6..0000000 --- a/Project Ports/Form1.cs +++ /dev/null @@ -1,49 +0,0 @@ -/************************************************************************ - * - * 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; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using System.Windows.Forms; - -namespace Project_Ports -{ - public partial class Form1 : Form - { - public Form1() - { - 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 deleted file mode 100644 index 1af7de1..0000000 --- a/Project Ports/Form1.resx +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 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/MainMenu.Designer.cs b/Project Ports/MainMenu.Designer.cs new file mode 100644 index 0000000..3c00002 --- /dev/null +++ b/Project Ports/MainMenu.Designer.cs @@ -0,0 +1,159 @@ +namespace Project_Ports +{ + partial class MainMenu + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + 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.button3 = new System.Windows.Forms.Button(); + this.webBrowser1 = new System.Windows.Forms.WebBrowser(); + this.label3 = new System.Windows.Forms.Label(); + this.SuspendLayout(); + // + // button1 + // + this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.button1.Font = new System.Drawing.Font("Lucida Console", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.button1.ForeColor = System.Drawing.Color.White; + this.button1.Location = new System.Drawing.Point(53, 103); + this.button1.Name = "button1"; + this.button1.Size = new System.Drawing.Size(193, 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", 20.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label1.ForeColor = System.Drawing.Color.White; + this.label1.Location = new System.Drawing.Point(47, 49); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(210, 32); + this.label1.TabIndex = 1; + this.label1.Text = "Project Ports"; + // + // button2 + // + this.button2.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.button2.Font = new System.Drawing.Font("Lucida Console", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.button2.ForeColor = System.Drawing.Color.White; + this.button2.Location = new System.Drawing.Point(53, 223); + this.button2.Name = "button2"; + this.button2.Size = new System.Drawing.Size(193, 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.Anchor = System.Windows.Forms.AnchorStyles.Bottom; + 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(542, 646); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(252, 38); + this.label2.TabIndex = 3; + this.label2.Text = "Copyright (C) 2018 AleeCorp\r\nLicensed with: GPL 3.0"; + // + // button3 + // + this.button3.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.button3.Font = new System.Drawing.Font("Lucida Console", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.button3.ForeColor = System.Drawing.Color.White; + this.button3.Location = new System.Drawing.Point(53, 162); + this.button3.Name = "button3"; + this.button3.Size = new System.Drawing.Size(193, 44); + this.button3.TabIndex = 4; + this.button3.Text = "About"; + this.button3.UseVisualStyleBackColor = true; + this.button3.Click += new System.EventHandler(this.button3_Click); + // + // webBrowser1 + // + this.webBrowser1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.webBrowser1.Location = new System.Drawing.Point(298, 29); + this.webBrowser1.MinimumSize = new System.Drawing.Size(20, 20); + this.webBrowser1.Name = "webBrowser1"; + this.webBrowser1.Size = new System.Drawing.Size(891, 591); + this.webBrowser1.TabIndex = 5; + this.webBrowser1.Url = new System.Uri("https://aleecorp.github.io/project-ports", System.UriKind.Absolute); + // + // label3 + // + this.label3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); + this.label3.AutoSize = true; + this.label3.Font = new System.Drawing.Font("Lucida Console", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label3.ForeColor = System.Drawing.Color.White; + this.label3.Location = new System.Drawing.Point(50, 646); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(79, 13); + this.label3.TabIndex = 6; + this.label3.Text = "Alpha 0.1"; + // + // Form1 + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.BackColor = System.Drawing.Color.Black; + this.ClientSize = new System.Drawing.Size(1235, 704); + this.Controls.Add(this.label3); + this.Controls.Add(this.webBrowser1); + this.Controls.Add(this.button3); + this.Controls.Add(this.label2); + this.Controls.Add(this.button2); + this.Controls.Add(this.label1); + this.Controls.Add(this.button1); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; + this.Name = "Form1"; + this.Text = "Form1"; + this.WindowState = System.Windows.Forms.FormWindowState.Maximized; + 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; + private System.Windows.Forms.Button button3; + private System.Windows.Forms.WebBrowser webBrowser1; + private System.Windows.Forms.Label label3; + } +} + diff --git a/Project Ports/MainMenu.cs b/Project Ports/MainMenu.cs new file mode 100644 index 0000000..8a38936 --- /dev/null +++ b/Project Ports/MainMenu.cs @@ -0,0 +1,55 @@ +/************************************************************************ + * + * 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; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace Project_Ports +{ + public partial class MainMenu : Form + { + public MainMenu() + { + InitializeComponent(); + } + + private void button1_Click(object sender, EventArgs e) + { + MessageBox.Show("Oof... you can't play this game yet, but our team is working very hard :)"); + } + + private void button2_Click(object sender, EventArgs e) + { + this.Close(); + } + + private void button3_Click(object sender, EventArgs e) + { + About aboutForm = new About(); + aboutForm.Show(); + } + } +} diff --git a/Project Ports/MainMenu.resx b/Project Ports/MainMenu.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/Project Ports/MainMenu.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 1f36b09..24ce12e 100644 --- a/Project Ports/Program.cs +++ b/Project Ports/Program.cs @@ -35,7 +35,7 @@ namespace Project_Ports { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); - Application.Run(new Form1()); + Application.Run(new MainMenu()); } } } diff --git a/Project Ports/Project Ports.csproj b/Project Ports/Project Ports.csproj index 6d9cf01..07170cc 100644 --- a/Project Ports/Project Ports.csproj +++ b/Project Ports/Project Ports.csproj @@ -45,16 +45,25 @@ - + Form - - Form1.cs + + About.cs + + + Form + + + MainMenu.cs - - Form1.cs + + About.cs + + + MainMenu.cs ResXFileCodeGenerator -- cgit v1.2.3