From 5b5825ff4491047838ad12df69c6aa40f1af5299 Mon Sep 17 00:00:00 2001 From: Andrew Date: Wed, 29 Aug 2018 12:40:57 -0400 Subject: Added licenses and added panels on boot and crash --- PortEngine/QuantumAPI/Sites/EarnSite.Designer.cs | 86 ++++++++++++++++ PortEngine/QuantumAPI/Sites/EarnSite.cs | 20 ++++ PortEngine/QuantumAPI/Sites/EarnSite.resx | 120 +++++++++++++++++++++++ Project Ports/Boot.Designer.cs | 24 ++++- Project Ports/Boot.cs | 1 - Project Ports/Crash.Designer.cs | 28 ++++-- Project Ports/Crash.cs | 5 +- Project Ports/DebugMode.cs | 21 +++- Project Ports/hijackScreen.cs | 21 +++- 9 files changed, 310 insertions(+), 16 deletions(-) create mode 100644 PortEngine/QuantumAPI/Sites/EarnSite.Designer.cs create mode 100644 PortEngine/QuantumAPI/Sites/EarnSite.cs create mode 100644 PortEngine/QuantumAPI/Sites/EarnSite.resx diff --git a/PortEngine/QuantumAPI/Sites/EarnSite.Designer.cs b/PortEngine/QuantumAPI/Sites/EarnSite.Designer.cs new file mode 100644 index 0000000..a988169 --- /dev/null +++ b/PortEngine/QuantumAPI/Sites/EarnSite.Designer.cs @@ -0,0 +1,86 @@ +namespace PortEngine +{ + partial class EarnSite + { + /// + /// 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 Component Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.btnOpenGTN = new System.Windows.Forms.Button(); + this.btnLaunchDTA = new System.Windows.Forms.Button(); + this.label1 = new System.Windows.Forms.Label(); + this.SuspendLayout(); + // + // btnOpenGTN + // + this.btnOpenGTN.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.btnOpenGTN.Location = new System.Drawing.Point(30, 75); + this.btnOpenGTN.Name = "btnOpenGTN"; + this.btnOpenGTN.Size = new System.Drawing.Size(160, 39); + this.btnOpenGTN.TabIndex = 0; + this.btnOpenGTN.Text = "Guess the Number"; + this.btnOpenGTN.UseVisualStyleBackColor = true; + // + // btnLaunchDTA + // + this.btnLaunchDTA.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.btnLaunchDTA.Location = new System.Drawing.Point(225, 75); + this.btnLaunchDTA.Name = "btnLaunchDTA"; + this.btnLaunchDTA.Size = new System.Drawing.Size(160, 39); + this.btnLaunchDTA.TabIndex = 1; + this.btnLaunchDTA.Text = "Dodge the Ad"; + this.btnLaunchDTA.UseVisualStyleBackColor = true; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Font = new System.Drawing.Font("Consolas", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label1.Location = new System.Drawing.Point(328, 17); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(154, 24); + this.label1.TabIndex = 2; + this.label1.Text = "PortOS Games"; + // + // EarnSite + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.Controls.Add(this.label1); + this.Controls.Add(this.btnLaunchDTA); + this.Controls.Add(this.btnOpenGTN); + this.Name = "EarnSite"; + this.Size = new System.Drawing.Size(842, 452); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.Button btnOpenGTN; + private System.Windows.Forms.Button btnLaunchDTA; + private System.Windows.Forms.Label label1; + } +} diff --git a/PortEngine/QuantumAPI/Sites/EarnSite.cs b/PortEngine/QuantumAPI/Sites/EarnSite.cs new file mode 100644 index 0000000..6b56782 --- /dev/null +++ b/PortEngine/QuantumAPI/Sites/EarnSite.cs @@ -0,0 +1,20 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Drawing; +using System.Data; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace PortEngine +{ + public partial class EarnSite : UserControl + { + public EarnSite() + { + InitializeComponent(); + } + } +} diff --git a/PortEngine/QuantumAPI/Sites/EarnSite.resx b/PortEngine/QuantumAPI/Sites/EarnSite.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/PortEngine/QuantumAPI/Sites/EarnSite.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/Boot.Designer.cs b/Project Ports/Boot.Designer.cs index e07b929..fdf84db 100644 --- a/Project Ports/Boot.Designer.cs +++ b/Project Ports/Boot.Designer.cs @@ -29,6 +29,8 @@ private void InitializeComponent() { this.txtBoot = new System.Windows.Forms.RichTextBox(); + this.panel1 = new System.Windows.Forms.Panel(); + this.panel1.SuspendLayout(); this.SuspendLayout(); // // txtBoot @@ -40,7 +42,7 @@ this.txtBoot.BorderStyle = System.Windows.Forms.BorderStyle.None; this.txtBoot.Cursor = System.Windows.Forms.Cursors.IBeam; this.txtBoot.ForeColor = System.Drawing.Color.White; - this.txtBoot.Location = new System.Drawing.Point(12, 12); + this.txtBoot.Location = new System.Drawing.Point(11, 12); this.txtBoot.Name = "txtBoot"; this.txtBoot.ReadOnly = true; this.txtBoot.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.None; @@ -48,20 +50,33 @@ this.txtBoot.TabIndex = 0; this.txtBoot.Text = ""; // + // panel1 + // + this.panel1.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.panel1.BackColor = System.Drawing.Color.Black; + this.panel1.Controls.Add(this.txtBoot); + this.panel1.Location = new System.Drawing.Point(-1, 0); + this.panel1.Name = "panel1"; + this.panel1.Size = new System.Drawing.Size(590, 460); + this.panel1.TabIndex = 1; + // // Boot // this.AutoScaleDimensions = new System.Drawing.SizeF(10F, 22F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.BackColor = System.Drawing.Color.Black; + this.BackColor = System.Drawing.Color.White; this.ClientSize = new System.Drawing.Size(589, 453); - this.Controls.Add(this.txtBoot); + this.Controls.Add(this.panel1); this.Font = new System.Drawing.Font("Consolas", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.ForeColor = System.Drawing.Color.White; this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; - this.Margin = new System.Windows.Forms.Padding(5, 5, 5, 5); + this.Margin = new System.Windows.Forms.Padding(5); this.Name = "Boot"; this.Text = "Boot"; this.Load += new System.EventHandler(this.Boot_Load); + this.panel1.ResumeLayout(false); this.ResumeLayout(false); } @@ -69,5 +84,6 @@ #endregion private System.Windows.Forms.RichTextBox txtBoot; + private System.Windows.Forms.Panel panel1; } } \ No newline at end of file diff --git a/Project Ports/Boot.cs b/Project Ports/Boot.cs index 4aa9380..351137a 100644 --- a/Project Ports/Boot.cs +++ b/Project Ports/Boot.cs @@ -20,7 +20,6 @@ namespace Project_Ports private void Boot_Load(object sender, EventArgs e) { - this.BringToFront(); Thread.Sleep(2000); txtBoot.AppendText("PortOS is now booting..."); Thread.Sleep(2000); diff --git a/Project Ports/Crash.Designer.cs b/Project Ports/Crash.Designer.cs index 5f3906a..8c9d8d7 100644 --- a/Project Ports/Crash.Designer.cs +++ b/Project Ports/Crash.Designer.cs @@ -30,6 +30,8 @@ { this.txtCrash = new System.Windows.Forms.RichTextBox(); this.button1 = new System.Windows.Forms.Button(); + this.panel1 = new System.Windows.Forms.Panel(); + this.panel1.SuspendLayout(); this.SuspendLayout(); // // txtCrash @@ -42,12 +44,12 @@ this.txtCrash.Cursor = System.Windows.Forms.Cursors.IBeam; this.txtCrash.Font = new System.Drawing.Font("Consolas", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.txtCrash.ForeColor = System.Drawing.Color.Red; - this.txtCrash.Location = new System.Drawing.Point(12, 12); + this.txtCrash.Location = new System.Drawing.Point(21, 15); this.txtCrash.MaxLength = 32767; this.txtCrash.Name = "txtCrash"; this.txtCrash.ReadOnly = true; this.txtCrash.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.None; - this.txtCrash.Size = new System.Drawing.Size(693, 441); + this.txtCrash.Size = new System.Drawing.Size(684, 439); this.txtCrash.TabIndex = 0; this.txtCrash.Text = "PortOS.GUI has crashed...\nSYSTEM ERROR: CRASHED\nRebooting PortOS...."; // @@ -55,7 +57,7 @@ // this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.button1.ForeColor = System.Drawing.Color.White; - this.button1.Location = new System.Drawing.Point(553, 430); + this.button1.Location = new System.Drawing.Point(533, 417); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(152, 23); this.button1.TabIndex = 1; @@ -63,19 +65,32 @@ this.button1.UseVisualStyleBackColor = true; this.button1.Click += new System.EventHandler(this.button1_Click); // + // panel1 + // + this.panel1.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.panel1.BackColor = System.Drawing.Color.Black; + this.panel1.Controls.Add(this.button1); + this.panel1.Controls.Add(this.txtCrash); + this.panel1.Location = new System.Drawing.Point(0, -1); + this.panel1.Name = "panel1"; + this.panel1.Size = new System.Drawing.Size(717, 467); + this.panel1.TabIndex = 2; + // // Crash // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.BackColor = System.Drawing.Color.Black; + this.BackColor = System.Drawing.Color.White; this.ClientSize = new System.Drawing.Size(717, 465); - this.Controls.Add(this.button1); - this.Controls.Add(this.txtCrash); + this.Controls.Add(this.panel1); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; this.Name = "Crash"; this.Text = "Crash"; this.WindowState = System.Windows.Forms.FormWindowState.Maximized; this.Load += new System.EventHandler(this.Crash_Load); + this.panel1.ResumeLayout(false); this.ResumeLayout(false); } @@ -84,5 +99,6 @@ private System.Windows.Forms.RichTextBox txtCrash; private System.Windows.Forms.Button button1; + private System.Windows.Forms.Panel panel1; } } \ No newline at end of file diff --git a/Project Ports/Crash.cs b/Project Ports/Crash.cs index 346aa40..ac78359 100644 --- a/Project Ports/Crash.cs +++ b/Project Ports/Crash.cs @@ -21,8 +21,7 @@ namespace Project_Ports private void Crash_Load(object sender, EventArgs e) { - this.BringToFront(); - /* + Thread.Sleep(2000); if (Properties.Settings.Default.hijacked2 == true) { MessageBox.Show("Coming soon!"); @@ -32,7 +31,7 @@ namespace Project_Ports Boot boot = new Boot(); boot.Show(); this.Close(); - }*/ + } } private void button1_Click(object sender, EventArgs e) diff --git a/Project Ports/DebugMode.cs b/Project Ports/DebugMode.cs index e9e4e3a..e42472c 100644 --- a/Project Ports/DebugMode.cs +++ b/Project Ports/DebugMode.cs @@ -1,4 +1,23 @@ -using System; +/************************************************************************ + * + * Project Ports + * Copyright (C) 2018 UniverseDG + * + * 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; diff --git a/Project Ports/hijackScreen.cs b/Project Ports/hijackScreen.cs index 5855d17..97e5e33 100644 --- a/Project Ports/hijackScreen.cs +++ b/Project Ports/hijackScreen.cs @@ -1,4 +1,23 @@ -using System; +/************************************************************************ + * + * Project Ports + * Copyright (C) 2018 UniverseDG + * + * 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; -- cgit v1.2.3