diff options
| author | TheEdgeNK <trey6979@gmail.com> | 2018-09-01 02:32:19 -0400 |
|---|---|---|
| committer | TheEdgeNK <trey6979@gmail.com> | 2018-09-01 02:32:19 -0400 |
| commit | edb312f607b202fb87c989a2120483eb9725f6d0 (patch) | |
| tree | 26549a8e0a049fa388d11fbc800c8b096eacb342 /Project Ports | |
| parent | 269f6d0f4cbf556da4e4154143aa85fbf0448429 (diff) | |
| download | Project-Silicon-edb312f607b202fb87c989a2120483eb9725f6d0.tar.gz Project-Silicon-edb312f607b202fb87c989a2120483eb9725f6d0.tar.bz2 Project-Silicon-edb312f607b202fb87c989a2120483eb9725f6d0.zip | |
final changes for the night
Diffstat (limited to 'Project Ports')
| -rw-r--r-- | Project Ports/Programs/ChatApp.cs | 33 | ||||
| -rw-r--r-- | Project Ports/hijackScreen.Designer.cs | 18 | ||||
| -rw-r--r-- | Project Ports/hijackScreen.cs | 83 | ||||
| -rw-r--r-- | Project Ports/hijackScreen.resx | 3 |
4 files changed, 37 insertions, 100 deletions
diff --git a/Project Ports/Programs/ChatApp.cs b/Project Ports/Programs/ChatApp.cs index fd02c5d..3af3f64 100644 --- a/Project Ports/Programs/ChatApp.cs +++ b/Project Ports/Programs/ChatApp.cs @@ -41,40 +41,21 @@ namespace Project_Ports private void btnSendMSG_Click(object sender, EventArgs e) { - ChatAPI.SendMessage(txtMsgContents, txtSentMessages); + //ChatAPI.SendMessage(txtMsgContents, txtSentMessages); } private void txtMsgContents_KeyDown(object sender, KeyEventArgs e) { - if (e.KeyCode == Keys.Enter) - { - ChatAPI.SendMessage(txtMsgContents, txtSentMessages); - e.SuppressKeyPress = true; - } + //if (e.KeyCode == Keys.Enter) + //{ + //ChatAPI.SendMessage(txtMsgContents, txtSentMessages); + //e.SuppressKeyPress = true; + //} } private void ChatApp_Load(object sender, EventArgs e) { - /* - #if DEBUG - Properties.Settings.Default.chatterStoryline = false; - #endif - - if (Properties.Settings.Default.chatterStoryline == true) - { - txtSentMessages.AppendText("Adam has entered the channel..." + Environment.NewLine); - Thread.Sleep(2000); - txtSentMessages.AppendText("<Adam> Hey there user!" + Environment.NewLine); - Thread.Sleep(2000); - txtSentMessages.AppendText("<Adam> You need to set a name so I know who you are." + Environment.NewLine); - Thread.Sleep(2000); - txtSentMessages.AppendText("<Adam> Open a terminal and input do the following: \"changeusername --YourUsernameHere\"." + Environment.NewLine); - Thread.Sleep(10000); - txtSentMessages.AppendText("<Adam> Great!" + Environment.NewLine); - Thread.Sleep(2000); - txtSentMessages.AppendText("<Adam> Hello username" + Environment.NewLine); //TODO - - } */ + StorylineAPI.StartChatterEvent1(txtMsgContents); } } } diff --git a/Project Ports/hijackScreen.Designer.cs b/Project Ports/hijackScreen.Designer.cs index da32693..1f3394a 100644 --- a/Project Ports/hijackScreen.Designer.cs +++ b/Project Ports/hijackScreen.Designer.cs @@ -29,6 +29,7 @@ private void InitializeComponent() { this.hijackPanel = new System.Windows.Forms.Panel(); + this.button1 = new System.Windows.Forms.Button(); this.txtHijack = new System.Windows.Forms.TextBox(); this.hijackPanel.SuspendLayout(); this.SuspendLayout(); @@ -39,26 +40,38 @@ | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.hijackPanel.BackColor = System.Drawing.Color.Black; + this.hijackPanel.Controls.Add(this.button1); 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; // + // button1 + // + this.button1.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; + this.button1.Dock = System.Windows.Forms.DockStyle.Right; + this.button1.Location = new System.Drawing.Point(911, 0); + this.button1.Name = "button1"; + this.button1.Size = new System.Drawing.Size(75, 571); + this.button1.TabIndex = 4; + this.button1.Text = "skip"; + this.button1.UseVisualStyleBackColor = true; + this.button1.Click += new System.EventHandler(this.button1_Click); + // // 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.Size = new System.Drawing.Size(878, 547); this.txtHijack.TabIndex = 3; // // hijackScreen @@ -82,5 +95,6 @@ private System.Windows.Forms.Panel hijackPanel; private System.Windows.Forms.TextBox txtHijack; + private System.Windows.Forms.Button button1; } }
\ No newline at end of file diff --git a/Project Ports/hijackScreen.cs b/Project Ports/hijackScreen.cs index 97e5e33..e8d4168 100644 --- a/Project Ports/hijackScreen.cs +++ b/Project Ports/hijackScreen.cs @@ -27,6 +27,7 @@ using System.Text; using System.Threading; using System.Threading.Tasks; using System.Windows.Forms; +using PortEngine; namespace Project_Ports { @@ -39,75 +40,19 @@ namespace Project_Ports private void hijackScreen_Load(object sender, EventArgs e) { + StorylineAPI.StartHijackEvent1(txtHijack); + Desktop desktop = new Desktop(); + Properties.Settings.Default.hijacked = false; + desktop.Show(); + this.Close(); + } - 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(); - - - } + private void button1_Click(object sender, EventArgs e) + { + 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 index 652448e..1af7de1 100644 --- a/Project Ports/hijackScreen.resx +++ b/Project Ports/hijackScreen.resx @@ -117,7 +117,4 @@ <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 |
