diff options
Diffstat (limited to 'Histacom2/OS/Win95/Win95Apps')
| -rw-r--r-- | Histacom2/OS/Win95/Win95Apps/Story/Hack1.cs | 72 | ||||
| -rw-r--r-- | Histacom2/OS/Win95/Win95Apps/Story/Hack2.cs | 523 | ||||
| -rw-r--r-- | Histacom2/OS/Win95/Win95Apps/Win95Installer.Designer.cs | 2 | ||||
| -rw-r--r-- | Histacom2/OS/Win95/Win95Apps/Win95WindowsExplorer.cs | 12 |
4 files changed, 311 insertions, 298 deletions
diff --git a/Histacom2/OS/Win95/Win95Apps/Story/Hack1.cs b/Histacom2/OS/Win95/Win95Apps/Story/Hack1.cs index a918cda..a0f6cb1 100644 --- a/Histacom2/OS/Win95/Win95Apps/Story/Hack1.cs +++ b/Histacom2/OS/Win95/Win95Apps/Story/Hack1.cs @@ -38,39 +38,45 @@ namespace Histacom2.OS.Win95.Win95Apps.Story public static async void ContinueObjective() { - WinClassicTerminal Console = new WinClassicTerminal(true); - WinClassic app = wm.Init(Console, "MS-DOS Prompt", null, true, true); - TitleScreen.frm95.AddTaskBarItem(app, app.Tag.ToString(), "MS-DOS Prompt", null); + try + { + WinClassicTerminal Console = new WinClassicTerminal(true); + WinClassic app = wm.Init(Console, "MS-DOS Prompt", null, true, true); + TitleScreen.frm95.AddTaskBarItem(app, app.Tag.ToString(), "MS-DOS Prompt", null); - Console.WriteLine("telnet> 104.27.135.159 Connecting..."); - await Task.Delay(2500); - Console.WriteLine("telnet> 104.27.135.159 Connected."); - await Task.Delay(2500); - Console.WriteLine("telnet> 104.27.135.159 set hostname to 'TheHiddenHacker'."); - await Task.Delay(2500); - Console.WriteLine("TheHiddenHacker> I see you have access to 12padams.com."); - await Task.Delay(4500); - Console.WriteLine("TheHiddenHacker> Though it doesn't seem obvious, only a very limited amount of people can access the site."); - await Task.Delay(6000); - Console.WriteLine("TheHiddenHacker> 12padams has a secret, and I need you to help me find it."); - await Task.Delay(3500); - Console.WriteLine("TheHiddenHacker> I was snooping around his website, when he blacklisted my IP address."); - await Task.Delay(4000); - Console.WriteLine("TheHiddenHacker> While I was searching, I noticed a file that I didn't have permission to download. I need you to get it for me."); - await Task.Delay(6500); - Console.WriteLine("TheHiddenHacker> First, I'll need you to download an FTP client, available under the software section of 12padams' website."); - await Task.Delay(5000); - Console.WriteLine("TheHiddenHacker> Once that's downloaded, You'll need to type in a Hostname, Username, and Password."); - await Task.Delay(4500); - Console.WriteLine("TheHiddenHacker> The hostname is 172.68.119.42, and the username is most likely 12padams. I'm not too sure what the password is, however."); - await Task.Delay(3500); - Console.WriteLine("TheHiddenHacker> You'll need to figure out where you can get the password. Try looking for any odd text on the website."); - await Task.Delay(3500); - Console.WriteLine("TheHiddenHacker> I don't have much time to talk - I'd quickly copy down those details into Notepad before this Terminal gets closed."); + Console.WriteLine("telnet> 104.27.135.159 Connecting..."); + await Task.Delay(2500); + Console.WriteLine("telnet> 104.27.135.159 Connected."); + await Task.Delay(2500); + Console.WriteLine("telnet> 104.27.135.159 set hostname to 'TheHiddenHacker'."); + await Task.Delay(2500); + Console.WriteLine("TheHiddenHacker> I see you have access to 12padams.com."); + await Task.Delay(4500); + Console.WriteLine("TheHiddenHacker> Though it doesn't seem obvious, only a very limited amount of people can access the site."); + await Task.Delay(6000); + Console.WriteLine("TheHiddenHacker> 12padams has a secret, and I need you to help me find it."); + await Task.Delay(3500); + Console.WriteLine("TheHiddenHacker> I was snooping around his website, when he blacklisted my IP address."); + await Task.Delay(4000); + Console.WriteLine("TheHiddenHacker> While I was searching, I noticed a file that I didn't have permission to download. I need you to get it for me."); + await Task.Delay(6500); + Console.WriteLine("TheHiddenHacker> First, I'll need you to download an FTP client, available under the software section of 12padams' website."); + await Task.Delay(5000); + Console.WriteLine("TheHiddenHacker> Once that's downloaded, You'll need to type in a Hostname, Username, and Password."); + await Task.Delay(4500); + Console.WriteLine("TheHiddenHacker> The hostname is 172.68.119.42, and the username is most likely 12padams. I'm not too sure what the password is, however."); + await Task.Delay(3500); + Console.WriteLine("TheHiddenHacker> You'll need to figure out where you can get the password. Try looking for any odd text on the website."); + await Task.Delay(3500); + Console.WriteLine("TheHiddenHacker> I don't have much time to talk - I'd quickly copy down those details into Notepad before this Terminal gets closed."); - await Task.Delay(36000); - app.Close(); - ended = true; + await Task.Delay(36000); + app.Close(); + ended = true; + } catch (Exception e) + { + return; + } } public static void CheckIfSoundFinished(Object sender, EventArgs e) @@ -87,11 +93,11 @@ namespace Histacom2.OS.Win95.Win95Apps.Story public static void dialup_sound_play() { - SoundPlayer dialup_sound; + /* SoundPlayer dialup_sound; // Play Dial-up Sound Stream audio = Properties.Resources.modem_dial; dialup_sound = new SoundPlayer(audio); - dialup_sound.PlaySync(); + dialup_sound.PlaySync(); */ } } } diff --git a/Histacom2/OS/Win95/Win95Apps/Story/Hack2.cs b/Histacom2/OS/Win95/Win95Apps/Story/Hack2.cs index 9dcebfc..b71cb68 100644 --- a/Histacom2/OS/Win95/Win95Apps/Story/Hack2.cs +++ b/Histacom2/OS/Win95/Win95Apps/Story/Hack2.cs @@ -15,271 +15,276 @@ namespace Histacom2.OS.Win95.Win95Apps.Story public static async void StartObjective() { - WinClassicTerminal Console = new WinClassicTerminal(true); - Random r = new Random(); - WinClassic app = wm.Init(Console, "MS-DOS Prompt", null, true, true); - - Console.WriteLine("telnet> 185.152.46.51 Connecting..."); - await Task.Delay(2500); - Console.WriteLine("telnet> 185.152.46.51 Connected."); - await Task.Delay(2500); - Console.WriteLine("telnet> 185.152.46.51 set hostname to '12padams'."); - await Task.Delay(2000); - Console.WriteLine("12padams> WHAT DO YOU THINK YOU'RE DOING??"); - await Task.Delay(3000); - Console.WriteLine("12padams> First you hack my FTP server.."); - await Task.Delay(4500); - Console.WriteLine("12padams> Then you download my secret Time Distorter program?"); - await Task.Delay(4000); - Console.WriteLine("12padams> Oh, and I know you activated it."); - await Task.Delay(4000); - Console.WriteLine("12padams> I can see your screen right now.."); - await Task.Delay(5000); - Console.WriteLine("12padams> Now, in about 2 minutes you think you're going to be able to travel to 1999."); - await Task.Delay(3500); - Console.WriteLine("12padams> Well, I am sorry but I just can't let you do that."); - await Task.Delay(5000); - Console.WriteLine("12padams> You see, I have LOTS of power over your computer."); - await Task.Delay(3400); - Console.WriteLine("12padams> Okay, let me show you how easy this is."); - await Task.Delay(1500); - Console.WriteLine("Command> Hide Start Button"); - TitleScreen.frm95.startbutton.Hide(); - await Task.Delay(3500); - Console.WriteLine("12padams> See how easy that was?"); - await Task.Delay(3700); - Console.WriteLine("12padams> Now watch this.."); - await Task.Delay(3000); - TitleScreen.frm95.desktopicons.BackgroundImage = Properties.Resources.Win95Error; - TitleScreen.frm95.BackgroundImage = null; - await Task.Delay(3000); - Console.WriteLine("12padams> Hahaha, having a few errors are we?"); - await Task.Delay(2500); - Console.WriteLine("telnet> 104.27.135.159 Connecting..."); - await Task.Delay(2500); - Console.WriteLine("telnet> 104.27.135.159 Connected."); - await Task.Delay(2500); - Console.WriteLine("telnet> 104.27.135.159 set hostname to 'TheHiddenHacker'."); - await Task.Delay(3000); - Console.WriteLine("The Hidden Hacker> Great, you found the software."); - await Task.Delay(3700); - Console.WriteLine("12padams> How dare you.."); - await Task.Delay(3500); - Console.WriteLine($"The Hidden Hacker> Don't worry {SaveSystem.ProfileName}."); - await Task.Delay(4500); - Console.WriteLine("The Hidden Hacker> I have to say, good job for getting the Time Distorter."); - await Task.Delay(4000); - Console.WriteLine("12padams> The Hidden Hacker.. I thought my first punishment was enough to keep you away."); - await Task.Delay(4500); - Console.WriteLine("The Hidden Hacker> Well, now that I have uncovered your secret, I'm not just gonna go away."); - await Task.Delay(3600); - Console.WriteLine("12padams> If you don't go, I'll make you go!"); - await Task.Delay(3700); - Console.WriteLine($"The Hidden Hacker> Hey {SaveSystem.ProfileName}, don't worry about 12padams. You're about to get away from all this."); - await Task.Delay(3500); - Console.WriteLine("The Hidden Hacker> Let me fix this.."); - await Task.Delay(2500); - Console.WriteLine("Command> Show Start Button"); - TitleScreen.frm95.startbutton.Show(); - if (SaveSystem.currentTheme.defaultWallpaper != null) TitleScreen.frm95.desktopicons.BackgroundImage = new Bitmap(SaveSystem.currentTheme.defaultWallpaper, TitleScreen.frm95.Width, TitleScreen.frm95.Height); - await Task.Delay(2900); - Console.WriteLine("12padams> OKAY, NOW YOU'VE DONE IT!"); - await Task.Delay(2500); - Console.WriteLine("Command> Stop Timer"); - TitleScreen.frm95.distort.lblCountDown.Hide(); - await Task.Delay(3000); - Console.WriteLine("12padams> I bet you didn't see that one coming.."); - await Task.Delay(3700); - Console.WriteLine("The Hidden Hacker> Oh but I did.."); - await Task.Delay(5000); - Console.WriteLine("The Hidden Hacker> I converted the stop function to the hide function when I logged on.."); - await Task.Delay(4200); - Console.WriteLine("12padams> NO! That's impossible!"); - await Task.Delay(3000); - Console.WriteLine("The Hidden Hacker> Oh, is it? Well, watch this!"); - TitleScreen.frm95.distort.Counter = 16; - await Task.Delay(2000); - Console.WriteLine("Command> Show Timer"); - TitleScreen.frm95.distort.lblCountDown.Show(); - await Task.Delay(3000); - Console.WriteLine("The Hidden Hacker> And here's one more command for you to learn."); - await Task.Delay(2000); - Console.WriteLine("Command> Disconnect 12padams"); - await Task.Delay(2000); - Console.WriteLine("telnet> 12padams Disconnected."); - await Task.Delay(3000); - Console.WriteLine($"The Hidden Hacker> Good luck {SaveSystem.ProfileName}! I'll see you in the future!"); - await Task.Delay(4000); + try + { + WinClassicTerminal Console = new WinClassicTerminal(true); + Random r = new Random(); + WinClassic app = wm.Init(Console, "MS-DOS Prompt", null, true, true); - while (TitleScreen.frm95.distort.Counter != 0) { } - TitleScreen.frm95.distort.lblCountDown.Text = "Initiating Time Travel Sequence..."; - await Task.Delay(100); - Program.Invert(Console.cmdPrompt); - await Task.Delay(100); - Program.Invert(Console.cmdPrompt); - await Task.Delay(100); - Program.Invert(Console.cmdPrompt); - await Task.Delay(100); - Program.Invert(Console.cmdPrompt); - await Task.Delay(100); - Program.Invert(Console.cmdPrompt); - await Task.Delay(100); - Program.Invert(Console.cmdPrompt); - await Task.Delay(100); - Program.Invert(Console.cmdPrompt); - await Task.Delay(100); - Program.Invert(Console.cmdPrompt); - await Task.Delay(100); - Program.Invert(Console.cmdPrompt); - await Task.Delay(100); - Program.Invert(Console.cmdPrompt); - app.Close(); - 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); - await Task.Delay(100); - Program.Invert(TitleScreen.frm95.taskbar, false); - await Task.Delay(100); - Program.Invert(TitleScreen.frm95.taskbar, false); - await Task.Delay(100); - Program.Invert(TitleScreen.frm95.taskbar, false); - await Task.Delay(100); - Program.Invert(TitleScreen.frm95.taskbar, false); - await Task.Delay(100); - Program.Invert(TitleScreen.frm95.taskbar, false); - await Task.Delay(100); - Program.Invert(TitleScreen.frm95.taskbar, false); - await Task.Delay(100); - Program.Invert(TitleScreen.frm95.taskbar, false); - await Task.Delay(100); - 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..."; + Console.WriteLine("telnet> 185.152.46.51 Connecting..."); + await Task.Delay(2500); + Console.WriteLine("telnet> 185.152.46.51 Connected."); + await Task.Delay(2500); + Console.WriteLine("telnet> 185.152.46.51 set hostname to '12padams'."); + await Task.Delay(2000); + Console.WriteLine("12padams> WHAT DO YOU THINK YOU'RE DOING??"); + await Task.Delay(3000); + Console.WriteLine("12padams> First you hack my FTP server.."); + await Task.Delay(4500); + Console.WriteLine("12padams> Then you download my secret Time Distorter program?"); + await Task.Delay(4000); + Console.WriteLine("12padams> Oh, and I know you activated it."); + await Task.Delay(4000); + Console.WriteLine("12padams> I can see your screen right now.."); + await Task.Delay(5000); + Console.WriteLine("12padams> Now, in about 2 minutes you think you're going to be able to travel to 1999."); + await Task.Delay(3500); + Console.WriteLine("12padams> Well, I am sorry but I just can't let you do that."); + await Task.Delay(5000); + Console.WriteLine("12padams> You see, I have LOTS of power over your computer."); + await Task.Delay(3400); + Console.WriteLine("12padams> Okay, let me show you how easy this is."); + await Task.Delay(1500); + Console.WriteLine("Command> Hide Start Button"); + TitleScreen.frm95.startbutton.Hide(); + await Task.Delay(3500); + Console.WriteLine("12padams> See how easy that was?"); + await Task.Delay(3700); + Console.WriteLine("12padams> Now watch this.."); + await Task.Delay(3000); + TitleScreen.frm95.desktopicons.BackgroundImage = Properties.Resources.Win95Error; + TitleScreen.frm95.BackgroundImage = null; + await Task.Delay(3000); + Console.WriteLine("12padams> Hahaha, having a few errors are we?"); + await Task.Delay(2500); + Console.WriteLine("telnet> 104.27.135.159 Connecting..."); + await Task.Delay(2500); + Console.WriteLine("telnet> 104.27.135.159 Connected."); + await Task.Delay(2500); + Console.WriteLine("telnet> 104.27.135.159 set hostname to 'TheHiddenHacker'."); + await Task.Delay(3000); + Console.WriteLine("The Hidden Hacker> Great, you found the software."); + await Task.Delay(3700); + Console.WriteLine("12padams> How dare you.."); + await Task.Delay(3500); + Console.WriteLine($"The Hidden Hacker> Don't worry {SaveSystem.ProfileName}."); + await Task.Delay(4500); + Console.WriteLine("The Hidden Hacker> I have to say, good job for getting the Time Distorter."); + await Task.Delay(4000); + Console.WriteLine("12padams> The Hidden Hacker.. I thought my first punishment was enough to keep you away."); + await Task.Delay(4500); + Console.WriteLine("The Hidden Hacker> Well, now that I have uncovered your secret, I'm not just gonna go away."); + await Task.Delay(3600); + Console.WriteLine("12padams> If you don't go, I'll make you go!"); + await Task.Delay(3700); + Console.WriteLine($"The Hidden Hacker> Hey {SaveSystem.ProfileName}, don't worry about 12padams. You're about to get away from all this."); + await Task.Delay(3500); + Console.WriteLine("The Hidden Hacker> Let me fix this.."); + await Task.Delay(2500); + Console.WriteLine("Command> Show Start Button"); + TitleScreen.frm95.startbutton.Show(); + if (SaveSystem.currentTheme.defaultWallpaper != null) TitleScreen.frm95.desktopicons.BackgroundImage = new Bitmap(SaveSystem.currentTheme.defaultWallpaper, TitleScreen.frm95.Width, TitleScreen.frm95.Height); + await Task.Delay(2900); + Console.WriteLine("12padams> OKAY, NOW YOU'VE DONE IT!"); + await Task.Delay(2500); + Console.WriteLine("Command> Stop Timer"); + TitleScreen.frm95.distort.lblCountDown.Hide(); + await Task.Delay(3000); + Console.WriteLine("12padams> I bet you didn't see that one coming.."); + await Task.Delay(3700); + Console.WriteLine("The Hidden Hacker> Oh but I did.."); + await Task.Delay(5000); + Console.WriteLine("The Hidden Hacker> I converted the stop function to the hide function when I logged on.."); + await Task.Delay(4200); + Console.WriteLine("12padams> NO! That's impossible!"); + await Task.Delay(3000); + Console.WriteLine("The Hidden Hacker> Oh, is it? Well, watch this!"); + TitleScreen.frm95.distort.Counter = 16; + await Task.Delay(2000); + Console.WriteLine("Command> Show Timer"); + TitleScreen.frm95.distort.lblCountDown.Show(); + await Task.Delay(3000); + Console.WriteLine("The Hidden Hacker> And here's one more command for you to learn."); + await Task.Delay(2000); + Console.WriteLine("Command> Disconnect 12padams"); + await Task.Delay(2000); + Console.WriteLine("telnet> 12padams Disconnected."); + await Task.Delay(3000); + Console.WriteLine($"The Hidden Hacker> Good luck {SaveSystem.ProfileName}! I'll see you in the future!"); + await Task.Delay(4000); - 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; + while (TitleScreen.frm95.distort.Counter != 0) { } + TitleScreen.frm95.distort.lblCountDown.Text = "Initiating Time Travel Sequence..."; + await Task.Delay(100); + Program.Invert(Console.cmdPrompt); + await Task.Delay(100); + Program.Invert(Console.cmdPrompt); + await Task.Delay(100); + Program.Invert(Console.cmdPrompt); + await Task.Delay(100); + Program.Invert(Console.cmdPrompt); + await Task.Delay(100); + Program.Invert(Console.cmdPrompt); + await Task.Delay(100); + Program.Invert(Console.cmdPrompt); + await Task.Delay(100); + Program.Invert(Console.cmdPrompt); + await Task.Delay(100); + Program.Invert(Console.cmdPrompt); + await Task.Delay(100); + Program.Invert(Console.cmdPrompt); + await Task.Delay(100); + Program.Invert(Console.cmdPrompt); + app.Close(); + 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); + await Task.Delay(100); + Program.Invert(TitleScreen.frm95.taskbar, false); + await Task.Delay(100); + Program.Invert(TitleScreen.frm95.taskbar, false); + await Task.Delay(100); + Program.Invert(TitleScreen.frm95.taskbar, false); + await Task.Delay(100); + Program.Invert(TitleScreen.frm95.taskbar, false); + await Task.Delay(100); + Program.Invert(TitleScreen.frm95.taskbar, false); + await Task.Delay(100); + Program.Invert(TitleScreen.frm95.taskbar, false); + await Task.Delay(100); + Program.Invert(TitleScreen.frm95.taskbar, false); + await Task.Delay(100); + 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..."; - SoundPlayer sp = new SoundPlayer(Properties.Resources.distort1); - sp.Play(); - await Task.Delay(1000); + 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; - 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); + 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.Gray; - await Task.Delay(100); - foreach (Control c in TitleScreen.frm95.distort.Controls) c.ForeColor = Color.Black; - await Task.Delay(2000); - sp.Stop(); + foreach (Control c in TitleScreen.frm95.distort.Controls) c.ForeColor = Color.Black; + await Task.Delay(2000); + sp.Stop(); - SaveSystem.UpgradeFileSystem("98"); - SaveSystem.CurrentSave.CurrentOS = "98"; - SaveSystem.currentTheme = new Default98Theme(); - SaveSystem.CurrentSave.ThemeName = "default98"; - Upgraded = true; - TitleScreen.frm95.distort.ParentForm.Close(); - foreach (Form frm in Application.OpenForms) if (frm is WinClassic) frm.Close(); - Program.title.StartGame(); - TitleScreen.frm95.Close(); - return; + SaveSystem.UpgradeFileSystem("98"); + SaveSystem.CurrentSave.CurrentOS = "98"; + SaveSystem.currentTheme = new Default98Theme(); + SaveSystem.CurrentSave.ThemeName = "default98"; + Upgraded = true; + TitleScreen.frm95.distort.ParentForm.Close(); + foreach (Form frm in Application.OpenForms) if (frm is WinClassic) frm.Close(); + Program.title.StartGame(); + TitleScreen.frm95.Close(); + return; + } catch (Exception e) { + return; + } } } } diff --git a/Histacom2/OS/Win95/Win95Apps/Win95Installer.Designer.cs b/Histacom2/OS/Win95/Win95Apps/Win95Installer.Designer.cs index 5592445..2ed4fbe 100644 --- a/Histacom2/OS/Win95/Win95Apps/Win95Installer.Designer.cs +++ b/Histacom2/OS/Win95/Win95Apps/Win95Installer.Designer.cs @@ -281,6 +281,8 @@ this.Controls.Add(this.label1); this.Controls.Add(this.pictureBox1); this.Controls.Add(this.installPic); + this.MaximumSize = new System.Drawing.Size(483, 340); + this.MinimumSize = new System.Drawing.Size(483, 340); this.Name = "Win95Installer"; this.Size = new System.Drawing.Size(483, 340); this.Load += new System.EventHandler(this.Win95Installer_Load); diff --git a/Histacom2/OS/Win95/Win95Apps/Win95WindowsExplorer.cs b/Histacom2/OS/Win95/Win95Apps/Win95WindowsExplorer.cs index 3f24049..903e8e1 100644 --- a/Histacom2/OS/Win95/Win95Apps/Win95WindowsExplorer.cs +++ b/Histacom2/OS/Win95/Win95Apps/Win95WindowsExplorer.cs @@ -306,7 +306,7 @@ namespace Histacom2.OS.Win95.Win95Apps case "web chat setup": Win95Installer inst = new Win95Installer("Web Chat 1998"); inst.InstallCompleted += (sendr, args) => { TitleScreen.frm95.WebChatToolStripMenuItem.Visible = true; CurrentSave.installed95[0] = true; SaveGame(); }; - WinClassic appInstaller = wm.Init(inst, "Web Chat Setup", null, true, true); + WinClassic appInstaller = wm.Init(inst, "Web Chat Setup", null, false, true, false, false); Program.AddTaskbarItem(appInstaller, appInstaller.Tag.ToString(), "Web Chat Setup", null); appInstaller.BringToFront(); @@ -322,7 +322,7 @@ namespace Histacom2.OS.Win95.Win95Apps CurrentSave.installed95[1] = true; SaveGame(); }; - WinClassic appFtp = wm.Init(instFtp, "FTP Client Setup", null, true, true); + WinClassic appFtp = wm.Init(instFtp, "FTP Client Setup", null, false, true, false, false); Program.AddTaskbarItem(appFtp, appFtp.Tag.ToString(), "FTP Client Setup", null); appFtp.BringToFront(); @@ -338,7 +338,7 @@ namespace Histacom2.OS.Win95.Win95Apps CurrentSave.installed95[5] = true; SaveGame(); }; - WinClassic appTd = wm.Init(instTd, "Time Distorter Setup", null, true, true); + WinClassic appTd = wm.Init(instTd, "Time Distorter Setup", null, false, true, false, false); Program.AddTaskbarItem(appTd, appTd.Tag.ToString(), "Time Distorter Setup", null); appTd.BringToFront(); @@ -358,7 +358,7 @@ namespace Histacom2.OS.Win95.Win95Apps CurrentSave.installed95[6] = true; SaveGame(); }; - WinClassic appGtn = wm.Init(instGtn, "Guess The Number Setup", null, true, true); + WinClassic appGtn = wm.Init(instGtn, "Guess The Number Setup", null, false, true, false, false); Program.AddTaskbarItem(appGtn, appGtn.Tag.ToString(), "Guess The Number Setup", null); appGtn.BringToFront(); @@ -375,7 +375,7 @@ namespace Histacom2.OS.Win95.Win95Apps case "eb95 setup": Win95Installer ebInstall = new Win95Installer("Error Blaster 95"); ebInstall.InstallCompleted += (sender, args) => { TitleScreen.frm95.ErrorBlasterToolStripMenuItem.Visible = true; CurrentSave.installed95[3] = true; }; - WinClassic installer = wm.Init(ebInstall, "Error Blaster 95 Setup", null, true, true); + WinClassic installer = wm.Init(ebInstall, "Error Blaster 95 Setup", null, false, true, false, false); Program.AddTaskbarItem(installer, installer.Tag.ToString(), "Error Blaster 95 Setup", null); installer.BringToFront(); break; @@ -388,7 +388,7 @@ namespace Histacom2.OS.Win95.Win95Apps case "sr95 setup": Win95Installer srInstall = new Win95Installer("Start Runner 95"); srInstall.InstallCompleted += (sender, args) => { TitleScreen.frm95.StartRunnerToolStripMenuItem.Visible = true; CurrentSave.installed95[2] = true; }; - WinClassic install = wm.Init(srInstall, "Start Runner 95 Setup", null, true, true); + WinClassic install = wm.Init(srInstall, "Start Runner 95 Setup", null, false, true, false, false); Program.AddTaskbarItem(install, install.Tag.ToString(), "Start Runner 95 Setup", null); install.BringToFront(); break; |
