diff options
| -rw-r--r-- | Project Ports/Desktop.Designer.cs | 287 | ||||
| -rw-r--r-- | Project Ports/Desktop.cs | 115 | ||||
| -rw-r--r-- | Project Ports/Desktop.resx | 14 | ||||
| -rw-r--r-- | Project Ports/MainMenu.cs | 13 | ||||
| -rw-r--r-- | Project Ports/Project Ports.csproj | 9 | ||||
| -rw-r--r-- | Project Ports/hijackScreen.Designer.cs | 86 | ||||
| -rw-r--r-- | Project Ports/hijackScreen.cs | 94 | ||||
| -rw-r--r-- | Project Ports/hijackScreen.resx | 123 |
8 files changed, 527 insertions, 214 deletions
diff --git a/Project Ports/Desktop.Designer.cs b/Project Ports/Desktop.Designer.cs index e11af99..360fa51 100644 --- a/Project Ports/Desktop.Designer.cs +++ b/Project Ports/Desktop.Designer.cs @@ -29,193 +29,234 @@ private void InitializeComponent() { this.components = new System.ComponentModel.Container(); - this.appMenu = new System.Windows.Forms.MenuStrip(); - this.menuToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.programsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.ltime = new System.Windows.Forms.Label(); + this.dclock = new System.Windows.Forms.Timer(this.components); + this.textgen = new System.Windows.Forms.Timer(this.components); + this.appMenu = new System.Windows.Forms.Panel(); + this.programStrip = new System.Windows.Forms.ToolStrip(); + this.panel2 = new System.Windows.Forms.Panel(); + this.shutdownButton = new System.Windows.Forms.Button(); + this.panel1 = new System.Windows.Forms.Panel(); + this.playerName = new System.Windows.Forms.Label(); + this.taskBar = new System.Windows.Forms.Panel(); + this.appButton = new System.Windows.Forms.Button(); + this.toolStripDropDownButton1 = new System.Windows.Forms.ToolStripDropDownButton(); this.terminalToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.testWindowToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.chatterToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.quantumNetBrowserToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.settingsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); - this.shutdownToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.ltime = new System.Windows.Forms.Label(); - this.dclock = new System.Windows.Forms.Timer(this.components); - this.hijackScreen = new System.Windows.Forms.Panel(); - this.txtHijack = new System.Windows.Forms.TextBox(); - this.textgen = new System.Windows.Forms.Timer(this.components); + this.quantumNetBrowserToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.appMenu.SuspendLayout(); - this.hijackScreen.SuspendLayout(); + this.programStrip.SuspendLayout(); + this.panel2.SuspendLayout(); + this.panel1.SuspendLayout(); + this.taskBar.SuspendLayout(); this.SuspendLayout(); // + // ltime + // + this.ltime.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.ltime.AutoSize = true; + this.ltime.BackColor = System.Drawing.Color.DarkGray; + this.ltime.Font = new System.Drawing.Font("Consolas", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.ltime.ForeColor = System.Drawing.Color.Black; + this.ltime.Location = new System.Drawing.Point(991, 9); + this.ltime.Name = "ltime"; + this.ltime.Size = new System.Drawing.Size(63, 15); + this.ltime.TabIndex = 1; + this.ltime.Text = "00:00 AM"; + // + // dclock + // + this.dclock.Tick += new System.EventHandler(this.dclock_Tick); + // // appMenu // - this.appMenu.BackColor = System.Drawing.Color.Silver; - this.appMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.menuToolStripMenuItem}); - this.appMenu.Location = new System.Drawing.Point(0, 0); + this.appMenu.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); + this.appMenu.Controls.Add(this.programStrip); + this.appMenu.Controls.Add(this.panel2); + this.appMenu.Controls.Add(this.panel1); + this.appMenu.ForeColor = System.Drawing.Color.Black; + this.appMenu.Location = new System.Drawing.Point(0, 32); this.appMenu.Name = "appMenu"; - this.appMenu.Size = new System.Drawing.Size(800, 24); - this.appMenu.TabIndex = 0; - this.appMenu.Text = "menuStrip1"; + this.appMenu.Size = new System.Drawing.Size(376, 429); + this.appMenu.TabIndex = 3; // - // menuToolStripMenuItem + // programStrip // - this.menuToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.programsToolStripMenuItem, - this.settingsToolStripMenuItem, - this.toolStripSeparator1, - this.shutdownToolStripMenuItem}); - this.menuToolStripMenuItem.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.menuToolStripMenuItem.ForeColor = System.Drawing.Color.Black; - this.menuToolStripMenuItem.Name = "menuToolStripMenuItem"; - this.menuToolStripMenuItem.Size = new System.Drawing.Size(51, 20); - this.menuToolStripMenuItem.Text = "Menu"; + this.programStrip.Dock = System.Windows.Forms.DockStyle.None; + this.programStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.toolStripDropDownButton1}); + this.programStrip.Location = new System.Drawing.Point(9, 349); + this.programStrip.Name = "programStrip"; + this.programStrip.RenderMode = System.Windows.Forms.ToolStripRenderMode.Professional; + this.programStrip.Size = new System.Drawing.Size(88, 25); + this.programStrip.TabIndex = 2; + this.programStrip.Text = "toolStrip1"; + // + // panel2 + // + this.panel2.BackColor = System.Drawing.Color.Gray; + this.panel2.Controls.Add(this.shutdownButton); + this.panel2.Location = new System.Drawing.Point(0, 377); + this.panel2.Name = "panel2"; + this.panel2.Size = new System.Drawing.Size(376, 52); + this.panel2.TabIndex = 1; + // + // shutdownButton + // + this.shutdownButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.shutdownButton.Font = new System.Drawing.Font("Consolas", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.shutdownButton.ForeColor = System.Drawing.Color.White; + this.shutdownButton.Location = new System.Drawing.Point(284, 14); + this.shutdownButton.Name = "shutdownButton"; + this.shutdownButton.Size = new System.Drawing.Size(79, 27); + this.shutdownButton.TabIndex = 0; + this.shutdownButton.Text = "Shutdown"; + this.shutdownButton.UseVisualStyleBackColor = true; + this.shutdownButton.Click += new System.EventHandler(this.shutdownButton_Click); + // + // panel1 // - // programsToolStripMenuItem + this.panel1.BackColor = System.Drawing.Color.Gray; + this.panel1.Controls.Add(this.playerName); + this.panel1.ForeColor = System.Drawing.Color.Gray; + this.panel1.Location = new System.Drawing.Point(0, 1); + this.panel1.Name = "panel1"; + this.panel1.Size = new System.Drawing.Size(376, 51); + this.panel1.TabIndex = 0; // - this.programsToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { + // playerName + // + this.playerName.AutoSize = true; + this.playerName.ForeColor = System.Drawing.Color.White; + this.playerName.Location = new System.Drawing.Point(24, 18); + this.playerName.Name = "playerName"; + this.playerName.Size = new System.Drawing.Size(63, 13); + this.playerName.TabIndex = 0; + this.playerName.Text = "playerName"; + // + // taskBar + // + this.taskBar.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.taskBar.BackColor = System.Drawing.Color.DarkGray; + this.taskBar.Controls.Add(this.appButton); + this.taskBar.Controls.Add(this.ltime); + this.taskBar.Location = new System.Drawing.Point(0, 0); + this.taskBar.Name = "taskBar"; + this.taskBar.Size = new System.Drawing.Size(1066, 32); + this.taskBar.TabIndex = 4; + // + // appButton + // + this.appButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.appButton.Font = new System.Drawing.Font("Consolas", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.appButton.ForeColor = System.Drawing.Color.Black; + this.appButton.Location = new System.Drawing.Point(12, 6); + this.appButton.Name = "appButton"; + this.appButton.Size = new System.Drawing.Size(107, 23); + this.appButton.TabIndex = 2; + this.appButton.Text = "Applications"; + this.appButton.UseVisualStyleBackColor = true; + this.appButton.Click += new System.EventHandler(this.appButton_Click); + // + // toolStripDropDownButton1 + // + this.toolStripDropDownButton1.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; + this.toolStripDropDownButton1.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.terminalToolStripMenuItem, this.testWindowToolStripMenuItem, this.chatterToolStripMenuItem, + this.settingsToolStripMenuItem, this.quantumNetBrowserToolStripMenuItem}); - this.programsToolStripMenuItem.Name = "programsToolStripMenuItem"; - this.programsToolStripMenuItem.Size = new System.Drawing.Size(180, 22); - this.programsToolStripMenuItem.Text = "Programs"; + this.toolStripDropDownButton1.Font = new System.Drawing.Font("Consolas", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.toolStripDropDownButton1.ForeColor = System.Drawing.Color.Black; + this.toolStripDropDownButton1.ImageTransparentColor = System.Drawing.Color.Magenta; + this.toolStripDropDownButton1.Name = "toolStripDropDownButton1"; + this.toolStripDropDownButton1.Size = new System.Drawing.Size(76, 22); + this.toolStripDropDownButton1.Text = "Programs"; // // terminalToolStripMenuItem // this.terminalToolStripMenuItem.Name = "terminalToolStripMenuItem"; - this.terminalToolStripMenuItem.Size = new System.Drawing.Size(197, 22); + this.terminalToolStripMenuItem.Size = new System.Drawing.Size(189, 22); this.terminalToolStripMenuItem.Text = "Terminal"; - this.terminalToolStripMenuItem.Click += new System.EventHandler(this.terminalToolStripMenuItem_Click); + this.terminalToolStripMenuItem.Click += new System.EventHandler(this.terminalToolStripMenuItem_Click_1); // // testWindowToolStripMenuItem // this.testWindowToolStripMenuItem.Name = "testWindowToolStripMenuItem"; - this.testWindowToolStripMenuItem.Size = new System.Drawing.Size(197, 22); + this.testWindowToolStripMenuItem.Size = new System.Drawing.Size(189, 22); this.testWindowToolStripMenuItem.Text = "TestWindow"; - this.testWindowToolStripMenuItem.Click += new System.EventHandler(this.testWindowToolStripMenuItem_Click); + this.testWindowToolStripMenuItem.Click += new System.EventHandler(this.testWindowToolStripMenuItem_Click_1); // // chatterToolStripMenuItem // this.chatterToolStripMenuItem.Name = "chatterToolStripMenuItem"; - this.chatterToolStripMenuItem.Size = new System.Drawing.Size(197, 22); + this.chatterToolStripMenuItem.Size = new System.Drawing.Size(189, 22); this.chatterToolStripMenuItem.Text = "Chatter"; - this.chatterToolStripMenuItem.Click += new System.EventHandler(this.chatterToolStripMenuItem_Click); - // - // quantumNetBrowserToolStripMenuItem - // - this.quantumNetBrowserToolStripMenuItem.Name = "quantumNetBrowserToolStripMenuItem"; - this.quantumNetBrowserToolStripMenuItem.Size = new System.Drawing.Size(197, 22); - this.quantumNetBrowserToolStripMenuItem.Text = "QuantumNet Browser"; - this.quantumNetBrowserToolStripMenuItem.Click += new System.EventHandler(this.quantumNetBrowserToolStripMenuItem_Click); + this.chatterToolStripMenuItem.Click += new System.EventHandler(this.chatterToolStripMenuItem_Click_1); // // settingsToolStripMenuItem // this.settingsToolStripMenuItem.Name = "settingsToolStripMenuItem"; - this.settingsToolStripMenuItem.Size = new System.Drawing.Size(180, 22); + this.settingsToolStripMenuItem.Size = new System.Drawing.Size(189, 22); this.settingsToolStripMenuItem.Text = "Settings"; - this.settingsToolStripMenuItem.Click += new System.EventHandler(this.settingsToolStripMenuItem_Click); - // - // toolStripSeparator1 - // - this.toolStripSeparator1.Name = "toolStripSeparator1"; - this.toolStripSeparator1.Size = new System.Drawing.Size(177, 6); - // - // shutdownToolStripMenuItem - // - this.shutdownToolStripMenuItem.Name = "shutdownToolStripMenuItem"; - this.shutdownToolStripMenuItem.Size = new System.Drawing.Size(180, 22); - this.shutdownToolStripMenuItem.Text = "Shutdown"; - this.shutdownToolStripMenuItem.Click += new System.EventHandler(this.shutdownToolStripMenuItem_Click); - // - // ltime - // - this.ltime.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.ltime.AutoSize = true; - this.ltime.BackColor = System.Drawing.Color.Silver; - this.ltime.ForeColor = System.Drawing.Color.Black; - this.ltime.Location = new System.Drawing.Point(742, 6); - this.ltime.Name = "ltime"; - this.ltime.Size = new System.Drawing.Size(53, 13); - this.ltime.TabIndex = 1; - this.ltime.Text = "00:00 AM"; - this.ltime.Click += new System.EventHandler(this.label1_Click); + this.settingsToolStripMenuItem.Click += new System.EventHandler(this.settingsToolStripMenuItem_Click_1); // - // dclock - // - this.dclock.Tick += new System.EventHandler(this.dclock_Tick); - // - // hijackScreen - // - this.hijackScreen.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.hijackScreen.BackColor = System.Drawing.Color.Black; - this.hijackScreen.Controls.Add(this.txtHijack); - this.hijackScreen.Location = new System.Drawing.Point(0, 0); - this.hijackScreen.Name = "hijackScreen"; - this.hijackScreen.Size = new System.Drawing.Size(800, 450); - this.hijackScreen.TabIndex = 2; - // - // txtHijack + // quantumNetBrowserToolStripMenuItem // - this.txtHijack.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.txtHijack.BackColor = System.Drawing.Color.Black; - this.txtHijack.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.txtHijack.Font = new System.Drawing.Font("Consolas", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.txtHijack.ForeColor = System.Drawing.Color.White; - this.txtHijack.Location = new System.Drawing.Point(15, 12); - this.txtHijack.Multiline = true; - this.txtHijack.Name = "txtHijack"; - this.txtHijack.ReadOnly = true; - this.txtHijack.Size = new System.Drawing.Size(773, 426); - this.txtHijack.TabIndex = 3; + this.quantumNetBrowserToolStripMenuItem.Name = "quantumNetBrowserToolStripMenuItem"; + this.quantumNetBrowserToolStripMenuItem.Size = new System.Drawing.Size(189, 22); + this.quantumNetBrowserToolStripMenuItem.Text = "QuantumNet Browser"; + this.quantumNetBrowserToolStripMenuItem.Click += new System.EventHandler(this.quantumNetBrowserToolStripMenuItem_Click_1); // // Desktop // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.BackColor = System.Drawing.SystemColors.WindowFrame; - this.ClientSize = new System.Drawing.Size(800, 450); - this.Controls.Add(this.hijackScreen); - this.Controls.Add(this.ltime); + this.ClientSize = new System.Drawing.Size(1066, 560); + this.Controls.Add(this.taskBar); this.Controls.Add(this.appMenu); this.ForeColor = System.Drawing.Color.White; this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; - this.MainMenuStrip = this.appMenu; this.Name = "Desktop"; this.Text = "Desktop"; this.WindowState = System.Windows.Forms.FormWindowState.Maximized; this.Load += new System.EventHandler(this.Desktop_Load); + this.MouseClick += new System.Windows.Forms.MouseEventHandler(this.Desktop_MouseClick); this.appMenu.ResumeLayout(false); this.appMenu.PerformLayout(); - this.hijackScreen.ResumeLayout(false); - this.hijackScreen.PerformLayout(); + this.programStrip.ResumeLayout(false); + this.programStrip.PerformLayout(); + this.panel2.ResumeLayout(false); + this.panel1.ResumeLayout(false); + this.panel1.PerformLayout(); + this.taskBar.ResumeLayout(false); + this.taskBar.PerformLayout(); this.ResumeLayout(false); - this.PerformLayout(); } #endregion - - private System.Windows.Forms.MenuStrip appMenu; - private System.Windows.Forms.ToolStripMenuItem menuToolStripMenuItem; private System.Windows.Forms.Label ltime; - private System.Windows.Forms.ToolStripMenuItem programsToolStripMenuItem; - private System.Windows.Forms.ToolStripMenuItem settingsToolStripMenuItem; - private System.Windows.Forms.ToolStripMenuItem shutdownToolStripMenuItem; - private System.Windows.Forms.ToolStripSeparator toolStripSeparator1; - private System.Windows.Forms.ToolStripMenuItem terminalToolStripMenuItem; private System.Windows.Forms.Timer dclock; + private System.Windows.Forms.Timer textgen; + private System.Windows.Forms.Panel appMenu; + private System.Windows.Forms.Panel taskBar; + private System.Windows.Forms.Button appButton; + private System.Windows.Forms.Panel panel1; + private System.Windows.Forms.Label playerName; + private System.Windows.Forms.Panel panel2; + private System.Windows.Forms.Button shutdownButton; + private System.Windows.Forms.ToolStrip programStrip; + private System.Windows.Forms.ToolStripDropDownButton toolStripDropDownButton1; + private System.Windows.Forms.ToolStripMenuItem terminalToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem testWindowToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem chatterToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem settingsToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem quantumNetBrowserToolStripMenuItem; - private System.Windows.Forms.Panel hijackScreen; - private System.Windows.Forms.Timer textgen; - private System.Windows.Forms.TextBox txtHijack; } }
\ No newline at end of file diff --git a/Project Ports/Desktop.cs b/Project Ports/Desktop.cs index 3435aaa..da91fa7 100644 --- a/Project Ports/Desktop.cs +++ b/Project Ports/Desktop.cs @@ -54,119 +54,60 @@ namespace Project_Ports MessageBox.Show("You have set the build to \"Debug\" there are some features that is disabled in this build."); #endif dclock.Start(); - hijackScreen.Hide(); - - if (Properties.Settings.Default.hijacked == true) - { - #if DEBUG - hijackScreen.Hide(); - return; - #endif - hijackScreen.Show(); - Thread.Sleep(2000); - txtHijack.AppendText("PortOS is now booting..." + Environment.NewLine); - Thread.Sleep(5000); - txtHijack.AppendText("SYSTEM ERROR: HIJACKED" + Environment.NewLine); - Thread.Sleep(2000); - txtHijack.AppendText("Incoming connection..." + Environment.NewLine); - Thread.Sleep(2000); - txtHijack.AppendText("A.H.G is now connected..." + Environment.NewLine); - Thread.Sleep(2000); - txtHijack.AppendText("A.H.G: WHO ARE YOU???" + Environment.NewLine); - Thread.Sleep(2000); - txtHijack.AppendText("A.H.G: HOW DID YOU FIND THIS OS?!?!?!?!?" + Environment.NewLine); - Thread.Sleep(2000); - txtHijack.AppendText("A.H.G: SINCE YOU FOUND THIS COMPUTER" + Environment.NewLine); - Thread.Sleep(2000); - txtHijack.AppendText("A.H.G: PREPARE FOR YOUR COMPUTER TO DIE!!!!!" + Environment.NewLine); - Thread.Sleep(2000); - txtHijack.AppendText("A.H.G is deleting /sys/..." + Environment.NewLine); - Thread.Sleep(1000); - txtHijack.AppendText("Incoming connection..." + Environment.NewLine); - Thread.Sleep(2000); - txtHijack.AppendText("??? is now Connected..." + Environment.NewLine); - Thread.Sleep(2000); - txtHijack.AppendText("???: Hey there! Let me help you…" + Environment.NewLine); - Thread.Sleep(2000); - txtHijack.AppendText("??? interupted the deletion of /sys/" + Environment.NewLine); - Thread.Sleep(2000); - txtHijack.AppendText("??? is restoring /sys/" + Environment.NewLine); - Thread.Sleep(2000); - txtHijack.AppendText("A.H.G: GAH! I CAN’T DELETE ANYTHING" + Environment.NewLine); - Thread.Sleep(2000); - txtHijack.AppendText("/sys/ is restored..." + Environment.NewLine); - Thread.Sleep(2000); - txtHijack.AppendText("A.H.G: WHO ARE YO-" + Environment.NewLine); - Thread.Sleep(2000); - txtHijack.AppendText("A.H.G has been kicked by ???" + Environment.NewLine); - Thread.Sleep(2000); - txtHijack.AppendText("A.H.G disconnected…" + Environment.NewLine); - Thread.Sleep(2000); - txtHijack.AppendText("???: Sorry about that let me reveal myself..." + Environment.NewLine); - Thread.Sleep(1000); - txtHijack.AppendText("??? is now known as Adam…" + Environment.NewLine); - Thread.Sleep(2000); - txtHijack.AppendText("Adam: I am Adam and I am one of the developers of PortOS!" + Environment.NewLine); - Thread.Sleep(2000); - txtHijack.AppendText("Adam: As you know, A.H.G is a group of hackers that destroys PortOS computers." + Environment.NewLine); - Thread.Sleep(2000); - txtHijack.AppendText("Adam: This computer will shortly reboot and redirected to the desktop…" + Environment.NewLine); - Thread.Sleep(2000); - txtHijack.AppendText("Adam: Also make sure to open Chatter once you get to the desktop!" + Environment.NewLine); - Thread.Sleep(2000); - txtHijack.AppendText("Adam disconnected..." + Environment.NewLine); - Thread.Sleep(5000); - txtHijack.Clear(); - Thread.Sleep(2000); - txtHijack.AppendText("PortOS is now booting..." + Environment.NewLine); - Thread.Sleep(2000); - txtHijack.AppendText("GUI Driver has been found!" + Environment.NewLine); - Thread.Sleep(2000); - txtHijack.AppendText("Starting Desktop..." + Environment.NewLine); - Thread.Sleep(3000); - - hijackScreen.Hide(); - Properties.Settings.Default.hijacked = false; - - - } - + appMenu.Hide(); + //TODO: Display player name in app menu + } - private void label1_Click(object sender, EventArgs e) + private void appButton_Click(object sender, EventArgs e) { - + appMenu.Show(); } - private void shutdownToolStripMenuItem_Click(object sender, EventArgs e) + private void shutdownButton_Click(object sender, EventArgs e) { this.Close(); } - private void terminalToolStripMenuItem_Click(object sender, EventArgs e) + private void toolStripButton1_Click(object sender, EventArgs e) + { + + } + + private void terminalToolStripMenuItem_Click_1(object sender, EventArgs e) { wm.createWindow(new Terminal(), "Terminal"); + appMenu.Hide(); } - private void testWindowToolStripMenuItem_Click(object sender, EventArgs e) + private void testWindowToolStripMenuItem_Click_1(object sender, EventArgs e) { wm.createWindow(new TestWindow(), "TestWindow"); + appMenu.Hide(); } - private void settingsToolStripMenuItem_Click(object sender, EventArgs e) + private void chatterToolStripMenuItem_Click_1(object sender, EventArgs e) { - wm.createWindow(new Settings(), "System Settings"); + wm.createWindow(new ChatApp(), "Chatter"); + appMenu.Hide(); } - private void chatterToolStripMenuItem_Click(object sender, EventArgs e) + private void settingsToolStripMenuItem_Click_1(object sender, EventArgs e) { - wm.createWindow(new ChatApp(), "Chatter"); + wm.createWindow(new Settings(), "System Settings"); + appMenu.Hide(); } - private void quantumNetBrowserToolStripMenuItem_Click(object sender, EventArgs e) + private void quantumNetBrowserToolStripMenuItem_Click_1(object sender, EventArgs e) { wm.createWindow(new QuantumNet(), "QuantumNet Browser"); + appMenu.Hide(); + } + + private void Desktop_MouseClick(object sender, MouseEventArgs e) + { + appMenu.Hide(); } } } diff --git a/Project Ports/Desktop.resx b/Project Ports/Desktop.resx index e1a65a8..deea24b 100644 --- a/Project Ports/Desktop.resx +++ b/Project Ports/Desktop.resx @@ -117,13 +117,19 @@ <resheader name="writer"> <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> </resheader> - <metadata name="appMenu.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> - <value>110, 17</value> - </metadata> <metadata name="dclock.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <value>214, 17</value> </metadata> <metadata name="textgen.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> - <value>17, 17</value> + <value>121, 17</value> + </metadata> + <metadata name="programStrip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> + <value>21, 15</value> + </metadata> + <metadata name="programStrip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> + <value>21, 15</value> + </metadata> + <metadata name="$this.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>True</value> </metadata> </root>
\ No newline at end of file diff --git a/Project Ports/MainMenu.cs b/Project Ports/MainMenu.cs index e7d6f05..b9e5ca9 100644 --- a/Project Ports/MainMenu.cs +++ b/Project Ports/MainMenu.cs @@ -43,7 +43,20 @@ namespace Project_Ports private void btnPlay_Click(object sender, EventArgs e) { Desktop desktop = new Desktop(); + #if DEBUG desktop.Show(); + return; + #endif + if (Properties.Settings.Default.hijacked == true) + { + hijackScreen hijack = new hijackScreen(); + hijack.Show(); + } else + { + + desktop.Show(); + } + } private void btnExit_Click(object sender, EventArgs e) { diff --git a/Project Ports/Project Ports.csproj b/Project Ports/Project Ports.csproj index 6bcaaa8..bb81c0d 100644 --- a/Project Ports/Project Ports.csproj +++ b/Project Ports/Project Ports.csproj @@ -63,6 +63,12 @@ <Compile Include="Desktop.Designer.cs"> <DependentUpon>Desktop.cs</DependentUpon> </Compile> + <Compile Include="hijackScreen.cs"> + <SubType>Form</SubType> + </Compile> + <Compile Include="hijackScreen.Designer.cs"> + <DependentUpon>hijackScreen.cs</DependentUpon> + </Compile> <Compile Include="MainMenu.cs"> <SubType>Form</SubType> </Compile> @@ -115,6 +121,9 @@ <EmbeddedResource Include="Desktop.resx"> <DependentUpon>Desktop.cs</DependentUpon> </EmbeddedResource> + <EmbeddedResource Include="hijackScreen.resx"> + <DependentUpon>hijackScreen.cs</DependentUpon> + </EmbeddedResource> <EmbeddedResource Include="MainMenu.resx"> <DependentUpon>MainMenu.cs</DependentUpon> </EmbeddedResource> diff --git a/Project Ports/hijackScreen.Designer.cs b/Project Ports/hijackScreen.Designer.cs new file mode 100644 index 0000000..da32693 --- /dev/null +++ b/Project Ports/hijackScreen.Designer.cs @@ -0,0 +1,86 @@ +namespace Project_Ports +{ + partial class hijackScreen + { + /// <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); + } + + #region Windows Form Designer generated code + + /// <summary> + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// </summary> + private void InitializeComponent() + { + this.hijackPanel = new System.Windows.Forms.Panel(); + this.txtHijack = new System.Windows.Forms.TextBox(); + this.hijackPanel.SuspendLayout(); + this.SuspendLayout(); + // + // hijackPanel + // + this.hijackPanel.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.hijackPanel.BackColor = System.Drawing.Color.Black; + this.hijackPanel.Controls.Add(this.txtHijack); + this.hijackPanel.Location = new System.Drawing.Point(0, 0); + this.hijackPanel.Name = "hijackPanel"; + this.hijackPanel.Size = new System.Drawing.Size(986, 571); + this.hijackPanel.TabIndex = 3; + // + // txtHijack + // + this.txtHijack.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.txtHijack.BackColor = System.Drawing.Color.Black; + this.txtHijack.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.txtHijack.Font = new System.Drawing.Font("Consolas", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.txtHijack.ForeColor = System.Drawing.Color.White; + this.txtHijack.Location = new System.Drawing.Point(15, 12); + this.txtHijack.Multiline = true; + this.txtHijack.Name = "txtHijack"; + this.txtHijack.ReadOnly = true; + this.txtHijack.Size = new System.Drawing.Size(959, 547); + this.txtHijack.TabIndex = 3; + // + // hijackScreen + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(984, 571); + this.Controls.Add(this.hijackPanel); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; + this.Name = "hijackScreen"; + this.Text = "hijackScreen"; + this.WindowState = System.Windows.Forms.FormWindowState.Maximized; + this.Load += new System.EventHandler(this.hijackScreen_Load); + this.hijackPanel.ResumeLayout(false); + this.hijackPanel.PerformLayout(); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.Panel hijackPanel; + private System.Windows.Forms.TextBox txtHijack; + } +}
\ No newline at end of file diff --git a/Project Ports/hijackScreen.cs b/Project Ports/hijackScreen.cs new file mode 100644 index 0000000..5855d17 --- /dev/null +++ b/Project Ports/hijackScreen.cs @@ -0,0 +1,94 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace Project_Ports +{ + public partial class hijackScreen : Form + { + public hijackScreen() + { + InitializeComponent(); + } + + private void hijackScreen_Load(object sender, EventArgs e) + { + + Thread.Sleep(2000); + txtHijack.AppendText("PortOS is now booting..." + Environment.NewLine); + Thread.Sleep(5000); + txtHijack.AppendText("SYSTEM ERROR: HIJACKED" + Environment.NewLine); + Thread.Sleep(2000); + txtHijack.AppendText("Incoming connection..." + Environment.NewLine); + Thread.Sleep(2000); + txtHijack.AppendText("A.H.G is now connected..." + Environment.NewLine); + Thread.Sleep(2000); + txtHijack.AppendText("A.H.G: WHO ARE YOU???" + Environment.NewLine); + Thread.Sleep(2000); + txtHijack.AppendText("A.H.G: HOW DID YOU FIND THIS OS?!?!?!?!?" + Environment.NewLine); + Thread.Sleep(2000); + txtHijack.AppendText("A.H.G: SINCE YOU FOUND THIS COMPUTER" + Environment.NewLine); + Thread.Sleep(2000); + txtHijack.AppendText("A.H.G: PREPARE FOR YOUR COMPUTER TO DIE!!!!!" + Environment.NewLine); + Thread.Sleep(2000); + txtHijack.AppendText("A.H.G is deleting /sys/..." + Environment.NewLine); + Thread.Sleep(1000); + txtHijack.AppendText("Incoming connection..." + Environment.NewLine); + Thread.Sleep(2000); + txtHijack.AppendText("??? is now Connected..." + Environment.NewLine); + Thread.Sleep(2000); + txtHijack.AppendText("???: Hey there! Let me help you…" + Environment.NewLine); + Thread.Sleep(2000); + txtHijack.AppendText("??? interupted the deletion of /sys/" + Environment.NewLine); + Thread.Sleep(2000); + txtHijack.AppendText("??? is restoring /sys/" + Environment.NewLine); + Thread.Sleep(2000); + txtHijack.AppendText("A.H.G: GAH! I CAN’T DELETE ANYTHING" + Environment.NewLine); + Thread.Sleep(2000); + txtHijack.AppendText("/sys/ is restored..." + Environment.NewLine); + Thread.Sleep(2000); + txtHijack.AppendText("A.H.G: WHO ARE YO-" + Environment.NewLine); + Thread.Sleep(2000); + txtHijack.AppendText("A.H.G has been kicked by ???" + Environment.NewLine); + Thread.Sleep(2000); + txtHijack.AppendText("A.H.G disconnected…" + Environment.NewLine); + Thread.Sleep(2000); + txtHijack.AppendText("???: Sorry about that let me reveal myself..." + Environment.NewLine); + Thread.Sleep(1000); + txtHijack.AppendText("??? is now known as Adam…" + Environment.NewLine); + Thread.Sleep(2000); + txtHijack.AppendText("Adam: I am Adam and I am one of the developers of PortOS!" + Environment.NewLine); + Thread.Sleep(2000); + txtHijack.AppendText("Adam: As you know, A.H.G is a group of hackers that destroys PortOS computers." + Environment.NewLine); + Thread.Sleep(2000); + txtHijack.AppendText("Adam: This computer will shortly reboot and redirected to the desktop…" + Environment.NewLine); + Thread.Sleep(2000); + txtHijack.AppendText("Adam: Also make sure to open Chatter once you get to the desktop!" + Environment.NewLine); + Thread.Sleep(2000); + txtHijack.AppendText("Adam disconnected..." + Environment.NewLine); + Thread.Sleep(5000); + txtHijack.Clear(); + Thread.Sleep(2000); + txtHijack.AppendText("PortOS is now booting..." + Environment.NewLine); + Thread.Sleep(2000); + txtHijack.AppendText("GUI Driver has been found!" + Environment.NewLine); + Thread.Sleep(2000); + txtHijack.AppendText("Starting Desktop..." + Environment.NewLine); + Thread.Sleep(3000); + + Desktop desktop = new Desktop(); + Properties.Settings.Default.hijacked = false; + desktop.Show(); + this.Close(); + + + } + } + } diff --git a/Project Ports/hijackScreen.resx b/Project Ports/hijackScreen.resx new file mode 100644 index 0000000..652448e --- /dev/null +++ b/Project Ports/hijackScreen.resx @@ -0,0 +1,123 @@ +<?xml version="1.0" encoding="utf-8"?> +<root> + <!-- + Microsoft ResX Schema + + Version 2.0 + + The primary goals of this format is to allow a simple XML format + that is mostly human readable. The generation and parsing of the + various data types are done through the TypeConverter classes + associated with the data types. + + Example: + + ... ado.net/XML headers & schema ... + <resheader name="resmimetype">text/microsoft-resx</resheader> + <resheader name="version">2.0</resheader> + <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> + <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> + <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> + <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> + <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> + <value>[base64 mime encoded serialized .NET Framework object]</value> + </data> + <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> + <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> + <comment>This is a comment</comment> + </data> + + There are any number of "resheader" rows that contain simple + name/value pairs. + + Each data row contains a name, and value. The row also contains a + type or mimetype. Type corresponds to a .NET class that support + text/value conversion through the TypeConverter architecture. + Classes that don't support this are serialized and stored with the + mimetype set. + + The mimetype is used for serialized objects, and tells the + ResXResourceReader how to depersist the object. This is currently not + extensible. For a given mimetype the value must be set accordingly: + + Note - application/x-microsoft.net.object.binary.base64 is the format + that the ResXResourceWriter will generate, however the reader can + read any of the formats listed below. + + mimetype: application/x-microsoft.net.object.binary.base64 + value : The object must be serialized with + : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter + : and then encoded with base64 encoding. + + mimetype: application/x-microsoft.net.object.soap.base64 + value : The object must be serialized with + : System.Runtime.Serialization.Formatters.Soap.SoapFormatter + : and then encoded with base64 encoding. + + mimetype: application/x-microsoft.net.object.bytearray.base64 + value : The object must be serialized into a byte array + : using a System.ComponentModel.TypeConverter + : and then encoded with base64 encoding. + --> + <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> + <xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> + <xsd:element name="root" msdata:IsDataSet="true"> + <xsd:complexType> + <xsd:choice maxOccurs="unbounded"> + <xsd:element name="metadata"> + <xsd:complexType> + <xsd:sequence> + <xsd:element name="value" type="xsd:string" minOccurs="0" /> + </xsd:sequence> + <xsd:attribute name="name" use="required" type="xsd:string" /> + <xsd:attribute name="type" type="xsd:string" /> + <xsd:attribute name="mimetype" type="xsd:string" /> + <xsd:attribute ref="xml:space" /> + </xsd:complexType> + </xsd:element> + <xsd:element name="assembly"> + <xsd:complexType> + <xsd:attribute name="alias" type="xsd:string" /> + <xsd:attribute name="name" type="xsd:string" /> + </xsd:complexType> + </xsd:element> + <xsd:element name="data"> + <xsd:complexType> + <xsd:sequence> + <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> + <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> + </xsd:sequence> + <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> + <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> + <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> + <xsd:attribute ref="xml:space" /> + </xsd:complexType> + </xsd:element> + <xsd:element name="resheader"> + <xsd:complexType> + <xsd:sequence> + <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> + </xsd:sequence> + <xsd:attribute name="name" type="xsd:string" use="required" /> + </xsd:complexType> + </xsd:element> + </xsd:choice> + </xsd:complexType> + </xsd:element> + </xsd:schema> + <resheader name="resmimetype"> + <value>text/microsoft-resx</value> + </resheader> + <resheader name="version"> + <value>2.0</value> + </resheader> + <resheader name="reader"> + <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> + </resheader> + <resheader name="writer"> + <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> + </resheader> + <metadata name="txtHijack.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> + <value>True</value> + </metadata> +</root>
\ No newline at end of file |
