diff --git a/Histacom2/OS/Win98/Win98Apps/Story/Hack3.cs b/Histacom2/OS/Win98/Win98Apps/Story/Hack3.cs index 35fed15..e4d79ae 100644 --- a/Histacom2/OS/Win98/Win98Apps/Story/Hack3.cs +++ b/Histacom2/OS/Win98/Win98Apps/Story/Hack3.cs @@ -1,9 +1,12 @@ using Histacom2.Engine; +using Histacom2.Engine.Template; using System; using System.Collections.Generic; +using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; +using System.Windows.Forms; namespace Histacom2.OS.Win98.Win98Apps.Story { @@ -13,6 +16,8 @@ public class Hack3 : object public static async void StartObjective() { + Random r = new Random(); + await Task.Delay(4000); TitleScreen.frm98.webchat.history.AppendText("12padams: it looks like the time distorter has been activated" + Environment.NewLine); TitleScreen.frm98.webchat.receive.Play(); // 116 await Task.Delay(3000); TitleScreen.frm98.webchat.history.AppendText("HiddenHacker: so, in 2 minutes we see the results?" + Environment.NewLine); TitleScreen.frm98.webchat.receive.Play(); // 113 await Task.Delay(4000); TitleScreen.frm98.webchat.history.AppendText($"12padams: wrong. 2 minutes for {SaveSystem.ProfileName}, and a year for us" + Environment.NewLine); TitleScreen.frm98.webchat.receive.Play(); // 109 @@ -40,7 +45,86 @@ public static async void StartObjective() await Task.Delay(6000); TitleScreen.frm98.webchat.history.AppendText($"12padams: oh hey {SaveSystem.ProfileName}, make sure to keep an eye on the year in case something goes wrong" + Environment.NewLine); TitleScreen.frm98.webchat.receive.Play(); // 10 await Task.Delay(4000); TitleScreen.frm98.webchat.history.AppendText("HiddenHacker: and have a safe trip!" + Environment.NewLine); TitleScreen.frm98.webchat.receive.Play(); // 6 - while (TitleScreen.frm98.distort.secsLeft != 0) { } + while (TitleScreen.frm98.distort.secsLeft != 0) { } // 0 + + TitleScreen.frm98.distort.classicLabel4.Text = "Initiating Time Travel..."; + await Task.Delay(100); Program.Invert(TitleScreen.frm98.webchat); + await Task.Delay(100); Program.Invert(TitleScreen.frm98.webchat); + await Task.Delay(100); Program.Invert(TitleScreen.frm98.webchat); + await Task.Delay(100); Program.Invert(TitleScreen.frm98.webchat); + await Task.Delay(100); Program.Invert(TitleScreen.frm98.webchat); + await Task.Delay(100); Program.Invert(TitleScreen.frm98.webchat); + await Task.Delay(100); Program.Invert(TitleScreen.frm98.webchat); + await Task.Delay(100); Program.Invert(TitleScreen.frm98.webchat); + await Task.Delay(100); Program.Invert(TitleScreen.frm98.webchat); + await Task.Delay(100); Program.Invert(TitleScreen.frm98.webchat); // -1 + TitleScreen.frm98.webchat.ParentForm.Close(); + + await Task.Delay(100); TitleScreen.frm98.taskbar.BackgroundImage = null; Program.Invert(TitleScreen.frm98.taskbar, false); + await Task.Delay(100); Program.Invert(TitleScreen.frm98.taskbar, false); + await Task.Delay(100); Program.Invert(TitleScreen.frm98.taskbar, false); + await Task.Delay(100); Program.Invert(TitleScreen.frm98.taskbar, false); + await Task.Delay(100); Program.Invert(TitleScreen.frm98.taskbar, false); + await Task.Delay(100); Program.Invert(TitleScreen.frm98.taskbar, false); + await Task.Delay(100); Program.Invert(TitleScreen.frm98.taskbar, false); + await Task.Delay(100); Program.Invert(TitleScreen.frm98.taskbar, false); + await Task.Delay(100); Program.Invert(TitleScreen.frm98.taskbar, false); + await Task.Delay(100); Program.Invert(TitleScreen.frm98.taskbar, false); // -2 + + await Task.Delay(100); TitleScreen.frm98.taskbar.Hide(); + await Task.Delay(100); TitleScreen.frm98.desktopicons.Hide(); + await Task.Delay(100); TitleScreen.frm98.desktopicons.Show(); + await Task.Delay(100); TitleScreen.frm98.desktopicons.Hide(); + await Task.Delay(100); TitleScreen.frm98.desktopicons.Show(); + await Task.Delay(100); TitleScreen.frm98.desktopicons.Hide(); + await Task.Delay(100); TitleScreen.frm98.desktopicons.Show(); + await Task.Delay(100); TitleScreen.frm98.desktopicons.Hide(); + await Task.Delay(100); TitleScreen.frm98.desktopicons.Show(); + await Task.Delay(100); TitleScreen.frm98.desktopicons.Hide(); // -3 + + await Task.Delay(100); Program.Invert(TitleScreen.frm98, false); + await Task.Delay(100); Program.Invert(TitleScreen.frm98, false); + await Task.Delay(100); Program.Invert(TitleScreen.frm98, false); + await Task.Delay(100); Program.Invert(TitleScreen.frm98, false); + await Task.Delay(100); Program.Invert(TitleScreen.frm98, false); + await Task.Delay(100); Program.Invert(TitleScreen.frm98, false); + await Task.Delay(100); Program.Invert(TitleScreen.frm98, false); + await Task.Delay(100); Program.Invert(TitleScreen.frm98, false); + await Task.Delay(100); Program.Invert(TitleScreen.frm98, false); + await Task.Delay(100); Program.Invert(TitleScreen.frm98, false); // -4 + + await Task.Delay(100); TitleScreen.frm98.distort.ParentForm.Location = new Point(r.Next(TitleScreen.frm98.Width), r.Next(TitleScreen.frm98.Height)); Program.Invert(TitleScreen.frm98, false); + await Task.Delay(100); TitleScreen.frm98.distort.ParentForm.Location = new Point(r.Next(TitleScreen.frm98.Width), r.Next(TitleScreen.frm98.Height)); Program.Invert(TitleScreen.frm98, false); + await Task.Delay(100); TitleScreen.frm98.distort.ParentForm.Location = new Point(r.Next(TitleScreen.frm98.Width), r.Next(TitleScreen.frm98.Height)); Program.Invert(TitleScreen.frm98, false); + await Task.Delay(100); TitleScreen.frm98.distort.ParentForm.Location = new Point(r.Next(TitleScreen.frm98.Width), r.Next(TitleScreen.frm98.Height)); Program.Invert(TitleScreen.frm98, false); + await Task.Delay(100); TitleScreen.frm98.distort.ParentForm.Location = new Point(r.Next(TitleScreen.frm98.Width), r.Next(TitleScreen.frm98.Height)); Program.Invert(TitleScreen.frm98, false); + await Task.Delay(100); TitleScreen.frm98.distort.ParentForm.Location = new Point(r.Next(TitleScreen.frm98.Width), r.Next(TitleScreen.frm98.Height)); Program.Invert(TitleScreen.frm98, false); + await Task.Delay(100); TitleScreen.frm98.distort.ParentForm.Location = new Point(r.Next(TitleScreen.frm98.Width), r.Next(TitleScreen.frm98.Height)); Program.Invert(TitleScreen.frm98, false); + await Task.Delay(100); TitleScreen.frm98.distort.ParentForm.Location = new Point(r.Next(TitleScreen.frm98.Width), r.Next(TitleScreen.frm98.Height)); Program.Invert(TitleScreen.frm98, false); + await Task.Delay(100); TitleScreen.frm98.distort.ParentForm.Location = new Point(r.Next(TitleScreen.frm98.Width), r.Next(TitleScreen.frm98.Height)); Program.Invert(TitleScreen.frm98, false); + await Task.Delay(100); TitleScreen.frm98.distort.ParentForm.Location = new Point(r.Next(TitleScreen.frm98.Width), r.Next(TitleScreen.frm98.Height)); Program.Invert(TitleScreen.frm98, false); // -5 + + await Task.Delay(100); + TitleScreen.frm98.Hide(); + ((WinClassic)TitleScreen.frm98.distort.ParentForm).BringToFront(); + ((WinClassic)TitleScreen.frm98.distort.ParentForm).maximizebutton.Enabled = false; + ((WinClassic)TitleScreen.frm98.distort.ParentForm).WindowState = FormWindowState.Maximized; + ((WinClassic)TitleScreen.frm98.distort.ParentForm).right.Hide(); + ((WinClassic)TitleScreen.frm98.distort.ParentForm).left.Hide(); + ((WinClassic)TitleScreen.frm98.distort.ParentForm).bottom.Hide(); + ((WinClassic)TitleScreen.frm98.distort.ParentForm).top.Hide(); + ((WinClassic)TitleScreen.frm98.distort.ParentForm).bottomleftcorner.Hide(); + ((WinClassic)TitleScreen.frm98.distort.ParentForm).bottomrightcorner.Hide(); + ((WinClassic)TitleScreen.frm98.distort.ParentForm).topleftcorner.Hide(); + ((WinClassic)TitleScreen.frm98.distort.ParentForm).toprightcorner.Hide(); + ((WinClassic)TitleScreen.frm98.distort.ParentForm).Dock = DockStyle.Fill; + ((WinClassic)TitleScreen.frm98.distort.ParentForm).max = true; + ((WinClassic)TitleScreen.frm98.distort.ParentForm).maximizebutton.Image = Engine.Properties.Resources.WinClassicRestore; + ((WinClassic)TitleScreen.frm98.distort.ParentForm).programtopbar.Hide(); + TitleScreen.frm98.distort.BackColor = Color.Black; + foreach (Control c in TitleScreen.frm98.distort.Controls) c.Hide(); + TitleScreen.frm98.distort.classicLabel1.Show(); + TitleScreen.frm98.distort.classicLabel1.ForeColor = Color.Green; } } } diff --git a/Histacom2/OS/Win98/Win98Apps/WinClassicTimeDistorter2.Designer.cs b/Histacom2/OS/Win98/Win98Apps/WinClassicTimeDistorter2.Designer.cs index 57ce08a..c717471 100644 --- a/Histacom2/OS/Win98/Win98Apps/WinClassicTimeDistorter2.Designer.cs +++ b/Histacom2/OS/Win98/Win98Apps/WinClassicTimeDistorter2.Designer.cs @@ -117,10 +117,10 @@ private void InitializeComponent() #endregion private Engine.UI.ClassicButton classicButton1; - private Engine.UI.ClassicLabel classicLabel1; + public Engine.UI.ClassicLabel classicLabel1; private Engine.UI.ClassicLabel classicLabel2; private Engine.UI.ClassicLabel classicLabel3; - private Engine.UI.ClassicLabel classicLabel4; + public Engine.UI.ClassicLabel classicLabel4; private System.Windows.Forms.Timer timer1; } }