aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlempamo <[email protected]>2017-08-03 10:45:44 -0400
committerlempamo <[email protected]>2017-08-03 10:45:44 -0400
commit92410f8e3825950746c1d8d7230074c8a100c9cf (patch)
tree92626a285976ff061a3bde0cbcd0aba4ff28e612
parent9a68e5ed46f76d4ddda94c234a65a757797bdae9 (diff)
downloadhistacom2-92410f8e3825950746c1d8d7230074c8a100c9cf.tar.gz
histacom2-92410f8e3825950746c1d8d7230074c8a100c9cf.tar.bz2
histacom2-92410f8e3825950746c1d8d7230074c8a100c9cf.zip
things
-rw-r--r--TimeHACK.Main/OS/Win95/Win95.cs25
1 files changed, 11 insertions, 14 deletions
diff --git a/TimeHACK.Main/OS/Win95/Win95.cs b/TimeHACK.Main/OS/Win95/Win95.cs
index 073d41c..8629f41 100644
--- a/TimeHACK.Main/OS/Win95/Win95.cs
+++ b/TimeHACK.Main/OS/Win95/Win95.cs
@@ -20,6 +20,7 @@ namespace TimeHACK.OS.Win95
public List<WinClassic> nonimportantapps = new List<WinClassic>();
public WinClassic webchat;
public WinClassic ie;
+ public WinClassic welcome;
public WinClassicTimeDistorter distort;
public TaskBarController tb = new TaskBarController();
@@ -115,19 +116,16 @@ namespace TimeHACK.OS.Win95
if (CurrentSave.FTime95 == false)
{
CurrentSave.FTime95 = true;
- SaveSystem.SaveGame();
- WinClassicWelcome welcome = new WinClassicWelcome();
- WinClassic app = wm.StartWin95(welcome, "Welcome", null, false, false, resize: false);
- AddTaskBarItem(app, app.Tag.ToString(), "Welcome", null);
+ SaveGame();
+ welcome = wm.StartWin95(new WinClassicWelcome(), "Welcome", null, false, false, resize: false);
+ AddTaskBarItem(welcome, welcome.Tag.ToString(), "Welcome", null);
- nonimportantapps.Add(app);
+ nonimportantapps.Add(welcome);
nonimportantapps[nonimportantapps.Count - 1].BringToFront();
nonimportantapps[nonimportantapps.Count - 1].FormClosing += new FormClosingEventHandler(NonImportantApp_Closing);
-
-
- app.BringToFront();
-
+ welcome.BringToFront();
+ welcome.Activate();
}
// Update the Desktop icons
@@ -288,7 +286,7 @@ namespace TimeHACK.OS.Win95
ie.FormClosing += new FormClosingEventHandler(InternetExplorer4_Closing);
startmenu.Hide();
}
- else if (objListViewItem.Text == "My Computer")
+ else if (objListViewItem.Text == "My Computer") // TODO: Implement slightly limited explorer (with no treeview and a new window each time ya go into a dir)
{
WinClassic app = wm.StartWin95(new Win95WindowsExplorer(), "Windows Explorer", Properties.Resources.WinClassicFileExplorer, true, true);
AddTaskBarItem(app, app.Tag.ToString(), "Windows Explorer", Properties.Resources.WinClassicFileExplorer);
@@ -352,12 +350,11 @@ namespace TimeHACK.OS.Win95
}
private void WebChatToolStripMenuItem_Click(object sender, EventArgs e)
{
- WebChat1998 wc = new WebChat1998();
- WinClassic app = wm.StartWin95(wc, "Web Chat 1998", null, true, true);
+ webchat = wm.StartWin95(new WebChat1998(), "Web Chat 1998", null, true, true);
- AddTaskBarItem(app, app.Tag.ToString(), "Web Chat 1998", null);
+ AddTaskBarItem(webchat, webchat.Tag.ToString(), "Web Chat 1998", null);
- app.BringToFront();
+ webchat.BringToFront();
startmenu.Hide();
}
public void NonImportantApp_Closing(object sender, FormClosingEventArgs e)