diff options
| author | Alex-TIMEHACK <[email protected]> | 2017-10-24 11:27:51 +0100 |
|---|---|---|
| committer | Alex-TIMEHACK <[email protected]> | 2017-10-24 11:27:51 +0100 |
| commit | 3d2e297b43cbd7f99269c9a58b25651a83ccef3c (patch) | |
| tree | ef636bc39af2b880af61acde98a2c5fb9e92cbaa /Histacom2/OS/Win98/Win98.cs | |
| parent | e5f29e7b53322e11578acd0deb3b1d454998bb77 (diff) | |
| parent | aff052b475abc5d4035369a85fa471f62cad021b (diff) | |
| download | histacom2-3d2e297b43cbd7f99269c9a58b25651a83ccef3c.tar.gz histacom2-3d2e297b43cbd7f99269c9a58b25651a83ccef3c.tar.bz2 histacom2-3d2e297b43cbd7f99269c9a58b25651a83ccef3c.zip | |
Updated my fork!
Diffstat (limited to 'Histacom2/OS/Win98/Win98.cs')
| -rw-r--r-- | Histacom2/OS/Win98/Win98.cs | 52 |
1 files changed, 33 insertions, 19 deletions
diff --git a/Histacom2/OS/Win98/Win98.cs b/Histacom2/OS/Win98/Win98.cs index 32b7aca..e10904e 100644 --- a/Histacom2/OS/Win98/Win98.cs +++ b/Histacom2/OS/Win98/Win98.cs @@ -21,8 +21,9 @@ namespace Histacom2.OS.Win98 public WindowManager wm = new WindowManager(); public List<WinClassic> nonimportantapps = new List<WinClassic>(); - public WinClassic webchat; + public WebChat1999 webchat; public WinClassic ie; + public WinClassic welcome; public TaskBarController tb = new TaskBarController(); @@ -31,6 +32,7 @@ namespace Histacom2.OS.Win98 public bool webchatInstalled = false; public bool hiddenpadamsFound = false; + public WinClassicTimeDistorter2 distort; // Init the form public Windows98() @@ -113,6 +115,22 @@ namespace Histacom2.OS.Win98 // Bring to this the front this.BringToFront(); + //Check if it is the first time + if (CurrentSave.FTime98 == false) + { + CurrentSave.FTime98 = true; + SaveGame(); + welcome = wm.Init(new Win98Welcome(), "Welcome", null, false, false, resize: false); + AddTaskBarItem(welcome, welcome.Tag.ToString(), "Welcome", null); + + nonimportantapps.Add(welcome); + nonimportantapps[nonimportantapps.Count - 1].BringToFront(); + nonimportantapps[nonimportantapps.Count - 1].FormClosing += new FormClosingEventHandler(NonImportantApp_Closing); + + welcome.BringToFront(); + welcome.Activate(); + } + // Update the desktop Icons! DesktopController.RefreshDesktopIcons(new ListViewItem[] { new System.Windows.Forms.ListViewItem("My Computer", 0), @@ -303,11 +321,9 @@ namespace Histacom2.OS.Win98 else { // It is an actual file on the disk - WinClassicWindowsExplorer we = new WinClassicWindowsExplorer(); // If it is a directory - if (Directory.Exists(objListViewItem.Tag.ToString())) { we.CurrentDirectory = objListViewItem.Tag.ToString(); @@ -317,13 +333,7 @@ namespace Histacom2.OS.Win98 app.BringToFront(); startmenu.Hide(); } - else - { - // Just open the file... - - we.OpenFile(objListViewItem.Tag.ToString()); - } - + else we.OpenFile(objListViewItem.Tag.ToString()); // Just open the file... } } } @@ -338,19 +348,22 @@ namespace Histacom2.OS.Win98 } private void WebChatToolStripMenuItem_Click(object sender, EventArgs e) { - WebChat1998 wc = new WebChat1998(); - WinClassic app = wm.Init(wc, "Web Chat 1998", null, true, true); + if (webchat != null) return; + webchat = new WebChat1999(); + WinClassic app = wm.Init(webchat, "Web Chat 1999", null, true, true); - AddTaskBarItem(app, app.Tag.ToString(), "Web Chat 1998", null); + AddTaskBarItem(app, app.Tag.ToString(), "Web Chat 1999", null); app.BringToFront(); startmenu.Hide(); + + app.FormClosing += (s, fe) => webchat = null; } public void NonImportantApp_Closing(object sender, FormClosingEventArgs e) { nonimportantapps.Remove((WinClassic)sender); } - private void InternetExplorer4_Closing(object sender, FormClosingEventArgs e) + public void InternetExplorer4_Closing(object sender, FormClosingEventArgs e) { ie = null; } @@ -463,11 +476,12 @@ namespace Histacom2.OS.Win98 private void TimeDistorterToolStripMenuItem_Click(object sender, EventArgs e) { - //distort = new Histacom2WinClassicTimeDistorter("1998", "1999", 150, Hack2.StartObjective); - //WinClassic app = wm.StartWin95(distort, "Time Distorter", null, false, true); - //AddTaskBarItem(app, app.Tag.ToString(), "Time Distorter", null); - //app.BringToFront(); - //startmenu.Hide(); + if (distort != null) return; + distort = new WinClassicTimeDistorter2(); + WinClassic app = wm.Init(distort, "Time Distorter", null, false, false, false); + AddTaskBarItem(app, app.Tag.ToString(), "Time Distorter", null); + app.BringToFront(); + startmenu.Hide(); } private void FTPClientToolStripMenuItem_Click(object sender, EventArgs e) |
