aboutsummaryrefslogtreecommitdiff
path: root/TimeHACK.Main/OS/Win95/Win95Apps/Story/Hack2.cs
diff options
context:
space:
mode:
authorlempamo <[email protected]>2017-08-09 18:02:34 -0400
committerlempamo <[email protected]>2017-08-09 18:02:34 -0400
commitb3c84489d5597811822099220dbe28f57b62a9a8 (patch)
treee1dd64df535f7fdbc2d9ad25a9fb13642a7a5bd3 /TimeHACK.Main/OS/Win95/Win95Apps/Story/Hack2.cs
parent1d56f20e085a041c007fb7ac1fd64c7b8aabfa0f (diff)
downloadhistacom2-b3c84489d5597811822099220dbe28f57b62a9a8.tar.gz
histacom2-b3c84489d5597811822099220dbe28f57b62a9a8.tar.bz2
histacom2-b3c84489d5597811822099220dbe28f57b62a9a8.zip
time distorter 0.1 up and running
Diffstat (limited to 'TimeHACK.Main/OS/Win95/Win95Apps/Story/Hack2.cs')
-rw-r--r--TimeHACK.Main/OS/Win95/Win95Apps/Story/Hack2.cs132
1 files changed, 129 insertions, 3 deletions
diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/Story/Hack2.cs b/TimeHACK.Main/OS/Win95/Win95Apps/Story/Hack2.cs
index 4e5511a..ecea3af 100644
--- a/TimeHACK.Main/OS/Win95/Win95Apps/Story/Hack2.cs
+++ b/TimeHACK.Main/OS/Win95/Win95Apps/Story/Hack2.cs
@@ -1,7 +1,11 @@
using System;
+using System.Drawing;
+using System.Media;
using System.Threading.Tasks;
+using System.Windows.Forms;
using TimeHACK.Engine;
using TimeHACK.Engine.Template;
+using TimeHACK.OS.Win98;
namespace TimeHACK.OS.Win95.Win95Apps.Story
{
@@ -12,6 +16,7 @@ namespace TimeHACK.OS.Win95.Win95Apps.Story
public static async void StartObjective()
{
WinClassicTerminal Console = new WinClassicTerminal(true);
+ Random r = new Random();
WinClassic app = wm.StartWin95(Console, "MS-DOS Prompt", null, true, true);
Console.WriteLine("telnet> 185.152.46.51 Connecting...");
@@ -92,8 +97,8 @@ namespace TimeHACK.OS.Win95.Win95Apps.Story
Console.WriteLine("12padams> NO! That's impossible!");
await Task.Delay(3000);
Console.WriteLine("The Hidden Hacker> Oh, is it? Well, watch this!");
- await Task.Delay(2500);
- TitleScreen.frm95.distort.Counter = 14;
+ TitleScreen.frm95.distort.Counter = 16;
+ await Task.Delay(2000);
Console.WriteLine("Command> Show Timer");
TitleScreen.frm95.distort.lblCountDown.Show();
await Task.Delay(3000);
@@ -129,7 +134,8 @@ namespace TimeHACK.OS.Win95.Win95Apps.Story
await Task.Delay(100);
Program.Invert(Console.cmdPrompt);
app.Close();
- await Task.Delay(1000);
+ await Task.Delay(100);
+ TitleScreen.frm95.taskbar.BackgroundImage = null;
Program.Invert(TitleScreen.frm95.taskbar, false);
await Task.Delay(100);
Program.Invert(TitleScreen.frm95.taskbar, false);
@@ -151,6 +157,126 @@ namespace TimeHACK.OS.Win95.Win95Apps.Story
Program.Invert(TitleScreen.frm95.taskbar, false);
await Task.Delay(100);
TitleScreen.frm95.taskbar.Hide();
+ await Task.Delay(100);
+ TitleScreen.frm95.desktopicons.Hide();
+ await Task.Delay(100);
+ TitleScreen.frm95.desktopicons.Show();
+ await Task.Delay(100);
+ TitleScreen.frm95.desktopicons.Hide();
+ await Task.Delay(100);
+ TitleScreen.frm95.desktopicons.Show();
+ await Task.Delay(100);
+ TitleScreen.frm95.desktopicons.Hide();
+ await Task.Delay(100);
+ TitleScreen.frm95.desktopicons.Show();
+ await Task.Delay(100);
+ TitleScreen.frm95.desktopicons.Hide();
+ await Task.Delay(100);
+ TitleScreen.frm95.desktopicons.Show();
+ await Task.Delay(100);
+ TitleScreen.frm95.desktopicons.Hide();
+ await Task.Delay(100);
+ Program.Invert(TitleScreen.frm95, false);
+ await Task.Delay(100);
+ Program.Invert(TitleScreen.frm95, false);
+ await Task.Delay(100);
+ Program.Invert(TitleScreen.frm95, false);
+ await Task.Delay(100);
+ Program.Invert(TitleScreen.frm95, false);
+ await Task.Delay(100);
+ Program.Invert(TitleScreen.frm95, false);
+ await Task.Delay(100);
+ Program.Invert(TitleScreen.frm95, false);
+ await Task.Delay(100);
+ Program.Invert(TitleScreen.frm95, false);
+ await Task.Delay(100);
+ Program.Invert(TitleScreen.frm95, false);
+ await Task.Delay(100);
+ Program.Invert(TitleScreen.frm95, false);
+ await Task.Delay(100);
+ Program.Invert(TitleScreen.frm95, false);
+ await Task.Delay(100);
+ TitleScreen.frm95.distort.ParentForm.Location = new Point(r.Next(TitleScreen.frm95.Width), r.Next(TitleScreen.frm95.Height));
+ Program.Invert(TitleScreen.frm95, false);
+ await Task.Delay(100);
+ TitleScreen.frm95.distort.ParentForm.Location = new Point(r.Next(TitleScreen.frm95.Width), r.Next(TitleScreen.frm95.Height));
+ Program.Invert(TitleScreen.frm95, false);
+ await Task.Delay(100);
+ TitleScreen.frm95.distort.ParentForm.Location = new Point(r.Next(TitleScreen.frm95.Width), r.Next(TitleScreen.frm95.Height));
+ Program.Invert(TitleScreen.frm95, false);
+ await Task.Delay(100);
+ TitleScreen.frm95.distort.ParentForm.Location = new Point(r.Next(TitleScreen.frm95.Width), r.Next(TitleScreen.frm95.Height));
+ Program.Invert(TitleScreen.frm95, false);
+ await Task.Delay(100);
+ TitleScreen.frm95.distort.ParentForm.Location = new Point(r.Next(TitleScreen.frm95.Width), r.Next(TitleScreen.frm95.Height));
+ Program.Invert(TitleScreen.frm95, false);
+ await Task.Delay(100);
+ TitleScreen.frm95.distort.ParentForm.Location = new Point(r.Next(TitleScreen.frm95.Width), r.Next(TitleScreen.frm95.Height));
+ Program.Invert(TitleScreen.frm95, false);
+ await Task.Delay(100);
+ TitleScreen.frm95.distort.ParentForm.Location = new Point(r.Next(TitleScreen.frm95.Width), r.Next(TitleScreen.frm95.Height));
+ Program.Invert(TitleScreen.frm95, false);
+ await Task.Delay(100);
+ TitleScreen.frm95.distort.ParentForm.Location = new Point(r.Next(TitleScreen.frm95.Width), r.Next(TitleScreen.frm95.Height));
+ Program.Invert(TitleScreen.frm95, false);
+ await Task.Delay(100);
+ TitleScreen.frm95.distort.ParentForm.Location = new Point(r.Next(TitleScreen.frm95.Width), r.Next(TitleScreen.frm95.Height));
+ Program.Invert(TitleScreen.frm95, false);
+ await Task.Delay(100);
+ TitleScreen.frm95.distort.ParentForm.Location = new Point(r.Next(TitleScreen.frm95.Width), r.Next(TitleScreen.frm95.Height));
+ Program.Invert(TitleScreen.frm95, false);
+ await Task.Delay(100);
+ TitleScreen.frm95.Hide();
+ ((WinClassic)TitleScreen.frm95.distort.ParentForm).BringToFront();
+ ((WinClassic)TitleScreen.frm95.distort.ParentForm).maximizebutton.Enabled = false;
+ ((WinClassic)TitleScreen.frm95.distort.ParentForm).WindowState = FormWindowState.Maximized;
+ ((WinClassic)TitleScreen.frm95.distort.ParentForm).right.Hide();
+ ((WinClassic)TitleScreen.frm95.distort.ParentForm).left.Hide();
+ ((WinClassic)TitleScreen.frm95.distort.ParentForm).bottom.Hide();
+ ((WinClassic)TitleScreen.frm95.distort.ParentForm).top.Hide();
+ ((WinClassic)TitleScreen.frm95.distort.ParentForm).bottomleftcorner.Hide();
+ ((WinClassic)TitleScreen.frm95.distort.ParentForm).bottomrightcorner.Hide();
+ ((WinClassic)TitleScreen.frm95.distort.ParentForm).topleftcorner.Hide();
+ ((WinClassic)TitleScreen.frm95.distort.ParentForm).toprightcorner.Hide();
+ ((WinClassic)TitleScreen.frm95.distort.ParentForm).Dock = DockStyle.Fill;
+ ((WinClassic)TitleScreen.frm95.distort.ParentForm).max = true;
+ ((WinClassic)TitleScreen.frm95.distort.ParentForm).maximizebutton.Image = Engine.Properties.Resources.WinClassicRestore;
+ ((WinClassic)TitleScreen.frm95.distort.ParentForm).programtopbar.Hide();
+ TitleScreen.frm95.distort.BackColor = Color.Black;
+ TitleScreen.frm95.distort.btnGo.Hide();
+ foreach (Control c in TitleScreen.frm95.distort.Controls) c.ForeColor = Color.Silver;
+ TitleScreen.frm95.distort.lblCountDown.Text = "Traveling...";
+
+ Point start = TitleScreen.frm95.distort.lblTo.Location;
+ Point end = new Point(TitleScreen.frm95.distort.lblDestYear.Location.X - TitleScreen.frm95.distort.lblTo.Width - 10, TitleScreen.frm95.distort.lblDestYear.Location.Y);
+ int increment = (end.X - start.X) / 50;
+
+ SoundPlayer sp = new SoundPlayer(Properties.Resources.distort1);
+ sp.Play();
+ await Task.Delay(1000);
+
+ for (int i = 0; i < 50; i += 2)
+ {
+ TitleScreen.frm95.distort.lblTo.ForeColor = Color.White;
+ TitleScreen.frm95.distort.lblTo.Location = new Point(TitleScreen.frm95.distort.lblTo.Location.X + increment, TitleScreen.frm95.distort.lblTo.Location.Y);
+ await Task.Delay(100);
+ TitleScreen.frm95.distort.lblTo.ForeColor = Color.Silver;
+ TitleScreen.frm95.distort.lblTo.Location = new Point(TitleScreen.frm95.distort.lblTo.Location.X + increment, TitleScreen.frm95.distort.lblTo.Location.Y);
+ await Task.Delay(100);
+ }
+ foreach (Control c in TitleScreen.frm95.distort.Controls) c.ForeColor = Color.Gray;
+ await Task.Delay(100);
+ foreach (Control c in TitleScreen.frm95.distort.Controls) c.ForeColor = Color.Black;
+ await Task.Delay(2000);
+ sp.Stop();
+
+ SaveSystem.UpgradeFileSystem("95", "98");
+ SaveSystem.CurrentSave.CurrentOS = "98";
+ SaveSystem.currentTheme = new Default98Theme();
+ TitleScreen.frm95.distort.ParentForm.Close();
+ Program.title.StartGame();
+ TitleScreen.frm95.Close();
+ return;
}
}
}