aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Histacom2/Histacom2.csproj1
-rw-r--r--Histacom2/OS/WinXPBad/Story/Hack4.cs20
-rw-r--r--Histacom2/OS/WinXPBad/VirusLabel.cs4
-rw-r--r--Histacom2/OS/WinXPBad/WinClassicIE6Bad.Designer.cs51
-rw-r--r--Histacom2/OS/WinXPBad/WinClassicIE6Bad.cs21
-rw-r--r--Histacom2/OS/WinXPBad/WinClassicIE6Bad.resx6
-rw-r--r--Histacom2/Properties/Resources.resx3
-rw-r--r--Histacom2/Properties/Resources1.Designer.cs10
-rw-r--r--Histacom2/Resources/WinClassic/WinXPError.pngbin0 -> 2119 bytes
9 files changed, 92 insertions, 24 deletions
diff --git a/Histacom2/Histacom2.csproj b/Histacom2/Histacom2.csproj
index 5dfb148..6b12577 100644
--- a/Histacom2/Histacom2.csproj
+++ b/Histacom2/Histacom2.csproj
@@ -684,6 +684,7 @@
<ItemGroup>
<Content Include="Icon128x.ico" />
<Content Include="Resources\12padams_EULA.txt" />
+ <None Include="Resources\WinClassic\WinXPError.png" />
<None Include="Resources\WinClassic\WinXPPrintersSmall.png" />
<None Include="Resources\WinClassic\WinXPControlPanelSmall.png" />
<None Include="Resources\WinClassic\WinXPStartMenuPlacesSeparator1.png" />
diff --git a/Histacom2/OS/WinXPBad/Story/Hack4.cs b/Histacom2/OS/WinXPBad/Story/Hack4.cs
index c47f562..3a95c05 100644
--- a/Histacom2/OS/WinXPBad/Story/Hack4.cs
+++ b/Histacom2/OS/WinXPBad/Story/Hack4.cs
@@ -3,6 +3,7 @@ using Histacom2.Engine.Template;
using Histacom2.GlobalPrograms;
using System;
using System.Collections.Generic;
+using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
@@ -63,5 +64,24 @@ namespace Histacom2.OS.WinXPBad.Story
await Task.Delay(5000); Console.WriteLine("telnet> Transfer complete.");
await Task.Delay(4000); Console.WriteLine("TheHiddenHacker> now open up the time distorter and make a choice, ill wait");
}
+
+ public static async void VirusDestruction(WinClassicIE6Bad ie)
+ {
+ await Task.Delay(10000); ((WinClassic)ie.ParentForm).maximizebutton.Image = ((WinClassic)ie.ParentForm).closebutton.Image;
+ await Task.Delay(1000); ((WinClassic)ie.ParentForm).minimizebutton.Image = ((WinClassic)ie.ParentForm).closebutton.Image;
+ await Task.Delay(1000); ie.toolStripMenuItem8.Image = Properties.Resources.WinXPError;
+ await Task.Delay(1000); ie.toolStripMenuItem7.Image = Properties.Resources.WinXPError;
+ await Task.Delay(1000); ie.toolStripMenuItem5.Image = Properties.Resources.WinXPError;
+ await Task.Delay(1000); ie.toolStripMenuItem4.Image = Properties.Resources.WinXPError;
+ await Task.Delay(1000); ie.toolStripMenuItem3.Image = Properties.Resources.WinXPError;
+ await Task.Delay(1000); ie.toolStripMenuItem2.Image = Properties.Resources.WinXPError;
+ await Task.Delay(1000); ie.backToolStripMenuItem.Image = Properties.Resources.WinXPError;
+ await Task.Delay(3000); ie.comboBox1.BackColor = Color.Lime;
+ await Task.Delay(1000); ie.comboBox1.ForeColor = Color.Red;
+ await Task.Delay(1000); ie.classicLabel1.Text = "Virus:"; ie.classicLabel1.ForeColor = Color.Red; ie.toolStripMenuItem8.BackColor = Color.Lime;
+ await Task.Delay(1000); ie.toolStripMenuItem8.Image = null; ie.toolStripMenuItem8.BackColor = Color.Red; ie.toolStripMenuItem7.BackColor = Color.Lime; ie.panel2.BackColor = Color.Black;
+ await Task.Delay(1000); ie.toolStripMenuItem7.Image = null; ie.toolStripMenuItem7.BackColor = Color.Red; ie.toolStripMenuItem5.BackColor = Color.Lime; ie.toolStripMenuItem8.Visible = false; ie.toolStripMenuItem6.Visible = false;
+ await Task.Delay(1000); ie.toolStripMenuItem5.Image = null; ie.toolStripMenuItem5.BackColor = Color.Red; ie.toolStripMenuItem4.BackColor = Color.Lime; ie.toolStripMenuItem7.Visible = false; ie.comboBox1.BackColor = Color.Black;
+ }
}
}
diff --git a/Histacom2/OS/WinXPBad/VirusLabel.cs b/Histacom2/OS/WinXPBad/VirusLabel.cs
index 7ab3ee1..4ea31b7 100644
--- a/Histacom2/OS/WinXPBad/VirusLabel.cs
+++ b/Histacom2/OS/WinXPBad/VirusLabel.cs
@@ -25,7 +25,9 @@ namespace Histacom2.OS.WinXPBad
{
label1.ForeColor = Color.Black;
light = false;
- } else {
+ }
+ else
+ {
label1.ForeColor = Color.PaleGreen;
light = true;
}
diff --git a/Histacom2/OS/WinXPBad/WinClassicIE6Bad.Designer.cs b/Histacom2/OS/WinXPBad/WinClassicIE6Bad.Designer.cs
index 657b4ac..f9bb102 100644
--- a/Histacom2/OS/WinXPBad/WinClassicIE6Bad.Designer.cs
+++ b/Histacom2/OS/WinXPBad/WinClassicIE6Bad.Designer.cs
@@ -52,11 +52,12 @@
this.toolStripMenuItem8 = new System.Windows.Forms.ToolStripMenuItem();
this.pictureBox3 = new System.Windows.Forms.PictureBox();
this.panel2 = new System.Windows.Forms.Panel();
- this.classicLabel1 = new Histacom2.Engine.UI.ClassicLabel();
this.comboBox1 = new System.Windows.Forms.ComboBox();
+ this.classicLabel1 = new Histacom2.Engine.UI.ClassicLabel();
this.panel3 = new System.Windows.Forms.Panel();
this.label1 = new System.Windows.Forms.Label();
this.originalTimer = new System.Windows.Forms.Timer(this.components);
+ this.labelTimer = new System.Windows.Forms.Timer(this.components);
this.panel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.menuStrip1.SuspendLayout();
@@ -270,6 +271,15 @@
this.panel2.Size = new System.Drawing.Size(992, 24);
this.panel2.TabIndex = 4;
//
+ // comboBox1
+ //
+ this.comboBox1.FormattingEnabled = true;
+ this.comboBox1.Location = new System.Drawing.Point(53, 2);
+ this.comboBox1.Name = "comboBox1";
+ this.comboBox1.Size = new System.Drawing.Size(886, 21);
+ this.comboBox1.TabIndex = 1;
+ this.comboBox1.Text = "http://www.microsoft.com/";
+ //
// classicLabel1
//
this.classicLabel1.DropShadow = false;
@@ -280,15 +290,6 @@
this.classicLabel1.TabIndex = 0;
this.classicLabel1.Text = "A&ddress:";
//
- // comboBox1
- //
- this.comboBox1.FormattingEnabled = true;
- this.comboBox1.Location = new System.Drawing.Point(53, 2);
- this.comboBox1.Name = "comboBox1";
- this.comboBox1.Size = new System.Drawing.Size(886, 21);
- this.comboBox1.TabIndex = 1;
- this.comboBox1.Text = "http://www.microsoft.com/";
- //
// panel3
//
this.panel3.BackColor = System.Drawing.Color.White;
@@ -317,6 +318,11 @@
this.originalTimer.Enabled = true;
this.originalTimer.Tick += new System.EventHandler(this.originalTimer_Tick);
//
+ // labelTimer
+ //
+ this.labelTimer.Interval = 1000;
+ this.labelTimer.Tick += new System.EventHandler(this.labelTimer_Tick);
+ //
// WinClassicIE6Bad
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
@@ -357,21 +363,22 @@
private System.Windows.Forms.ToolStripMenuItem helpToolStripMenuItem;
private System.Windows.Forms.PictureBox pictureBox2;
private System.Windows.Forms.MenuStrip menuStrip2;
- private System.Windows.Forms.ToolStripMenuItem backToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem1;
- private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem2;
- private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem3;
- private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem4;
- private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem5;
- private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem6;
- private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem7;
- private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem8;
private System.Windows.Forms.PictureBox pictureBox3;
- private System.Windows.Forms.Panel panel2;
- private Engine.UI.ClassicLabel classicLabel1;
- private System.Windows.Forms.ComboBox comboBox1;
private System.Windows.Forms.Panel panel3;
- private System.Windows.Forms.Label label1;
private System.Windows.Forms.Timer originalTimer;
+ private System.Windows.Forms.Timer labelTimer;
+ public System.Windows.Forms.ToolStripMenuItem backToolStripMenuItem;
+ public System.Windows.Forms.ToolStripMenuItem toolStripMenuItem2;
+ public System.Windows.Forms.ToolStripMenuItem toolStripMenuItem3;
+ public System.Windows.Forms.ToolStripMenuItem toolStripMenuItem4;
+ public System.Windows.Forms.ToolStripMenuItem toolStripMenuItem5;
+ public System.Windows.Forms.ToolStripMenuItem toolStripMenuItem7;
+ public System.Windows.Forms.ToolStripMenuItem toolStripMenuItem8;
+ public System.Windows.Forms.ComboBox comboBox1;
+ public System.Windows.Forms.Label label1;
+ public Engine.UI.ClassicLabel classicLabel1;
+ public System.Windows.Forms.Panel panel2;
+ public System.Windows.Forms.ToolStripMenuItem toolStripMenuItem6;
}
}
diff --git a/Histacom2/OS/WinXPBad/WinClassicIE6Bad.cs b/Histacom2/OS/WinXPBad/WinClassicIE6Bad.cs
index 84a5646..f8fa520 100644
--- a/Histacom2/OS/WinXPBad/WinClassicIE6Bad.cs
+++ b/Histacom2/OS/WinXPBad/WinClassicIE6Bad.cs
@@ -7,16 +7,27 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
+using Histacom2.OS.WinXPBad.Story;
+using Histacom2.Engine.Template;
namespace Histacom2.OS.WinXPBad
{
public partial class WinClassicIE6Bad : UserControl
{
private bool light = true;
+ private Random r = new Random();
+
+ private int maxX;
+ private int maxY;
public WinClassicIE6Bad()
{
InitializeComponent();
+
+ maxX = TitleScreen.frmBadXP.Width;
+ maxY = TitleScreen.frmBadXP.Height;
+ Hack4.VirusDestruction(this);
+ ((WinClassic)ParentForm).closeDisabled = true;
}
private void originalTimer_Tick(object sender, EventArgs e)
@@ -26,10 +37,18 @@ namespace Histacom2.OS.WinXPBad
label1.ForeColor = Color.Black;
light = false;
}
- else {
+ else
+ {
label1.ForeColor = Color.PaleGreen;
light = true;
}
}
+
+ private void labelTimer_Tick(object sender, EventArgs e)
+ {
+ VirusLabel v = new VirusLabel();
+ v.Show();
+ v.Location = new Point(r.Next(0, maxX), r.Next(0, maxY));
+ }
}
}
diff --git a/Histacom2/OS/WinXPBad/WinClassicIE6Bad.resx b/Histacom2/OS/WinXPBad/WinClassicIE6Bad.resx
index 1f5eeb4..7ce63c0 100644
--- a/Histacom2/OS/WinXPBad/WinClassicIE6Bad.resx
+++ b/Histacom2/OS/WinXPBad/WinClassicIE6Bad.resx
@@ -117,6 +117,9 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
+ <metadata name="menuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+ <value>17, 17</value>
+ </metadata>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="pictureBox1.BackgroundImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
@@ -307,4 +310,7 @@
<metadata name="originalTimer.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>247, 17</value>
</metadata>
+ <metadata name="labelTimer.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+ <value>370, 17</value>
+ </metadata>
</root> \ No newline at end of file
diff --git a/Histacom2/Properties/Resources.resx b/Histacom2/Properties/Resources.resx
index 4bd013e..d2f84db 100644
--- a/Histacom2/Properties/Resources.resx
+++ b/Histacom2/Properties/Resources.resx
@@ -2098,4 +2098,7 @@
<data name="sliveroldlace" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\WinClassic\sliveroldlace.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
+ <data name="WinXPError" type="System.Resources.ResXFileRef, System.Windows.Forms">
+ <value>..\Resources\WinClassic\WinXPError.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
+ </data>
</root> \ No newline at end of file
diff --git a/Histacom2/Properties/Resources1.Designer.cs b/Histacom2/Properties/Resources1.Designer.cs
index 5d75b0a..d0a7863 100644
--- a/Histacom2/Properties/Resources1.Designer.cs
+++ b/Histacom2/Properties/Resources1.Designer.cs
@@ -2206,6 +2206,16 @@ namespace Histacom2.Properties {
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
+ public static System.Drawing.Bitmap WinXPError {
+ get {
+ object obj = ResourceManager.GetObject("WinXPError", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
+ /// </summary>
public static System.Drawing.Bitmap WinXPIE6 {
get {
object obj = ResourceManager.GetObject("WinXPIE6", resourceCulture);
diff --git a/Histacom2/Resources/WinClassic/WinXPError.png b/Histacom2/Resources/WinClassic/WinXPError.png
new file mode 100644
index 0000000..9c75285
--- /dev/null
+++ b/Histacom2/Resources/WinClassic/WinXPError.png
Binary files differ