From 77e6fc3cb8a654fc7a677f5b80e3cb067ad53aea Mon Sep 17 00:00:00 2001 From: Alex-TIMEHACK Date: Sat, 10 Jun 2017 21:33:53 +0100 Subject: Done basically nothing --- TimeHACK.Main/OS/Win95/Win95Apps/Story/Hack1.cs | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) (limited to 'TimeHACK.Main/OS/Win95/Win95Apps/Story/Hack1.cs') diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/Story/Hack1.cs b/TimeHACK.Main/OS/Win95/Win95Apps/Story/Hack1.cs index 1822c43..4f12ec7 100644 --- a/TimeHACK.Main/OS/Win95/Win95Apps/Story/Hack1.cs +++ b/TimeHACK.Main/OS/Win95/Win95Apps/Story/Hack1.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.ComponentModel; using System.IO; using System.Linq; using System.Media; @@ -10,23 +11,36 @@ using TimeHACK.Engine; namespace TimeHACK.OS.Win95.Win95Apps.Story { - class Hack1 + class Hack1 : NormalHack { WinClassicTerminal term = new WinClassicTerminal(); WindowManager wm = new WindowManager(); - private SoundPlayer startsound; + + // This is the very first story script! public void startObjective() { wm.startWin95(term, "MS-DOS Prompt", null, true, true); + + Thread theThread = new Thread(startObjectMAIN); + + theThread.Start(); + + } + + public void startObjectMAIN() + { + SoundPlayer startsound; term.WriteLine("192.168.0.1 Connecting..."); - + // Play Dial-up Sound Stream audio = Properties.Resources.modem_dial; startsound = new SoundPlayer(audio); - startsound.PlaySync(); + startsound.Play(); + Thread.Sleep(5000); + startsound.Stop(); term.WriteLine("192.168.0.1 Connected."); } } -- cgit v1.2.3