From 944d0efd0c7c50771398169862fc5dcbe4dc0086 Mon Sep 17 00:00:00 2001 From: Alee14 Date: Sun, 13 May 2018 12:35:21 -0400 Subject: Added debug mode --- PortEngine/WindowManager/WM.Designer.cs | 33 +++++++-- Project Ports/DebugMode.Designer.cs | 61 ++++++++++++++++ Project Ports/DebugMode.cs | 20 ++++++ Project Ports/DebugMode.resx | 120 ++++++++++++++++++++++++++++++++ Project Ports/Desktop.Designer.cs | 4 +- Project Ports/MainMenu.Designer.cs | 22 +++++- Project Ports/MainMenu.cs | 6 ++ Project Ports/Project Ports.csproj | 9 +++ 8 files changed, 266 insertions(+), 9 deletions(-) create mode 100644 Project Ports/DebugMode.Designer.cs create mode 100644 Project Ports/DebugMode.cs create mode 100644 Project Ports/DebugMode.resx diff --git a/PortEngine/WindowManager/WM.Designer.cs b/PortEngine/WindowManager/WM.Designer.cs index 400de7d..5737799 100644 --- a/PortEngine/WindowManager/WM.Designer.cs +++ b/PortEngine/WindowManager/WM.Designer.cs @@ -29,26 +29,49 @@ private void InitializeComponent() { this.panel1 = new System.Windows.Forms.Panel(); + this.panel3 = new System.Windows.Forms.Panel(); + this.panel2 = new System.Windows.Forms.Panel(); + this.panel1.SuspendLayout(); + this.panel2.SuspendLayout(); this.SuspendLayout(); // // panel1 // this.panel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); - this.panel1.Location = new System.Drawing.Point(-1, 0); + this.panel1.Controls.Add(this.panel3); + this.panel1.Location = new System.Drawing.Point(0, 0); this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(407, 32); + this.panel1.Size = new System.Drawing.Size(343, 32); this.panel1.TabIndex = 0; // + // panel3 + // + this.panel3.Location = new System.Drawing.Point(0, 29); + this.panel3.Name = "panel3"; + this.panel3.Size = new System.Drawing.Size(10, 319); + this.panel3.TabIndex = 2; + // + // panel2 + // + this.panel2.Controls.Add(this.panel1); + this.panel2.Dock = System.Windows.Forms.DockStyle.Fill; + this.panel2.Location = new System.Drawing.Point(0, 0); + this.panel2.Name = "panel2"; + this.panel2.Size = new System.Drawing.Size(343, 283); + this.panel2.TabIndex = 1; + // // WM // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.BackColor = System.Drawing.Color.White; - this.ClientSize = new System.Drawing.Size(405, 349); - this.Controls.Add(this.panel1); + this.ClientSize = new System.Drawing.Size(343, 283); + this.Controls.Add(this.panel2); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; this.Name = "WM"; this.Text = "WM"; + this.panel1.ResumeLayout(false); + this.panel2.ResumeLayout(false); this.ResumeLayout(false); } @@ -56,5 +79,7 @@ #endregion private System.Windows.Forms.Panel panel1; + private System.Windows.Forms.Panel panel3; + private System.Windows.Forms.Panel panel2; } } \ No newline at end of file diff --git a/Project Ports/DebugMode.Designer.cs b/Project Ports/DebugMode.Designer.cs new file mode 100644 index 0000000..88a26ff --- /dev/null +++ b/Project Ports/DebugMode.Designer.cs @@ -0,0 +1,61 @@ +namespace Project_Ports +{ + partial class DebugMode + { + /// + /// 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.label1 = new System.Windows.Forms.Label(); + this.SuspendLayout(); + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Font = new System.Drawing.Font("Consolas", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label1.Location = new System.Drawing.Point(34, 74); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(207, 34); + this.label1.TabIndex = 0; + this.label1.Text = "COMING SOON!"; + // + // DebugMode + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(293, 223); + this.Controls.Add(this.label1); + this.Name = "DebugMode"; + this.Text = "DebugMode"; + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.Label label1; + } +} \ No newline at end of file diff --git a/Project Ports/DebugMode.cs b/Project Ports/DebugMode.cs new file mode 100644 index 0000000..dc25eca --- /dev/null +++ b/Project Ports/DebugMode.cs @@ -0,0 +1,20 @@ +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 DebugMode : Form + { + public DebugMode() + { + InitializeComponent(); + } + } +} diff --git a/Project Ports/DebugMode.resx b/Project Ports/DebugMode.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/Project Ports/DebugMode.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/Desktop.Designer.cs b/Project Ports/Desktop.Designer.cs index 730738c..73492dd 100644 --- a/Project Ports/Desktop.Designer.cs +++ b/Project Ports/Desktop.Designer.cs @@ -103,9 +103,9 @@ this.ltime.ForeColor = System.Drawing.Color.Black; this.ltime.Location = new System.Drawing.Point(753, 7); this.ltime.Name = "ltime"; - this.ltime.Size = new System.Drawing.Size(35, 13); + this.ltime.Size = new System.Drawing.Size(26, 13); this.ltime.TabIndex = 1; - this.ltime.Text = "label1"; + this.ltime.Text = "time"; this.ltime.Click += new System.EventHandler(this.label1_Click); // // Desktop diff --git a/Project Ports/MainMenu.Designer.cs b/Project Ports/MainMenu.Designer.cs index cfe4607..0c3bc93 100644 --- a/Project Ports/MainMenu.Designer.cs +++ b/Project Ports/MainMenu.Designer.cs @@ -35,6 +35,7 @@ this.btnAbout = new System.Windows.Forms.Button(); this.webBrowser1 = new System.Windows.Forms.WebBrowser(); this.label3 = new System.Windows.Forms.Label(); + this.btnDebugMode = new System.Windows.Forms.Button(); this.SuspendLayout(); // // btnPlay @@ -55,7 +56,7 @@ 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.Location = new System.Drawing.Point(47, 41); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(210, 32); this.label1.TabIndex = 1; @@ -66,7 +67,7 @@ this.btnExit.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnExit.Font = new System.Drawing.Font("Lucida Console", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.btnExit.ForeColor = System.Drawing.Color.White; - this.btnExit.Location = new System.Drawing.Point(53, 223); + this.btnExit.Location = new System.Drawing.Point(53, 253); this.btnExit.Name = "btnExit"; this.btnExit.Size = new System.Drawing.Size(193, 44); this.btnExit.TabIndex = 2; @@ -91,7 +92,7 @@ this.btnAbout.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.btnAbout.Font = new System.Drawing.Font("Lucida Console", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.btnAbout.ForeColor = System.Drawing.Color.White; - this.btnAbout.Location = new System.Drawing.Point(53, 162); + this.btnAbout.Location = new System.Drawing.Point(53, 203); this.btnAbout.Name = "btnAbout"; this.btnAbout.Size = new System.Drawing.Size(193, 44); this.btnAbout.TabIndex = 4; @@ -123,12 +124,26 @@ this.label3.TabIndex = 6; this.label3.Text = "Alpha 0.1"; // + // btnDebugMode + // + this.btnDebugMode.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.btnDebugMode.Font = new System.Drawing.Font("Lucida Console", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.btnDebugMode.ForeColor = System.Drawing.Color.White; + this.btnDebugMode.Location = new System.Drawing.Point(53, 153); + this.btnDebugMode.Name = "btnDebugMode"; + this.btnDebugMode.Size = new System.Drawing.Size(193, 44); + this.btnDebugMode.TabIndex = 7; + this.btnDebugMode.Text = "Debug Mode"; + this.btnDebugMode.UseVisualStyleBackColor = true; + this.btnDebugMode.Click += new System.EventHandler(this.btnDebugMode_Click); + // // MainMenu // 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.btnDebugMode); this.Controls.Add(this.label3); this.Controls.Add(this.webBrowser1); this.Controls.Add(this.btnAbout); @@ -155,6 +170,7 @@ private System.Windows.Forms.Button btnAbout; private System.Windows.Forms.WebBrowser webBrowser1; private System.Windows.Forms.Label label3; + private System.Windows.Forms.Button btnDebugMode; } } diff --git a/Project Ports/MainMenu.cs b/Project Ports/MainMenu.cs index 8a6da25..89c91e9 100644 --- a/Project Ports/MainMenu.cs +++ b/Project Ports/MainMenu.cs @@ -57,5 +57,11 @@ namespace Project_Ports { } + + private void btnDebugMode_Click(object sender, EventArgs e) + { + DebugMode debugForm = new DebugMode(); + debugForm.Show(); + } } } \ No newline at end of file diff --git a/Project Ports/Project Ports.csproj b/Project Ports/Project Ports.csproj index cc42815..d88e10a 100644 --- a/Project Ports/Project Ports.csproj +++ b/Project Ports/Project Ports.csproj @@ -51,6 +51,12 @@ About.cs + + Form + + + DebugMode.cs + Form @@ -68,6 +74,9 @@ About.cs + + DebugMode.cs + Desktop.cs -- cgit v1.2.3