aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.vs/TimeHACK/v15/.suobin146944 -> 146944 bytes
-rw-r--r--TimeHACK.Main/OS/Win95/Win95.cs720
-rw-r--r--TimeHACK.Main/OS/Win95/Win95Apps/Story/Hack1.cs21
-rw-r--r--TimeHACK.Main/bin/Release/TimeHACK.application2
-rw-r--r--TimeHACK.Main/bin/Release/TimeHACK.exebin6843392 -> 6841344 bytes
-rw-r--r--TimeHACK.Main/bin/Release/TimeHACK.exe.manifest4
-rw-r--r--TimeHACK.Main/bin/Release/TimeHACK.pdbbin298496 -> 290304 bytes
-rw-r--r--TimeHACK.Main/bin/Release/app.publish/TimeHACK.exebin6843392 -> 6841344 bytes
-rw-r--r--TimeHACK.Main/obj/Release/CoreCompileInputs.cache2
-rw-r--r--TimeHACK.Main/obj/Release/DesignTimeResolveAssemblyReferencesInput.cachebin15396 -> 14666 bytes
-rw-r--r--TimeHACK.Main/obj/Release/TimeHACK.Main.csproj.FileListAbsolute.txt1
-rw-r--r--TimeHACK.Main/obj/Release/TimeHACK.Main.csproj.GenerateResource.Cachebin7140 -> 7053 bytes
-rw-r--r--TimeHACK.Main/obj/Release/TimeHACK.Main.csprojResolveAssemblyReference.cachebin46871 -> 46861 bytes
-rw-r--r--TimeHACK.Main/obj/Release/TimeHACK.application2
-rw-r--r--TimeHACK.Main/obj/Release/TimeHACK.exebin6843392 -> 6841344 bytes
-rw-r--r--TimeHACK.Main/obj/Release/TimeHACK.exe.manifest4
-rw-r--r--TimeHACK.Main/obj/Release/TimeHACK.pdbbin298496 -> 290304 bytes
17 files changed, 377 insertions, 379 deletions
diff --git a/.vs/TimeHACK/v15/.suo b/.vs/TimeHACK/v15/.suo
index b4d09a8..fd8dc2a 100644
--- a/.vs/TimeHACK/v15/.suo
+++ b/.vs/TimeHACK/v15/.suo
Binary files differ
diff --git a/TimeHACK.Main/OS/Win95/Win95.cs b/TimeHACK.Main/OS/Win95/Win95.cs
index bd3df96..8b272ec 100644
--- a/TimeHACK.Main/OS/Win95/Win95.cs
+++ b/TimeHACK.Main/OS/Win95/Win95.cs
@@ -1,367 +1,367 @@
-using System;
-using System.Collections.Generic;
-using System.Drawing;
-using System.IO;
-using System.Media;
-using System.Windows.Forms;
-using TimeHACK.Engine;
-using TimeHACK.Engine.Template;
-using TimeHACK.Engine.Template.Taskbars;
-using TimeHACK.OS.Win95.Win95Apps;
-using TimeHACK.WinClassicForms;
-using TimeHACK.OS.Win95.Win95Apps.Story;
-
-namespace TimeHACK.OS.Win95
-{
- public partial class Windows95 : Form
- {
- private SoundPlayer startsound;
- private SoundPlayer stopsound;
- public WindowManager wm = new WindowManager();
-
- public List<WinClassic> nonimportantapps = new List<WinClassic>();
- public WinClassic webchat;
- public WinClassic ie;
- public TaskBarController tb = new TaskBarController();
-
- public int currentappcount = 0;
-
- public bool webchatInstalled = false;
-
- public bool hiddenpadamsFound = false;
-
- // Init the form
- public Windows95()
- {
- InitializeComponent();
- }
-
- // When New Game is clicked in TitleScreen.cs
- private void Desktop_Load(object sender, EventArgs e)
- {
- // Make Font Mandatory
- fontLoad();
-
- // Play Windows 95 Start Sound
- Stream audio = Properties.Resources.Win95Start;
- startsound = new SoundPlayer(audio);
- startsound.Play();
-
- // Hide the Startmenu
- startmenu.Hide();
-
- // Check for and set VM Mode
- if (this.FormBorderStyle != FormBorderStyle.None)
- {
- this.Text = "TimeHACK - VM Mode";
- }
-
- // Start the ClockTimer
- clockTimer.Start();
-
- // Set the StartMenu seperator
- startmenuitems.Items.Insert(6, new ToolStripSeparator());
-
- //nonimportantapps.Capacity = 100;
- this.SendToBack();
-
- // Update the taskbar
- UpdateTaskbar();
-
- // Bring to this the front
- this.BringToFront();
- }
-
- private void fontLoad()
- {
- this.taskbartime.Font = new Font(TitleScreen.pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((byte)(0)));
- this.ProgramsToolStripMenuItem.Font = new Font(TitleScreen.pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((byte)(0)));
- this.DocumentsToolStripMenuItem.Font = new Font(TitleScreen.pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((byte)(0)));
- this.SettingsToolStripMenuItem.Font = new Font(TitleScreen.pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((byte)(0)));
- this.FindToolStripMenuItem.Font = new Font(TitleScreen.pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((byte)(0)));
- this.HelpToolStripMenuItem.Font = new Font(TitleScreen.pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((byte)(0)));
- this.RunToolStripMenuItem.Font = new Font(TitleScreen.pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((byte)(0)));
- this.SuspendToolStripMenuItem.Font = new Font(TitleScreen.pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((byte)(0)));
- this.ShutdownToolStripMenuItem.Font = new Font(TitleScreen.pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((byte)(0)));
- this.desktopicons.Font = new Font(TitleScreen.pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((byte)(0)));
- }
-
- #region StartMenu
-
- // Paint StartMenu
- private void startmenu_Paint(object sender, PaintEventArgs e)
- {
- // Paint the StartMenu
- ControlPaint.DrawBorder(e.Graphics, startmenu.ClientRectangle,
- SystemColors.ControlLightLight, 2, ButtonBorderStyle.Outset,
- SystemColors.ControlLightLight, 2, ButtonBorderStyle.Outset,
- SystemColors.ControlLightLight, 2, ButtonBorderStyle.Outset,
- SystemColors.ControlLightLight, 2, ButtonBorderStyle.Outset);
- }
-
- // StartButton Click
- private void startbutton_Click(object sender, EventArgs e)
- {
- startmenu.Show();
- startmenu.BringToFront();
- }
-
- // Shutdown button
- private void ShutdownToolStripMenuItem_Click(object sender, EventArgs e)
- {
- startsound.Stop();
- Stream audio = Properties.Resources.tada;
- stopsound = new SoundPlayer(audio);
- stopsound.Play();
- System.Threading.Thread.Sleep(1500);
- Application.Exit();
- }
-
- #endregion //Region
-
- // When add new folder is clicked
- private void FolderToolStripMenuItem_Click(object sender, EventArgs e)
- {
- desktopicons.Items.Add("New Folder");
- }
-
- // Give Year Code - NYI
- private void taskbartime_Click(object sender, EventArgs e)
- {
- //TODO: Set Up Save System
- }
-
- // Set the Clock
- private void clockTimer_Tick(object sender, EventArgs e)
- {
- taskbartime.Text = DateTime.Now.ToString("h:mm tt");
- }
-
- // On Desktop MouseDown
- private void desktop_mousedown(object sender, MouseEventArgs e)
- {
- if (e.Button == MouseButtons.Right)
- {
- rightclickbackproperties.Show();
- rightclickbackproperties.BringToFront();
- rightclickbackproperties.Location = MousePosition;
- }
-
- // If
- else if (e.Button == MouseButtons.Left)
- {
- rightclickbackproperties.Hide();
- startmenu.Hide();
- }
-
- else if (e.Button == MouseButtons.Middle)
- {
- rightclickbackproperties.Hide();
- }
- }
-
- private void NotePadToolStripMenuItem_Click(object sender, EventArgs e)
- {
- WinClassicNotepad wp = new WinClassicNotepad();
- WinClassic app = wm.startWin95(wp, "Notepad", Properties.Resources.Win95IconNotepad, true, true);
- AddTaskBarItem(app, app.Tag.ToString(), "Notepad", Properties.Resources.Win95IconNotepad);
-
- nonimportantapps.Add(app);
- nonimportantapps[nonimportantapps.Count - 1].BringToFront();
- nonimportantapps[nonimportantapps.Count - 1].FormClosing += new FormClosingEventHandler(NonImportantApp_Closing);
-
- app.BringToFront();
- startmenu.Hide();
- }
- private void windowManagerTestToolStripMenuItem_Click(object sender, EventArgs e)
- {
- TestApp test = new TestApp();
- WinClassic app = wm.startWin95(test, "TestApp", null, true, true);
- AddTaskBarItem(app, app.Tag.ToString(), "TestApp", null);
- app.BringToFront();
- startmenu.Hide();
- }
-
- private void downloaderTestToolStripMenuItem_Click(object sender, EventArgs e)
- {
- WinClassicDownloader opendownload = new WinClassicDownloader();
- WinClassic app = wm.startWin95(opendownload, "Downloader", null, false, true);
- opendownload.appName.Text = "Downloading: Survive The Day";
-
- AddTaskBarItem(app, app.Tag.ToString(), "Downloader", null);
-
- app.BringToFront();
- startmenu.Hide();
- }
-
- private void installerTestToolStripMenuItem_Click(object sender, EventArgs e)
- {
- WinClassicInstaller openinstaller = new WinClassicInstaller();
- WinClassic app = wm.startWin95(openinstaller, "Installer", null, false, true);
-
- AddTaskBarItem(app, app.Tag.ToString(), "Installer", null);
-
- app.BringToFront();
- startmenu.Hide();
- }
-
- private void InternetExplorerToolStripMenuItem_Click(object sender, EventArgs e)
- {
- if (ie != null) { wm.startInfobox95("Error Opening Internet Explorer", "An instance of Internet Explorer 4 is already open.", Properties.Resources.Win95Warning); return; }
- ie = wm.startWin95(new WinClassicIE4(), "Internet Explorer 4", Properties.Resources.Win95IconIE4, true, true);
- AddTaskBarItem(ie, ie.Tag.ToString(), "Internet Explorer 4", Properties.Resources.Win95IconIE4);
- ie.BringToFront();
- ie.FormClosing += new FormClosingEventHandler(InternetExplorer4_Closing);
- startmenu.Hide();
- }
-
- private void desktopicons_Click(object sender, EventArgs e)
- {
- Point objDrawingPoint = desktopicons.PointToClient(Cursor.Position);
- ListViewItem objListViewItem;
-
- if (objDrawingPoint != null)
- {
- objListViewItem = desktopicons.GetItemAt(objDrawingPoint.X, objDrawingPoint.Y);
- if (objListViewItem != null)
- {
- if (objListViewItem.Text == "Internet Explorer")
- {
- if (ie != null) { wm.startInfobox95("Error Opening Internet Explorer", "An instance of Internet Explorer 4 is already open.", Properties.Resources.Win95Warning); return; }
- ie = wm.startWin95(new WinClassicIE4(), "Internet Explorer 4", Properties.Resources.Win95IconIE4, true, true);
- AddTaskBarItem(ie, ie.Tag.ToString(), "Internet Explorer 4", Properties.Resources.Win95IconIE4);
- ie.BringToFront();
- ie.FormClosing += new FormClosingEventHandler(InternetExplorer4_Closing);
- startmenu.Hide();
- } else if (objListViewItem.Text == "Web Chat Setup")
- {
- WinClassicInstaller inst = new WinClassicInstaller();
- inst.installname.Text = "Web Chat 1998";
- WinClassic app = wm.startWin95(inst, "Web Chat Setup", null, true, true);
- AddTaskBarItem(app, app.Tag.ToString(), "Web Chat Setup", null);
- app.BringToFront();
- startmenu.Hide();
- }
- }
- }
- }
-
- private void infoboxTestToolStripMenuItem_Click(object sender, EventArgs e)
- {
- WinClassic app = wm.startInfobox95("AShifter's Infobox", "This is the very first TimeHACK Infobox. It's really easy to call, too! \n Just use wm.startInfobox95(String title, String text, Image erroricon)!", Properties.Resources.Win95Info);
-
- app.BringToFront();
- startmenu.Hide();
- }
- private void WebChatToolStripMenuItem_Click(object sender, EventArgs e)
- {
- WebChat1998 wc = new WebChat1998();
- WinClassic app = wm.startWin95(wc, "Web Chat 1998", null, true, true);
-
- AddTaskBarItem(app, app.Tag.ToString(), "Web Chat 1998", null);
-
- app.BringToFront();
- startmenu.Hide();
- }
- public void NonImportantApp_Closing(object sender, FormClosingEventArgs e)
- {
- nonimportantapps.Remove((WinClassic)sender);
- }
- private void InternetExplorer4_Closing(object sender, FormClosingEventArgs e)
- {
- ie = null;
- }
-
- private void WordPadToolStripMenuItem_Click(object sender, EventArgs e)
- {
- WinClassicWordPad wp = new WinClassicWordPad();
- WinClassic app = wm.startWin95(wp, "Wordpad", Properties.Resources.Win95IconWordpad, true, true);
- AddTaskBarItem(app, app.Tag.ToString(), "Wordpad", Properties.Resources.Win95IconWordpad);
-
- nonimportantapps.Add(app);
- nonimportantapps[nonimportantapps.Count - 1].BringToFront();
- nonimportantapps[nonimportantapps.Count - 1].FormClosing += new FormClosingEventHandler(NonImportantApp_Closing);
-
- app.BringToFront();
- startmenu.Hide();
- }
-
- public void AddTaskBarItem(Form Application, string ApplicationID, string ApplicationName, Image ApplicationIcon)
- {
- taskbarItems = tb.AddTaskbarItem95(ApplicationID, ApplicationName, ApplicationIcon, (UserControl)new Win95TaskBarItem(), taskbarItems);
- Application.FormClosed += new FormClosedEventHandler(UpdateTaskbarFromClosedApplication);
- }
-
- public void UpdateTaskbarFromClosedApplication(object sender, FormClosedEventArgs e)
- {
- UpdateTaskbar();
- }
-
- public void UpdateTaskbar()
- {
- // Clears out all the items on the taskbar
- taskbarItems.Controls.Clear();
-
- // Loops through all the Applications which are open
-
- foreach (Form form in tb.GetAllOpenApps())
- {
- // Calls that "AddToTaskbar" thing
- taskbarItems = tb.AddTaskbarItem95(form.Tag.ToString(), form.Text.ToString(), (Image)form.Icon.ToBitmap(), (UserControl)new Win95TaskBarItem(), taskbarItems);
- }
- }
-
- private void AddressBookToolStripMenuItem_Click(object sender, EventArgs e)
- {
- WinClassicAddressBook ab = new WinClassicAddressBook();
- WinClassic app = wm.startWin95(ab, "Address Book", Properties.Resources.WinClassicAddressBook, true, true);
- AddTaskBarItem(app, app.Tag.ToString(), "Address Book", Properties.Resources.WinClassicAddressBook);
-
- nonimportantapps.Add(app);
- nonimportantapps[nonimportantapps.Count - 1].BringToFront();
- nonimportantapps[nonimportantapps.Count - 1].FormClosing += new FormClosingEventHandler(NonImportantApp_Closing);
-
- app.BringToFront();
- startmenu.Hide();
- }
-
- private void WindowsExplorerToolStripMenuItem1_Click(object sender, EventArgs e)
- {
- FileDialogBoxManager.IsInOpenDialog = false;
- FileDialogBoxManager.IsInSaveDialog = false;
- WinClassicWindowsExplorer we = new WinClassicWindowsExplorer();
- WinClassic app = wm.startWin95(we, "Windows Explorer", Properties.Resources.WinClassicFileExplorer, true, true);
- AddTaskBarItem(app, app.Tag.ToString(), "Windows Explorer", Properties.Resources.WinClassicFileExplorer);
-
- nonimportantapps.Add(app);
- nonimportantapps[nonimportantapps.Count - 1].BringToFront();
- nonimportantapps[nonimportantapps.Count - 1].FormClosing += new FormClosingEventHandler(NonImportantApp_Closing);
-
- app.BringToFront();
- startmenu.Hide();
- }
-
- private void storyTest1ToolStripMenuItem_Click(object sender, EventArgs e)
- {
- Win95Apps.Story.Hack1 story = new Win95Apps.Story.Hack1();
- story.startObjective();
- }
-
+using System;
+using System.Collections.Generic;
+using System.Drawing;
+using System.IO;
+using System.Media;
+using System.Windows.Forms;
+using TimeHACK.Engine;
+using TimeHACK.Engine.Template;
+using TimeHACK.Engine.Template.Taskbars;
+using TimeHACK.OS.Win95.Win95Apps;
+using TimeHACK.WinClassicForms;
+using TimeHACK.OS.Win95.Win95Apps.Story;
+
+namespace TimeHACK.OS.Win95
+{
+ public partial class Windows95 : Form
+ {
+ private SoundPlayer startsound;
+ private SoundPlayer stopsound;
+ public WindowManager wm = new WindowManager();
+
+ public List<WinClassic> nonimportantapps = new List<WinClassic>();
+ public WinClassic webchat;
+ public WinClassic ie;
+ public TaskBarController tb = new TaskBarController();
+
+ public int currentappcount = 0;
+
+ public bool webchatInstalled = false;
+
+ public bool hiddenpadamsFound = false;
+
+ // Init the form
+ public Windows95()
+ {
+ InitializeComponent();
+ }
+
+ // When New Game is clicked in TitleScreen.cs
+ private void Desktop_Load(object sender, EventArgs e)
+ {
+ // Make Font Mandatory
+ fontLoad();
+
+ // Play Windows 95 Start Sound
+ Stream audio = Properties.Resources.Win95Start;
+ startsound = new SoundPlayer(audio);
+ startsound.Play();
+
+ // Hide the Startmenu
+ startmenu.Hide();
+
+ // Check for and set VM Mode
+ if (this.FormBorderStyle != FormBorderStyle.None)
+ {
+ this.Text = "TimeHACK - VM Mode";
+ }
+
+ // Start the ClockTimer
+ clockTimer.Start();
+
+ // Set the StartMenu seperator
+ startmenuitems.Items.Insert(6, new ToolStripSeparator());
+
+ //nonimportantapps.Capacity = 100;
+ this.SendToBack();
+
+ // Update the taskbar
+ UpdateTaskbar();
+
+ // Bring to this the front
+ this.BringToFront();
+ }
+
+ private void fontLoad()
+ {
+ this.taskbartime.Font = new Font(TitleScreen.pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((byte)(0)));
+ this.ProgramsToolStripMenuItem.Font = new Font(TitleScreen.pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((byte)(0)));
+ this.DocumentsToolStripMenuItem.Font = new Font(TitleScreen.pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((byte)(0)));
+ this.SettingsToolStripMenuItem.Font = new Font(TitleScreen.pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((byte)(0)));
+ this.FindToolStripMenuItem.Font = new Font(TitleScreen.pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((byte)(0)));
+ this.HelpToolStripMenuItem.Font = new Font(TitleScreen.pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((byte)(0)));
+ this.RunToolStripMenuItem.Font = new Font(TitleScreen.pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((byte)(0)));
+ this.SuspendToolStripMenuItem.Font = new Font(TitleScreen.pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((byte)(0)));
+ this.ShutdownToolStripMenuItem.Font = new Font(TitleScreen.pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((byte)(0)));
+ this.desktopicons.Font = new Font(TitleScreen.pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((byte)(0)));
+ }
+
+ #region StartMenu
+
+ // Paint StartMenu
+ private void startmenu_Paint(object sender, PaintEventArgs e)
+ {
+ // Paint the StartMenu
+ ControlPaint.DrawBorder(e.Graphics, startmenu.ClientRectangle,
+ SystemColors.ControlLightLight, 2, ButtonBorderStyle.Outset,
+ SystemColors.ControlLightLight, 2, ButtonBorderStyle.Outset,
+ SystemColors.ControlLightLight, 2, ButtonBorderStyle.Outset,
+ SystemColors.ControlLightLight, 2, ButtonBorderStyle.Outset);
+ }
+
+ // StartButton Click
+ private void startbutton_Click(object sender, EventArgs e)
+ {
+ startmenu.Show();
+ startmenu.BringToFront();
+ }
+
+ // Shutdown button
+ private void ShutdownToolStripMenuItem_Click(object sender, EventArgs e)
+ {
+ startsound.Stop();
+ Stream audio = Properties.Resources.tada;
+ stopsound = new SoundPlayer(audio);
+ stopsound.Play();
+ System.Threading.Thread.Sleep(1500);
+ Application.Exit();
+ }
+
+ #endregion //Region
+
+ // When add new folder is clicked
+ private void FolderToolStripMenuItem_Click(object sender, EventArgs e)
+ {
+ desktopicons.Items.Add("New Folder");
+ }
+
+ // Give Year Code - NYI
+ private void taskbartime_Click(object sender, EventArgs e)
+ {
+ //TODO: Set Up Save System
+ }
+
+ // Set the Clock
+ private void clockTimer_Tick(object sender, EventArgs e)
+ {
+ taskbartime.Text = DateTime.Now.ToString("h:mm tt");
+ }
+
+ // On Desktop MouseDown
+ private void desktop_mousedown(object sender, MouseEventArgs e)
+ {
+ if (e.Button == MouseButtons.Right)
+ {
+ rightclickbackproperties.Show();
+ rightclickbackproperties.BringToFront();
+ rightclickbackproperties.Location = MousePosition;
+ }
+
+ // If
+ else if (e.Button == MouseButtons.Left)
+ {
+ rightclickbackproperties.Hide();
+ startmenu.Hide();
+ }
+
+ else if (e.Button == MouseButtons.Middle)
+ {
+ rightclickbackproperties.Hide();
+ }
+ }
+
+ private void NotePadToolStripMenuItem_Click(object sender, EventArgs e)
+ {
+ WinClassicNotepad wp = new WinClassicNotepad();
+ WinClassic app = wm.startWin95(wp, "Notepad", Properties.Resources.Win95IconNotepad, true, true);
+ AddTaskBarItem(app, app.Tag.ToString(), "Notepad", Properties.Resources.Win95IconNotepad);
+
+ nonimportantapps.Add(app);
+ nonimportantapps[nonimportantapps.Count - 1].BringToFront();
+ nonimportantapps[nonimportantapps.Count - 1].FormClosing += new FormClosingEventHandler(NonImportantApp_Closing);
+
+ app.BringToFront();
+ startmenu.Hide();
+ }
+ private void windowManagerTestToolStripMenuItem_Click(object sender, EventArgs e)
+ {
+ TestApp test = new TestApp();
+ WinClassic app = wm.startWin95(test, "TestApp", null, true, true);
+ AddTaskBarItem(app, app.Tag.ToString(), "TestApp", null);
+ app.BringToFront();
+ startmenu.Hide();
+ }
+
+ private void downloaderTestToolStripMenuItem_Click(object sender, EventArgs e)
+ {
+ WinClassicDownloader opendownload = new WinClassicDownloader();
+ WinClassic app = wm.startWin95(opendownload, "Downloader", null, false, true);
+ opendownload.appName.Text = "Downloading: Survive The Day";
+
+ AddTaskBarItem(app, app.Tag.ToString(), "Downloader", null);
+
+ app.BringToFront();
+ startmenu.Hide();
+ }
+
+ private void installerTestToolStripMenuItem_Click(object sender, EventArgs e)
+ {
+ WinClassicInstaller openinstaller = new WinClassicInstaller();
+ WinClassic app = wm.startWin95(openinstaller, "Installer", null, false, true);
+
+ AddTaskBarItem(app, app.Tag.ToString(), "Installer", null);
+
+ app.BringToFront();
+ startmenu.Hide();
+ }
+
+ private void InternetExplorerToolStripMenuItem_Click(object sender, EventArgs e)
+ {
+ if (ie != null) { wm.startInfobox95("Error Opening Internet Explorer", "An instance of Internet Explorer 4 is already open.", Properties.Resources.Win95Warning); return; }
+ ie = wm.startWin95(new WinClassicIE4(), "Internet Explorer 4", Properties.Resources.Win95IconIE4, true, true);
+ AddTaskBarItem(ie, ie.Tag.ToString(), "Internet Explorer 4", Properties.Resources.Win95IconIE4);
+ ie.BringToFront();
+ ie.FormClosing += new FormClosingEventHandler(InternetExplorer4_Closing);
+ startmenu.Hide();
+ }
+
+ private void desktopicons_Click(object sender, EventArgs e)
+ {
+ Point objDrawingPoint = desktopicons.PointToClient(Cursor.Position);
+ ListViewItem objListViewItem;
+
+ if (objDrawingPoint != null)
+ {
+ objListViewItem = desktopicons.GetItemAt(objDrawingPoint.X, objDrawingPoint.Y);
+ if (objListViewItem != null)
+ {
+ if (objListViewItem.Text == "Internet Explorer")
+ {
+ if (ie != null) { wm.startInfobox95("Error Opening Internet Explorer", "An instance of Internet Explorer 4 is already open.", Properties.Resources.Win95Warning); return; }
+ ie = wm.startWin95(new WinClassicIE4(), "Internet Explorer 4", Properties.Resources.Win95IconIE4, true, true);
+ AddTaskBarItem(ie, ie.Tag.ToString(), "Internet Explorer 4", Properties.Resources.Win95IconIE4);
+ ie.BringToFront();
+ ie.FormClosing += new FormClosingEventHandler(InternetExplorer4_Closing);
+ startmenu.Hide();
+ } else if (objListViewItem.Text == "Web Chat Setup")
+ {
+ WinClassicInstaller inst = new WinClassicInstaller();
+ inst.installname.Text = "Web Chat 1998";
+ WinClassic app = wm.startWin95(inst, "Web Chat Setup", null, true, true);
+ AddTaskBarItem(app, app.Tag.ToString(), "Web Chat Setup", null);
+ app.BringToFront();
+ startmenu.Hide();
+ }
+ }
+ }
+ }
+
+ private void infoboxTestToolStripMenuItem_Click(object sender, EventArgs e)
+ {
+ WinClassic app = wm.startInfobox95("AShifter's Infobox", "This is the very first TimeHACK Infobox. It's really easy to call, too! \n Just use wm.startInfobox95(String title, String text, Image erroricon)!", Properties.Resources.Win95Info);
+
+ app.BringToFront();
+ startmenu.Hide();
+ }
+ private void WebChatToolStripMenuItem_Click(object sender, EventArgs e)
+ {
+ WebChat1998 wc = new WebChat1998();
+ WinClassic app = wm.startWin95(wc, "Web Chat 1998", null, true, true);
+
+ AddTaskBarItem(app, app.Tag.ToString(), "Web Chat 1998", null);
+
+ app.BringToFront();
+ startmenu.Hide();
+ }
+ public void NonImportantApp_Closing(object sender, FormClosingEventArgs e)
+ {
+ nonimportantapps.Remove((WinClassic)sender);
+ }
+ private void InternetExplorer4_Closing(object sender, FormClosingEventArgs e)
+ {
+ ie = null;
+ }
+
+ private void WordPadToolStripMenuItem_Click(object sender, EventArgs e)
+ {
+ WinClassicWordPad wp = new WinClassicWordPad();
+ WinClassic app = wm.startWin95(wp, "Wordpad", Properties.Resources.Win95IconWordpad, true, true);
+ AddTaskBarItem(app, app.Tag.ToString(), "Wordpad", Properties.Resources.Win95IconWordpad);
+
+ nonimportantapps.Add(app);
+ nonimportantapps[nonimportantapps.Count - 1].BringToFront();
+ nonimportantapps[nonimportantapps.Count - 1].FormClosing += new FormClosingEventHandler(NonImportantApp_Closing);
+
+ app.BringToFront();
+ startmenu.Hide();
+ }
+
+ public void AddTaskBarItem(Form Application, string ApplicationID, string ApplicationName, Image ApplicationIcon)
+ {
+ taskbarItems = tb.AddTaskbarItem95(ApplicationID, ApplicationName, ApplicationIcon, (UserControl)new Win95TaskBarItem(), taskbarItems);
+ Application.FormClosed += new FormClosedEventHandler(UpdateTaskbarFromClosedApplication);
+ }
+
+ public void UpdateTaskbarFromClosedApplication(object sender, FormClosedEventArgs e)
+ {
+ UpdateTaskbar();
+ }
+
+ public void UpdateTaskbar()
+ {
+ // Clears out all the items on the taskbar
+ taskbarItems.Controls.Clear();
+
+ // Loops through all the Applications which are open
+
+ foreach (Form form in tb.GetAllOpenApps())
+ {
+ // Calls that "AddToTaskbar" thing
+ taskbarItems = tb.AddTaskbarItem95(form.Tag.ToString(), form.Text.ToString(), (Image)form.Icon.ToBitmap(), (UserControl)new Win95TaskBarItem(), taskbarItems);
+ }
+ }
+
+ private void AddressBookToolStripMenuItem_Click(object sender, EventArgs e)
+ {
+ WinClassicAddressBook ab = new WinClassicAddressBook();
+ WinClassic app = wm.startWin95(ab, "Address Book", Properties.Resources.WinClassicAddressBook, true, true);
+ AddTaskBarItem(app, app.Tag.ToString(), "Address Book", Properties.Resources.WinClassicAddressBook);
+
+ nonimportantapps.Add(app);
+ nonimportantapps[nonimportantapps.Count - 1].BringToFront();
+ nonimportantapps[nonimportantapps.Count - 1].FormClosing += new FormClosingEventHandler(NonImportantApp_Closing);
+
+ app.BringToFront();
+ startmenu.Hide();
+ }
+
+ private void WindowsExplorerToolStripMenuItem1_Click(object sender, EventArgs e)
+ {
+ FileDialogBoxManager.IsInOpenDialog = false;
+ FileDialogBoxManager.IsInSaveDialog = false;
+ WinClassicWindowsExplorer we = new WinClassicWindowsExplorer();
+ WinClassic app = wm.startWin95(we, "Windows Explorer", Properties.Resources.WinClassicFileExplorer, true, true);
+ AddTaskBarItem(app, app.Tag.ToString(), "Windows Explorer", Properties.Resources.WinClassicFileExplorer);
+
+ nonimportantapps.Add(app);
+ nonimportantapps[nonimportantapps.Count - 1].BringToFront();
+ nonimportantapps[nonimportantapps.Count - 1].FormClosing += new FormClosingEventHandler(NonImportantApp_Closing);
+
+ app.BringToFront();
+ startmenu.Hide();
+ }
+
+ private void storyTest1ToolStripMenuItem_Click(object sender, EventArgs e)
+ {
+ Win95Apps.Story.Hack1 story = new Win95Apps.Story.Hack1();
+ story.startObjective();
+ }
+
private void temp_for_std(object sender, EventArgs e)
{
Win2K.Win2KApps.SurviveTheDay std = new Win2K.Win2KApps.SurviveTheDay();
WinClassic app = wm.startWin95(std, "Survive The Day", null, false, false);
AddTaskBarItem(app, app.Tag.ToString(), "Survive The Day", null);
- nonimportantapps.Add(app);
- nonimportantapps[nonimportantapps.Count - 1].BringToFront();
- nonimportantapps[nonimportantapps.Count - 1].FormClosing += new FormClosingEventHandler(NonImportantApp_Closing);
-
- app.BringToFront();
+ nonimportantapps.Add(app);
+ nonimportantapps[nonimportantapps.Count - 1].BringToFront();
+ nonimportantapps[nonimportantapps.Count - 1].FormClosing += new FormClosingEventHandler(NonImportantApp_Closing);
+
+ app.BringToFront();
startmenu.Hide();
- }
-
- //TODO: Add Outlook Express 4
- }
-}
-
+ }
+
+ //TODO: Add Outlook Express 4
+ }
+}
+
diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/Story/Hack1.cs b/TimeHACK.Main/OS/Win95/Win95Apps/Story/Hack1.cs
index 4f12ec7..4a2c988 100644
--- a/TimeHACK.Main/OS/Win95/Win95Apps/Story/Hack1.cs
+++ b/TimeHACK.Main/OS/Win95/Win95Apps/Story/Hack1.cs
@@ -23,25 +23,22 @@ namespace TimeHACK.OS.Win95.Win95Apps.Story
{
wm.startWin95(term, "MS-DOS Prompt", null, true, true);
-
- Thread theThread = new Thread(startObjectMAIN);
-
- theThread.Start();
+ term.WriteLine("192.168.0.1 Connecting...");
+ Thread soundThread = new Thread(dialup_sound_play);
+ soundThread.Start();
+ soundThread.Join();
+ term.WriteLine("192.168.0.1 Connected.");
}
- public void startObjectMAIN()
+ public void dialup_sound_play()
{
- SoundPlayer startsound;
- term.WriteLine("192.168.0.1 Connecting...");
+ SoundPlayer dialup_sound;
// Play Dial-up Sound
Stream audio = Properties.Resources.modem_dial;
- startsound = new SoundPlayer(audio);
- startsound.Play();
- Thread.Sleep(5000);
- startsound.Stop();
- term.WriteLine("192.168.0.1 Connected.");
+ dialup_sound = new SoundPlayer(audio);
+ dialup_sound.PlaySync();
}
}
}
diff --git a/TimeHACK.Main/bin/Release/TimeHACK.application b/TimeHACK.Main/bin/Release/TimeHACK.application
index 239ee31..992f820 100644
--- a/TimeHACK.Main/bin/Release/TimeHACK.application
+++ b/TimeHACK.Main/bin/Release/TimeHACK.application
@@ -14,7 +14,7 @@
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
- <dsig:DigestValue>LsDLOvhTumFXl7PJEubVKcoSYmgcDMhPb/hPsvwy4hE=</dsig:DigestValue>
+ <dsig:DigestValue>szMAZloBWxVA5ynGbEjxjLRYcK6rY7+H4OymbTTBl/M=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
diff --git a/TimeHACK.Main/bin/Release/TimeHACK.exe b/TimeHACK.Main/bin/Release/TimeHACK.exe
index 8520174..9768fa7 100644
--- a/TimeHACK.Main/bin/Release/TimeHACK.exe
+++ b/TimeHACK.Main/bin/Release/TimeHACK.exe
Binary files differ
diff --git a/TimeHACK.Main/bin/Release/TimeHACK.exe.manifest b/TimeHACK.Main/bin/Release/TimeHACK.exe.manifest
index 67f6d7d..c583f01 100644
--- a/TimeHACK.Main/bin/Release/TimeHACK.exe.manifest
+++ b/TimeHACK.Main/bin/Release/TimeHACK.exe.manifest
@@ -56,14 +56,14 @@
</dependentAssembly>
</dependency>
<dependency>
- <dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="TimeHACK.exe" size="6843392">
+ <dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="TimeHACK.exe" size="6841344">
<assemblyIdentity name="TimeHACK" version="1.0.0.0" language="neutral" processorArchitecture="msil" />
<hash>
<dsig:Transforms>
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
- <dsig:DigestValue>TjpsPrDQYX2XBRZ8L60bYC6EIMeJpHwMAi9gfw5pris=</dsig:DigestValue>
+ <dsig:DigestValue>3fpCHDovsrZN6t8xhnBwrr0+usxDXVTwsflvkp9l7XM=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
diff --git a/TimeHACK.Main/bin/Release/TimeHACK.pdb b/TimeHACK.Main/bin/Release/TimeHACK.pdb
index 14e7a5f..64fa992 100644
--- a/TimeHACK.Main/bin/Release/TimeHACK.pdb
+++ b/TimeHACK.Main/bin/Release/TimeHACK.pdb
Binary files differ
diff --git a/TimeHACK.Main/bin/Release/app.publish/TimeHACK.exe b/TimeHACK.Main/bin/Release/app.publish/TimeHACK.exe
index 8520174..9768fa7 100644
--- a/TimeHACK.Main/bin/Release/app.publish/TimeHACK.exe
+++ b/TimeHACK.Main/bin/Release/app.publish/TimeHACK.exe
Binary files differ
diff --git a/TimeHACK.Main/obj/Release/CoreCompileInputs.cache b/TimeHACK.Main/obj/Release/CoreCompileInputs.cache
index 54632ce..d474122 100644
--- a/TimeHACK.Main/obj/Release/CoreCompileInputs.cache
+++ b/TimeHACK.Main/obj/Release/CoreCompileInputs.cache
@@ -1 +1 @@
-4ea1307cf50b0551eb868fff46db4571513000aa
+b9bb0cd6d98804e7ec132cefd188dcac2b58f411
diff --git a/TimeHACK.Main/obj/Release/DesignTimeResolveAssemblyReferencesInput.cache b/TimeHACK.Main/obj/Release/DesignTimeResolveAssemblyReferencesInput.cache
index 329b9cc..9d3b081 100644
--- a/TimeHACK.Main/obj/Release/DesignTimeResolveAssemblyReferencesInput.cache
+++ b/TimeHACK.Main/obj/Release/DesignTimeResolveAssemblyReferencesInput.cache
Binary files differ
diff --git a/TimeHACK.Main/obj/Release/TimeHACK.Main.csproj.FileListAbsolute.txt b/TimeHACK.Main/obj/Release/TimeHACK.Main.csproj.FileListAbsolute.txt
index 91eb7ef..04e9a68 100644
--- a/TimeHACK.Main/obj/Release/TimeHACK.Main.csproj.FileListAbsolute.txt
+++ b/TimeHACK.Main/obj/Release/TimeHACK.Main.csproj.FileListAbsolute.txt
@@ -136,3 +136,4 @@ C:\Users\lempamo\Documents\GitHub\TimeHACK-fork\TimeHACK.Main\obj\Release\TimeHA
C:\Users\lempamo\Documents\GitHub\TimeHACK-fork\TimeHACK.Main\obj\Release\TimeHACK.OS.Win95.Win95Apps.WinClassicTerminal.resources
C:\Users\lempamo\Documents\GitHub\TimeHACK-fork\TimeHACK.Main\obj\Release\TimeHACK.OS.Win98.Windows98.resources
C:\Users\lempamo\Documents\GitHub\TimeHACK-fork\TimeHACK.Main\obj\Release\TimeHACK.SaveDialogs.SaveFileTroubleShooter.resources
+C:\Users\Logan\Desktop\GitHub\TimeHACK\TimeHACK.Main\obj\Release\TimeHACK.OS.Win2K.Win2KApps.SurviveTheDay.resources
diff --git a/TimeHACK.Main/obj/Release/TimeHACK.Main.csproj.GenerateResource.Cache b/TimeHACK.Main/obj/Release/TimeHACK.Main.csproj.GenerateResource.Cache
index 691a254..bee605f 100644
--- a/TimeHACK.Main/obj/Release/TimeHACK.Main.csproj.GenerateResource.Cache
+++ b/TimeHACK.Main/obj/Release/TimeHACK.Main.csproj.GenerateResource.Cache
Binary files differ
diff --git a/TimeHACK.Main/obj/Release/TimeHACK.Main.csprojResolveAssemblyReference.cache b/TimeHACK.Main/obj/Release/TimeHACK.Main.csprojResolveAssemblyReference.cache
index 51d4c39..7615087 100644
--- a/TimeHACK.Main/obj/Release/TimeHACK.Main.csprojResolveAssemblyReference.cache
+++ b/TimeHACK.Main/obj/Release/TimeHACK.Main.csprojResolveAssemblyReference.cache
Binary files differ
diff --git a/TimeHACK.Main/obj/Release/TimeHACK.application b/TimeHACK.Main/obj/Release/TimeHACK.application
index 239ee31..992f820 100644
--- a/TimeHACK.Main/obj/Release/TimeHACK.application
+++ b/TimeHACK.Main/obj/Release/TimeHACK.application
@@ -14,7 +14,7 @@
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
- <dsig:DigestValue>LsDLOvhTumFXl7PJEubVKcoSYmgcDMhPb/hPsvwy4hE=</dsig:DigestValue>
+ <dsig:DigestValue>szMAZloBWxVA5ynGbEjxjLRYcK6rY7+H4OymbTTBl/M=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
diff --git a/TimeHACK.Main/obj/Release/TimeHACK.exe b/TimeHACK.Main/obj/Release/TimeHACK.exe
index 8520174..9768fa7 100644
--- a/TimeHACK.Main/obj/Release/TimeHACK.exe
+++ b/TimeHACK.Main/obj/Release/TimeHACK.exe
Binary files differ
diff --git a/TimeHACK.Main/obj/Release/TimeHACK.exe.manifest b/TimeHACK.Main/obj/Release/TimeHACK.exe.manifest
index 67f6d7d..c583f01 100644
--- a/TimeHACK.Main/obj/Release/TimeHACK.exe.manifest
+++ b/TimeHACK.Main/obj/Release/TimeHACK.exe.manifest
@@ -56,14 +56,14 @@
</dependentAssembly>
</dependency>
<dependency>
- <dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="TimeHACK.exe" size="6843392">
+ <dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="TimeHACK.exe" size="6841344">
<assemblyIdentity name="TimeHACK" version="1.0.0.0" language="neutral" processorArchitecture="msil" />
<hash>
<dsig:Transforms>
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
- <dsig:DigestValue>TjpsPrDQYX2XBRZ8L60bYC6EIMeJpHwMAi9gfw5pris=</dsig:DigestValue>
+ <dsig:DigestValue>3fpCHDovsrZN6t8xhnBwrr0+usxDXVTwsflvkp9l7XM=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
diff --git a/TimeHACK.Main/obj/Release/TimeHACK.pdb b/TimeHACK.Main/obj/Release/TimeHACK.pdb
index 14e7a5f..64fa992 100644
--- a/TimeHACK.Main/obj/Release/TimeHACK.pdb
+++ b/TimeHACK.Main/obj/Release/TimeHACK.pdb
Binary files differ