mirror of
https://github.com/HistacomUnity/Histacom2-old.git
synced 2025-01-22 09:02:01 -05:00
incomplete ME
This commit is contained in:
parent
98f107f49d
commit
74892c42ac
14 changed files with 4500 additions and 64 deletions
5
Histacom2/AchievementScreen.Designer.cs
generated
5
Histacom2/AchievementScreen.Designer.cs
generated
|
@ -34,6 +34,7 @@ private void InitializeComponent()
|
||||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AchievementScreen));
|
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AchievementScreen));
|
||||||
System.Windows.Forms.ListViewItem listViewItem3 = new System.Windows.Forms.ListViewItem("Mines Swept Away", 1);
|
System.Windows.Forms.ListViewItem listViewItem3 = new System.Windows.Forms.ListViewItem("Mines Swept Away", 1);
|
||||||
System.Windows.Forms.ListViewItem listViewItem4 = new System.Windows.Forms.ListViewItem("Time Hacked", "WinClassicEndingsLocked.png");
|
System.Windows.Forms.ListViewItem listViewItem4 = new System.Windows.Forms.ListViewItem("Time Hacked", "WinClassicEndingsLocked.png");
|
||||||
|
System.Windows.Forms.ListViewItem listViewItem5 = new System.Windows.Forms.ListViewItem("I\'ve Got Survivalism", "WinClassicEndingsLocked.png");
|
||||||
this.listView1 = new System.Windows.Forms.ListView();
|
this.listView1 = new System.Windows.Forms.ListView();
|
||||||
this.imageList1 = new System.Windows.Forms.ImageList(this.components);
|
this.imageList1 = new System.Windows.Forms.ImageList(this.components);
|
||||||
this.button1 = new System.Windows.Forms.Button();
|
this.button1 = new System.Windows.Forms.Button();
|
||||||
|
@ -95,9 +96,11 @@ private void InitializeComponent()
|
||||||
listViewItem3.Tag = "mines";
|
listViewItem3.Tag = "mines";
|
||||||
listViewItem3.ToolTipText = "Complete Minesweeper\'s Hard Mode";
|
listViewItem3.ToolTipText = "Complete Minesweeper\'s Hard Mode";
|
||||||
listViewItem4.ToolTipText = "Complete All Endings";
|
listViewItem4.ToolTipText = "Complete All Endings";
|
||||||
|
listViewItem5.ToolTipText = "Get the only good ending in \"Survive The Day\".";
|
||||||
this.listView2.Items.AddRange(new System.Windows.Forms.ListViewItem[] {
|
this.listView2.Items.AddRange(new System.Windows.Forms.ListViewItem[] {
|
||||||
listViewItem3,
|
listViewItem3,
|
||||||
listViewItem4});
|
listViewItem4,
|
||||||
|
listViewItem5});
|
||||||
this.listView2.LargeImageList = this.imageList1;
|
this.listView2.LargeImageList = this.imageList1;
|
||||||
this.listView2.Location = new System.Drawing.Point(174, 24);
|
this.listView2.Location = new System.Drawing.Point(174, 24);
|
||||||
this.listView2.MultiSelect = false;
|
this.listView2.MultiSelect = false;
|
||||||
|
|
|
@ -33,6 +33,7 @@ private void AchievementScreen_Load(object sender, EventArgs e)
|
||||||
listView1.Items[1].Text = "Destruction Ending";
|
listView1.Items[1].Text = "Destruction Ending";
|
||||||
}
|
}
|
||||||
if (achieved[20] == 1) listView2.Items[0].ImageIndex = 0;
|
if (achieved[20] == 1) listView2.Items[0].ImageIndex = 0;
|
||||||
|
if (achieved[21] == 1) listView2.Items[1].ImageIndex = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void button1_Click(object sender, EventArgs e)
|
private void button1_Click(object sender, EventArgs e)
|
||||||
|
|
|
@ -125,7 +125,7 @@
|
||||||
AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
|
AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
|
||||||
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
|
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
|
||||||
ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1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DCwAB7BP/
|
||||||
AfhMABMDDQAT+McAAUIBTQE+BwABPgMAASgDAAGAAwABIAMAAQEBAAEBBgABAhYAA/8BAAj/CAAB+AIA
|
AexMABMDDQAT7McAAUIBTQE+BwABPgMAASgDAAGAAwABIAMAAQEBAAEBBgABAhYAA/8BAAj/CAAB+AIA
|
||||||
AT8B+AIAAT8IAAH8AgABfwH8AgABfwgAAf8BgAEDAv8BgAEDAf8IAAH/AeABDwL/AeABDwH/CAAB/wH4
|
AT8B+AIAAT8IAAH8AgABfwH8AgABfwgAAf8BgAEDAv8BgAEDAf8IAAH/AeABDwL/AeABDwH/CAAB/wH4
|
||||||
AT8C/wH4AT8B/wgAAf8B+AE/Av8B+AE/Af8IAAH/AfgBPwL/AfgBPwH/CAAB/wH4AT8C/wH4AT8B/wgA
|
AT8C/wH4AT8B/wgAAf8B+AE/Av8B+AE/Af8IAAH/AfgBPwL/AfgBPwH/CAAB/wH4AT8C/wH4AT8B/wgA
|
||||||
Af8B+AE/Av8B+AE/Af8IAAH/AfgBPwL/AfgBPwH/CAAB/wH4AT8C/wH4AT8B/wgAAf8B8AEfAv8B8AEf
|
Af8B+AE/Av8B+AE/Af8IAAH/AfgBPwL/AfgBPwH/CAAB/wH4AT8C/wH4AT8B/wgAAf8B8AEfAv8B8AEf
|
||||||
|
|
|
@ -357,6 +357,12 @@
|
||||||
<Compile Include="OS\Win98\Win98Apps\WinClassicWindowsExplorer.Designer.cs">
|
<Compile Include="OS\Win98\Win98Apps\WinClassicWindowsExplorer.Designer.cs">
|
||||||
<DependentUpon>WinClassicWindowsExplorer.cs</DependentUpon>
|
<DependentUpon>WinClassicWindowsExplorer.cs</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
<Compile Include="OS\WinME\WinME.cs">
|
||||||
|
<SubType>Form</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="OS\WinME\WinME.Designer.cs">
|
||||||
|
<DependentUpon>WinME.cs</DependentUpon>
|
||||||
|
</Compile>
|
||||||
<Compile Include="OS\WinXPBad\Story\Hack4.cs" />
|
<Compile Include="OS\WinXPBad\Story\Hack4.cs" />
|
||||||
<Compile Include="OS\WinXPBad\VirusLabel.cs">
|
<Compile Include="OS\WinXPBad\VirusLabel.cs">
|
||||||
<SubType>Form</SubType>
|
<SubType>Form</SubType>
|
||||||
|
@ -598,6 +604,10 @@
|
||||||
<DependentUpon>WinClassicWindowsExplorer.cs</DependentUpon>
|
<DependentUpon>WinClassicWindowsExplorer.cs</DependentUpon>
|
||||||
<SubType>Designer</SubType>
|
<SubType>Designer</SubType>
|
||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
|
<EmbeddedResource Include="OS\WinME\WinME.resx">
|
||||||
|
<DependentUpon>WinME.cs</DependentUpon>
|
||||||
|
<SubType>Designer</SubType>
|
||||||
|
</EmbeddedResource>
|
||||||
<EmbeddedResource Include="OS\WinXPBad\VirusLabel.resx">
|
<EmbeddedResource Include="OS\WinXPBad\VirusLabel.resx">
|
||||||
<DependentUpon>VirusLabel.cs</DependentUpon>
|
<DependentUpon>VirusLabel.cs</DependentUpon>
|
||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
|
@ -896,6 +906,7 @@
|
||||||
<None Include="Resources\WinClassic\sliverwhite.png" />
|
<None Include="Resources\WinClassic\sliverwhite.png" />
|
||||||
<None Include="Resources\WinClassic\sliveroldlace.png" />
|
<None Include="Resources\WinClassic\sliveroldlace.png" />
|
||||||
<None Include="Resources\WinClassic\TimeDistorter3Icon.png" />
|
<None Include="Resources\WinClassic\TimeDistorter3Icon.png" />
|
||||||
|
<None Include="Resources\WinClassic\sliver2kgrey.png" />
|
||||||
<Content Include="Resources\WinClassic\TrueColor.png" />
|
<Content Include="Resources\WinClassic\TrueColor.png" />
|
||||||
<None Include="Resources\WinClassic\Win95Info.png" />
|
<None Include="Resources\WinClassic\Win95Info.png" />
|
||||||
<None Include="Resources\WinClassic\Win95Error.png" />
|
<None Include="Resources\WinClassic\Win95Error.png" />
|
||||||
|
@ -975,6 +986,7 @@
|
||||||
</ProjectReference>
|
</ProjectReference>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
<Folder Include="OS\WinME\WinMEApps\" />
|
||||||
<Folder Include="OS\WinXP\" />
|
<Folder Include="OS\WinXP\" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|
|
@ -17,7 +17,6 @@ namespace Histacom2.OS.Win95.Win95Apps._12padamsViruses
|
||||||
public partial class StartRunner95 : UserControl
|
public partial class StartRunner95 : UserControl
|
||||||
{
|
{
|
||||||
Point beginLocation;
|
Point beginLocation;
|
||||||
int taskbarLength;
|
|
||||||
int xLocation;
|
int xLocation;
|
||||||
Timer moveStart = new Timer();
|
Timer moveStart = new Timer();
|
||||||
private static PrivateFontCollection pfc = new PrivateFontCollection();
|
private static PrivateFontCollection pfc = new PrivateFontCollection();
|
||||||
|
|
|
@ -760,36 +760,17 @@ private void mainView_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
|
|
||||||
if (File.Exists(Path.Combine(CurrentDirectory, mainView.FocusedItem.Text)))
|
if (File.Exists(Path.Combine(CurrentDirectory, mainView.FocusedItem.Text)))
|
||||||
{
|
{
|
||||||
// Check if it is a regonized file - if so then in Windows 2000/ME it gives a fancy description
|
// lemon note: no more implementation of windows explorer, because holy hell is it hard and buggy
|
||||||
|
|
||||||
bool recognized = false;
|
InfoDesc.Show();
|
||||||
string description = "";
|
|
||||||
|
|
||||||
if (CurrentSave.CurrentOS == "2000" || CurrentSave.CurrentOS == "ME")
|
FileInfo fi = new FileInfo(Path.Combine(CurrentDirectory, mainView.FocusedItem.Text));
|
||||||
{
|
txtInfoDescName.Text = mainView.FocusedItem.Text;
|
||||||
switch (File.ReadAllText(Path.Combine(CurrentDirectory, mainView.FocusedItem.Text)))
|
txtInfoDescType.Text = GetDescription(ReturnType(fi.Extension));
|
||||||
{
|
txtInfoDescModified.Text = fi.CreationTime.ToString();
|
||||||
case "explorer":
|
|
||||||
recognized = true;
|
|
||||||
description = "Insert a description here...";
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (recognized)
|
txtInfoDescSize.Show();
|
||||||
{
|
txtInfoDescSize.Text = $"Size: {fi.Length} bytes.";
|
||||||
// TODO:
|
|
||||||
} else {
|
|
||||||
InfoDesc.Show();
|
|
||||||
|
|
||||||
FileInfo fi = new FileInfo(Path.Combine(CurrentDirectory, mainView.FocusedItem.Text));
|
|
||||||
txtInfoDescName.Text = mainView.FocusedItem.Text;
|
|
||||||
txtInfoDescType.Text = GetDescription(ReturnType(fi.Extension));
|
|
||||||
txtInfoDescModified.Text = fi.CreationTime.ToString();
|
|
||||||
|
|
||||||
txtInfoDescSize.Show();
|
|
||||||
txtInfoDescSize.Text = $"Size: {fi.Length} bytes.";
|
|
||||||
}
|
|
||||||
|
|
||||||
} else if (Directory.Exists(Path.Combine(CurrentDirectory, mainView.FocusedItem.Text))) {
|
} else if (Directory.Exists(Path.Combine(CurrentDirectory, mainView.FocusedItem.Text))) {
|
||||||
txtInfoTip.Hide();
|
txtInfoTip.Hide();
|
||||||
|
@ -831,7 +812,7 @@ public string GetDescription(int type)
|
||||||
case 11:
|
case 11:
|
||||||
return "Image File";
|
return "Image File";
|
||||||
case 12:
|
case 12:
|
||||||
return "Executable File";
|
return "Application";
|
||||||
case 13:
|
case 13:
|
||||||
return "Address Book File";
|
return "Address Book File";
|
||||||
case 21:
|
case 21:
|
||||||
|
|
1171
Histacom2/OS/WinME/WinME.Designer.cs
generated
Normal file
1171
Histacom2/OS/WinME/WinME.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
653
Histacom2/OS/WinME/WinME.cs
Normal file
653
Histacom2/OS/WinME/WinME.cs
Normal file
|
@ -0,0 +1,653 @@
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Drawing;
|
||||||
|
using System.IO;
|
||||||
|
using System.Media;
|
||||||
|
using System.Windows.Forms;
|
||||||
|
using Histacom2.Engine;
|
||||||
|
using Histacom2.Engine.Template;
|
||||||
|
using Histacom2.Engine.Template.Taskbars;
|
||||||
|
using Histacom2.OS.Win95.Win95Apps;
|
||||||
|
using Histacom2.OS.Win95.Win95Apps.Story;
|
||||||
|
using static Histacom2.Engine.SaveSystem;
|
||||||
|
using Histacom2.OS.Win95.Win95Apps._12padamViruses;
|
||||||
|
using Histacom2.OS.Win95.Win95Apps._12padamsViruses;
|
||||||
|
using Histacom2.GlobalPrograms;
|
||||||
|
|
||||||
|
namespace Histacom2.OS.WinME
|
||||||
|
{
|
||||||
|
public partial class WindowsME : Form
|
||||||
|
{
|
||||||
|
private SoundPlayer startsound;
|
||||||
|
public WindowManager wm = new WindowManager();
|
||||||
|
|
||||||
|
public List<WinClassic> nonimportantapps = new List<WinClassic>();
|
||||||
|
public WinClassic webchat;
|
||||||
|
public WinClassic ie;
|
||||||
|
public WinClassic welcome;
|
||||||
|
public TaskBarController tb = new TaskBarController();
|
||||||
|
|
||||||
|
public int CurrentAppCount = 0;
|
||||||
|
|
||||||
|
public bool WebChatInstalled = false;
|
||||||
|
|
||||||
|
public bool HiddenPadamsFound = false;
|
||||||
|
|
||||||
|
ListViewItem heldDownItem;
|
||||||
|
Point heldDownPoint;
|
||||||
|
|
||||||
|
// Init the form
|
||||||
|
public WindowsME()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
//startmenu.Paint += (sender, args) => Engine.Paintbrush.PaintClassicBorders(sender, args, 2);
|
||||||
|
ProgramsToolStripMenuItem.DropDown.Paint += (sender, args) => Engine.Paintbrush.PaintClassicBorders(sender, args, 2);
|
||||||
|
AccessoriesToolStripMenuItem.DropDown.Paint += (sender, args) => Engine.Paintbrush.PaintClassicBorders(sender, args, 2);
|
||||||
|
CommunicationsToolStripMenuItem.DropDown.Paint += (sender, args) => Engine.Paintbrush.PaintClassicBorders(sender, args, 2);
|
||||||
|
MultimediaToolStripMenuItem.DropDown.Paint += (sender, args) => Engine.Paintbrush.PaintClassicBorders(sender, args, 2);
|
||||||
|
GamesToolStripMenuItem.DropDown.Paint += (sender, args) => Engine.Paintbrush.PaintClassicBorders(sender, args, 2);
|
||||||
|
StartUpToolStripMenuItem.DropDown.Paint += (sender, args) => Engine.Paintbrush.PaintClassicBorders(sender, args, 2);
|
||||||
|
MSDOSPromptToolStripMenuItem.DropDown.Paint += (sender, args) => Engine.Paintbrush.PaintClassicBorders(sender, args, 2);
|
||||||
|
DocumentsToolStripMenuItem.DropDown.Paint += (sender, args) => Engine.Paintbrush.PaintClassicBorders(sender, args, 2);
|
||||||
|
SettingsToolStripMenuItem.DropDown.Paint += (sender, args) => Engine.Paintbrush.PaintClassicBorders(sender, args, 2);
|
||||||
|
FindToolStripMenuItem.DropDown.Paint += (sender, args) => Engine.Paintbrush.PaintClassicBorders(sender, args, 2);
|
||||||
|
SetStyle(ControlStyles.SupportsTransparentBackColor, true);
|
||||||
|
BackgroundImage = currentTheme.defaultWallpaper;
|
||||||
|
foreach (ToolStripMenuItem item in startmenuitems.Items)
|
||||||
|
{
|
||||||
|
item.MouseEnter += new EventHandler(MenuItem_MouseEnter);
|
||||||
|
item.MouseLeave += new EventHandler(MenuItem_MouseLeave);
|
||||||
|
}
|
||||||
|
foreach (ToolStripMenuItem item in ProgramsToolStripMenuItem.DropDown.Items)
|
||||||
|
{
|
||||||
|
item.MouseEnter += new EventHandler(MenuItem_MouseEnter);
|
||||||
|
item.MouseLeave += new EventHandler(MenuItem_MouseLeave);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void MenuItem_MouseEnter(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
//((ToolStripMenuItem)sender).ForeColor = Color.White;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void MenuItem_MouseLeave(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
//((ToolStripMenuItem)sender).ForeColor = Color.Black;
|
||||||
|
}
|
||||||
|
|
||||||
|
// When New Game is clicked in TitleScreen.cs
|
||||||
|
private void Desktop_Load(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (currentTheme.defaultWallpaper != null) desktopicons.BackgroundImage = new Bitmap(currentTheme.defaultWallpaper, Width, Height);
|
||||||
|
|
||||||
|
// Make Font Mandatory
|
||||||
|
fontLoad();
|
||||||
|
|
||||||
|
// Play Windows 95 Start Sound
|
||||||
|
Stream audio = currentTheme.startSound;
|
||||||
|
startsound = new SoundPlayer(audio);
|
||||||
|
startsound.Play();
|
||||||
|
|
||||||
|
// Hide the Startmenu
|
||||||
|
startmenu.Hide();
|
||||||
|
|
||||||
|
// Check for and set VM Mode
|
||||||
|
if (this.FormBorderStyle != FormBorderStyle.None)
|
||||||
|
{
|
||||||
|
this.Text = "Histacom2 - 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();
|
||||||
|
|
||||||
|
//Check if it is the first time
|
||||||
|
if (!CurrentSave.FTime95)
|
||||||
|
{
|
||||||
|
CurrentSave.FTime95 = true;
|
||||||
|
SaveGame();
|
||||||
|
welcome = wm.Init(new Win95Welcome(), "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 ListViewItem("My Computer", 0),
|
||||||
|
new ListViewItem("Network Neighborhood", 5),
|
||||||
|
new ListViewItem("Inbox", 3),
|
||||||
|
new ListViewItem("Recycle Bin", 7),
|
||||||
|
new ListViewItem("Internet Explorer", 2),
|
||||||
|
new ListViewItem("Online Services", 1),
|
||||||
|
new ListViewItem("Set Up The Microsoft Network", 4),
|
||||||
|
new ListViewItem("Outlook Express", 6) }, ref desktopicons, Path.Combine(ProfileWindowsDirectory, "Desktop"));
|
||||||
|
desktopicons.AutoArrange = false;
|
||||||
|
|
||||||
|
// Enable installed programs
|
||||||
|
|
||||||
|
if (CurrentSave.installed95[0]) WebChatToolStripMenuItem.Visible = true;
|
||||||
|
if (CurrentSave.installed95[1]) FTPClientToolStripMenuItem.Visible = true;
|
||||||
|
if (CurrentSave.installed95[2]) StartRunnerToolStripMenuItem.Visible = true;
|
||||||
|
if (CurrentSave.installed95[3]) ErrorBlasterToolStripMenuItem.Visible = true;
|
||||||
|
if (CurrentSave.installed95[5]) TimeDistorterToolStripMenuItem.Visible = true;
|
||||||
|
if (CurrentSave.installed95[6]) GuessTheNumberToolStripMenuItem.Visible = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
|
// StartButton Click
|
||||||
|
private void startbutton_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
startmenu.Show();
|
||||||
|
if (taskbar.Visible) taskbar.BringToFront();
|
||||||
|
startmenu.BringToFront();
|
||||||
|
}
|
||||||
|
|
||||||
|
// Shutdown button
|
||||||
|
private void ShutdownToolStripMenuItem_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
SaveGame();
|
||||||
|
Program.ShutdownApplication(currentTheme.stopSound);
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion //Region
|
||||||
|
|
||||||
|
// 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)
|
||||||
|
{
|
||||||
|
// Check if an item is selected and if so show the Delete option
|
||||||
|
|
||||||
|
if (desktopicons.FocusedItem != null)
|
||||||
|
{
|
||||||
|
deleteToolStripMenuItem.Visible = true;
|
||||||
|
} else {
|
||||||
|
deleteToolStripMenuItem.Visible = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
desktopupdate_Tick(null, null); // Update the Desktop Icons
|
||||||
|
|
||||||
|
rightclickbackproperties.Show();
|
||||||
|
rightclickbackproperties.BringToFront();
|
||||||
|
rightclickbackproperties.Location = MousePosition;
|
||||||
|
}
|
||||||
|
|
||||||
|
// If
|
||||||
|
else if (e.Button == MouseButtons.Left)
|
||||||
|
{
|
||||||
|
rightclickbackproperties.Hide();
|
||||||
|
startmenu.Hide();
|
||||||
|
|
||||||
|
heldDownItem = desktopicons.GetItemAt(e.X, e.Y);
|
||||||
|
if (heldDownItem != null)
|
||||||
|
{
|
||||||
|
heldDownPoint = new Point(e.X - heldDownItem.Position.X,
|
||||||
|
e.Y - heldDownItem.Position.Y);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
else if (e.Button == MouseButtons.Middle)
|
||||||
|
{
|
||||||
|
rightclickbackproperties.Hide();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void NotePadToolStripMenuItem_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
WinClassicNotepad wp = new WinClassicNotepad();
|
||||||
|
WinClassic app = wm.Init(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 InternetExplorerToolStripMenuItem_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (ie != null) { wm.StartInfobox95("Error Opening Internet Explorer", "An instance of Internet Explorer 4 is already open.", InfoboxType.Warning, InfoboxButtons.OK); return; }
|
||||||
|
ie = wm.Init(new WinClassicIE3(), "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_DoubleClick(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.", InfoboxType.Warning, InfoboxButtons.OK); return; }
|
||||||
|
ie = wm.Init(new WinClassicIE3(), "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 == "My Computer") // TODO: Implement slightly limited explorer (with no treeview and a new window each time ya go into a dir)
|
||||||
|
{
|
||||||
|
WinClassic app = wm.Init(new Win95WindowsExplorer(), "Windows Explorer", Properties.Resources.WinClassicFileExplorer, true, true);
|
||||||
|
AddTaskBarItem(app, app.Tag.ToString(), "Windows Explorer", Properties.Resources.WinClassicFileExplorer);
|
||||||
|
app.BringToFront();
|
||||||
|
startmenu.Hide();
|
||||||
|
}
|
||||||
|
else if (objListViewItem.Text == "Network Neighborhood")
|
||||||
|
{
|
||||||
|
// Alex's TODO here
|
||||||
|
|
||||||
|
}
|
||||||
|
else if (objListViewItem.Text == "Recycle Bin")
|
||||||
|
{
|
||||||
|
// Another thing you may need to digital poke Alex about doing.
|
||||||
|
|
||||||
|
}
|
||||||
|
else if (objListViewItem.Text == "Set Up The Microsoft Network") {
|
||||||
|
wm.StartInfobox95("Microsoft Network", "The Microsoft Network is already set up!", InfoboxType.Info, InfoboxButtons.OK);
|
||||||
|
} else if (objListViewItem.Text == "Outlook Express") {
|
||||||
|
//wm.StartInfobox95("Win32 Application", "That is not a valid Win32 Application.", Properties.Resources.Win95Error);
|
||||||
|
}
|
||||||
|
else if (objListViewItem.Text == "Inbox")
|
||||||
|
{
|
||||||
|
//wm.StartInfobox95("Win32 Application", "That is not a valid Win32 Application.", Properties.Resources.Win95Error);
|
||||||
|
}
|
||||||
|
else if (objListViewItem.Text == "Online Services")
|
||||||
|
{
|
||||||
|
wm.StartInfobox95("Caught it!", "If you were to run this, the game would crash!\nLuckily, it won't crash this time!", InfoboxType.Error, InfoboxButtons.OK);
|
||||||
|
}
|
||||||
|
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// It is an actual file on the disk
|
||||||
|
|
||||||
|
Win95WindowsExplorer we = new Win95WindowsExplorer();
|
||||||
|
|
||||||
|
// If it is a directory
|
||||||
|
|
||||||
|
if (Directory.Exists(objListViewItem.Tag.ToString()))
|
||||||
|
{
|
||||||
|
we.CurrentDirectory = objListViewItem.Tag.ToString();
|
||||||
|
|
||||||
|
WinClassic app = wm.Init(we, "Windows Explorer", Properties.Resources.WinClassicFileExplorer, true, true);
|
||||||
|
AddTaskBarItem(app, app.Tag.ToString(), "Windows Explorer", Properties.Resources.WinClassicFileExplorer);
|
||||||
|
app.BringToFront();
|
||||||
|
startmenu.Hide();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// Just open the file...
|
||||||
|
|
||||||
|
we.OpenFile(objListViewItem.Tag.ToString());
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void WebChatToolStripMenuItem_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
webchat = wm.Init(new WebChat1998(), "Web Chat 1998", null, true, true);
|
||||||
|
|
||||||
|
AddTaskBarItem(webchat, webchat.Tag.ToString(), "Web Chat 1998", null);
|
||||||
|
|
||||||
|
webchat.BringToFront();
|
||||||
|
startmenu.Hide();
|
||||||
|
}
|
||||||
|
public void NonImportantApp_Closing(object sender, FormClosingEventArgs e)
|
||||||
|
{
|
||||||
|
nonimportantapps.Remove((WinClassic)sender);
|
||||||
|
}
|
||||||
|
public void InternetExplorer4_Closing(object sender, FormClosingEventArgs e)
|
||||||
|
{
|
||||||
|
ie = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void WordPadToolStripMenuItem_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
WinClassicWordPad wp = new WinClassicWordPad();
|
||||||
|
WinClassic app = wm.Init(wp, "Wordpad", Properties.Resources.Win95WordpadIcon2, true, true);
|
||||||
|
AddTaskBarItem(app, app.Tag.ToString(), "Wordpad", Properties.Resources.Win95WordpadIcon2);
|
||||||
|
|
||||||
|
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 WindowsExplorerToolStripMenuItem1_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
FileDialogBoxManager.IsInOpenDialog = false;
|
||||||
|
FileDialogBoxManager.IsInSaveDialog = false;
|
||||||
|
Win95WindowsExplorer we = new Win95WindowsExplorer();
|
||||||
|
WinClassic app = wm.Init(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)
|
||||||
|
{
|
||||||
|
Hack1.StartObjective();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void MSDOSPromptToolStripMenuItem1_Click (object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
WinClassicTerminal msdos = new WinClassicTerminal(false);
|
||||||
|
WinClassic app = wm.Init(msdos, "MS-DOS Prompt", Properties.Resources.MSDOSPromptToolStripMenuItem1_Image, true, true, false);
|
||||||
|
|
||||||
|
AddTaskBarItem(app, app.Tag.ToString(), "MS-DOS Prompt", Properties.Resources.MSDOSPromptToolStripMenuItem1_Image);
|
||||||
|
app.BringToFront();
|
||||||
|
startmenu.Hide();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void PropertiesToolStripMenuItem1_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
WinClassicThemePanel theme = new WinClassicThemePanel();
|
||||||
|
WinClassic app = wm.Init(theme, "Themes", null, false, true, false, resize: false);
|
||||||
|
|
||||||
|
AddTaskBarItem(app, app.Tag.ToString(), "Themes", null);
|
||||||
|
app.BringToFront();
|
||||||
|
startmenu.Hide();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void FTPClientToolStripMenuItem_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
WinClassic app = wm.Init(new WinClassicFTPClient(), "FTP Client", null, true, true);
|
||||||
|
|
||||||
|
AddTaskBarItem(app, app.Tag.ToString(), "FTP Client", null);
|
||||||
|
app.BringToFront();
|
||||||
|
startmenu.Hide();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void CalculatorToolStripMenuItem_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
WinClassic app = wm.Init(new WinClassicCalculator(), "Calculator", Properties.Resources.WinClassicCalc, false, false, resize: false);
|
||||||
|
AddTaskBarItem(app, app.Tag.ToString(), "Calculator", Properties.Resources.WinClassicCalc);
|
||||||
|
|
||||||
|
nonimportantapps.Add(app);
|
||||||
|
nonimportantapps[nonimportantapps.Count - 1].BringToFront();
|
||||||
|
nonimportantapps[nonimportantapps.Count - 1].FormClosing += new FormClosingEventHandler(NonImportantApp_Closing);
|
||||||
|
|
||||||
|
app.BringToFront();
|
||||||
|
startmenu.Hide();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void desktopupdate_Tick(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
// Update the Desktop icons
|
||||||
|
|
||||||
|
DesktopController.RefreshDesktopIcons(new ListViewItem[] { new System.Windows.Forms.ListViewItem("My Computer", 0),
|
||||||
|
new System.Windows.Forms.ListViewItem("Network Neighborhood", 5),
|
||||||
|
new System.Windows.Forms.ListViewItem("Inbox", 3),
|
||||||
|
new System.Windows.Forms.ListViewItem("Recycle Bin", 7),
|
||||||
|
new System.Windows.Forms.ListViewItem("Internet Explorer", 2),
|
||||||
|
new System.Windows.Forms.ListViewItem("Online Services", 1),
|
||||||
|
new System.Windows.Forms.ListViewItem("Set Up The Microsoft Network", 4),
|
||||||
|
new System.Windows.Forms.ListViewItem("Outlook Express", 6) }, ref desktopicons, Path.Combine(ProfileWindowsDirectory, "Desktop"));
|
||||||
|
}
|
||||||
|
|
||||||
|
// When add new folder is clicked
|
||||||
|
private void FolderToolStripMenuItem_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (Directory.Exists(Path.Combine(ProfileWindowsDirectory, "Desktop", "New Folder")))
|
||||||
|
{
|
||||||
|
wm.StartInfobox95("Windows Explorer", "A folder called New Folder already exists - please rename it.", InfoboxType.Error, InfoboxButtons.OK);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
SaveDirectoryInfo(Path.Combine(ProfileWindowsDirectory, "Desktop"), "New Folder", false, "New folder", true);
|
||||||
|
desktopupdate_Tick(null, null); // Update the desktop Icons
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void TextDocumentToolStripMenuItem_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (File.Exists(Path.Combine(ProfileWindowsDirectory, "Desktop", "New Text Document.txt")))
|
||||||
|
{
|
||||||
|
wm.StartInfobox95("Windows Explorer", "A folder called New Text Document already exists - please rename it.", InfoboxType.Error, InfoboxButtons.OK);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
File.Create(Path.Combine(ProfileWindowsDirectory, "Desktop", "New Text Document.txt"));
|
||||||
|
desktopupdate_Tick(null, null); // Update the desktop Icons
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void deleteToolStripMenuItem_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.Tag != null)
|
||||||
|
{
|
||||||
|
if (Directory.Exists(objListViewItem.Tag.ToString()))
|
||||||
|
{
|
||||||
|
Directory.Delete(objListViewItem.Tag.ToString(), true);
|
||||||
|
desktopupdate_Tick(null, null); // Update the desktop Icons
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (File.Exists(objListViewItem.Tag.ToString()))
|
||||||
|
{
|
||||||
|
File.Delete(objListViewItem.Tag.ToString());
|
||||||
|
desktopupdate_Tick(null, null); // Update the desktop Icons
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
wm.StartInfobox95("Windows Explorer", "This object cannot be deleted.", InfoboxType.Error, InfoboxButtons.OK);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
wm.StartInfobox95("Windows Explorer", "This object cannot be deleted.", InfoboxType.Error, InfoboxButtons.OK);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void MinsweeperToolStripMenuItem_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
WinClassic app = wm.Init(new WinClassicMinesweeper(), "Minesweeper", Properties.Resources.WinClassicMinesweeper, false, false, false, false);
|
||||||
|
AddTaskBarItem(app, app.Tag.ToString(), "Minesweeper", Properties.Resources.WinClassicMinesweeper);
|
||||||
|
|
||||||
|
nonimportantapps.Add(app);
|
||||||
|
nonimportantapps[nonimportantapps.Count - 1].BringToFront();
|
||||||
|
nonimportantapps[nonimportantapps.Count - 1].FormClosing += new FormClosingEventHandler(NonImportantApp_Closing);
|
||||||
|
|
||||||
|
app.BringToFront();
|
||||||
|
startmenu.Hide();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void desktopicons_MouseMove(object sender, MouseEventArgs e)
|
||||||
|
{
|
||||||
|
if (heldDownItem != null)
|
||||||
|
{
|
||||||
|
heldDownItem.Position = new Point(e.Location.X - heldDownPoint.X,
|
||||||
|
e.Location.Y - heldDownPoint.Y);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void desktopicons_MouseUp(object sender, MouseEventArgs e)
|
||||||
|
{
|
||||||
|
heldDownItem = null;
|
||||||
|
startmenu.Hide();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void GuessTheNumberToolStripMenuItem_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
WinClassic app = wm.Init(new GuessTheNumber(), "Guess The Number", Properties.Resources.WinClassicGTNIcon, false, false, false, false);
|
||||||
|
AddTaskBarItem(app, app.Tag.ToString(), "Guess The Number", Properties.Resources.WinClassicGTNIcon);
|
||||||
|
|
||||||
|
nonimportantapps.Add(app);
|
||||||
|
nonimportantapps[nonimportantapps.Count - 1].BringToFront();
|
||||||
|
nonimportantapps[nonimportantapps.Count - 1].FormClosing += new FormClosingEventHandler(NonImportantApp_Closing);
|
||||||
|
|
||||||
|
app.BringToFront();
|
||||||
|
startmenu.Hide();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void taskbar_Paint(object sender, PaintEventArgs e)
|
||||||
|
{
|
||||||
|
var gfx = e.Graphics;
|
||||||
|
gfx.Clear(currentTheme.threeDObjectsColor);
|
||||||
|
|
||||||
|
var _lightBack = Paintbrush.GetLightFromColor(currentTheme.threeDObjectsColor);
|
||||||
|
|
||||||
|
gfx.DrawLine(new Pen(_lightBack), 0, 1, taskbar.Width, 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void clockPanel_Paint(object sender, PaintEventArgs e)
|
||||||
|
{
|
||||||
|
var gfx = e.Graphics;
|
||||||
|
gfx.Clear(currentTheme.threeDObjectsColor);
|
||||||
|
|
||||||
|
var _lightBack = Paintbrush.GetLightFromColor(currentTheme.threeDObjectsColor);
|
||||||
|
var _darkBack = Paintbrush.GetDarkFromColor(currentTheme.threeDObjectsColor);
|
||||||
|
|
||||||
|
gfx.DrawLine(new Pen(_lightBack), 0, 1, clockPanel.Width, 1);
|
||||||
|
gfx.DrawLine(new Pen(_darkBack), 0, 24, 0, 4);
|
||||||
|
gfx.DrawLine(new Pen(_darkBack), 61, 4, 0, 4);
|
||||||
|
gfx.DrawLine(new Pen(_lightBack), 62, 4, 62, 25);
|
||||||
|
gfx.DrawLine(new Pen(_lightBack), 0, 25, 62, 25);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void startmenuitems_Paint(object sender, PaintEventArgs e)
|
||||||
|
{
|
||||||
|
var gfx = e.Graphics;
|
||||||
|
gfx.Clear(currentTheme.threeDObjectsColor);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void startmenu_Paint(object sender, PaintEventArgs e)
|
||||||
|
{
|
||||||
|
var gfx = e.Graphics;
|
||||||
|
gfx.Clear(currentTheme.threeDObjectsColor);
|
||||||
|
|
||||||
|
var _lightBack = Paintbrush.GetLightFromColor(currentTheme.threeDObjectsColor);
|
||||||
|
var _darkBack = Paintbrush.GetDarkFromColor(currentTheme.threeDObjectsColor);
|
||||||
|
|
||||||
|
gfx.DrawLine(Pens.Black, 0, startmenu.Height - 1, startmenu.Width - 1, startmenu.Height - 1);
|
||||||
|
gfx.DrawLine(Pens.Black, startmenu.Width - 1, startmenu.Height - 1, startmenu.Width - 1, 0);
|
||||||
|
gfx.DrawLine(new Pen(_darkBack), 1, startmenu.Height - 2, startmenu.Width - 2, startmenu.Height - 2);
|
||||||
|
gfx.DrawLine(new Pen(_darkBack), startmenu.Width - 2, 1, startmenu.Width - 2, startmenu.Height - 2);
|
||||||
|
gfx.DrawLine(new Pen(_lightBack), 1, startmenu.Height - 3, 1, 1);
|
||||||
|
gfx.DrawLine(new Pen(_lightBack), startmenu.Width - 3, 1, 1, 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void ErrorBlasterToolStripMenuItem_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
WinClassic app = wm.Init(new ErrorBlaster95(), "Welcome to Error Blaster 95!", null, false, false, false, false);
|
||||||
|
AddTaskBarItem(app, app.Tag.ToString(), "Welcome to Error Blaster 95!", null);
|
||||||
|
|
||||||
|
nonimportantapps.Add(app);
|
||||||
|
nonimportantapps[nonimportantapps.Count - 1].BringToFront();
|
||||||
|
nonimportantapps[nonimportantapps.Count - 1].FormClosing += new FormClosingEventHandler(NonImportantApp_Closing);
|
||||||
|
|
||||||
|
app.BringToFront();
|
||||||
|
startmenu.Hide();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void StartRunnerToolStripMenuItem_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
WinClassic app = wm.Init(new StartRunner95(), "Welcome to Start Runner 95!", null, false, false, false, false);
|
||||||
|
AddTaskBarItem(app, app.Tag.ToString(), "Welcome to Start Runner 95!", null);
|
||||||
|
|
||||||
|
nonimportantapps.Add(app);
|
||||||
|
nonimportantapps[nonimportantapps.Count - 1].BringToFront();
|
||||||
|
nonimportantapps[nonimportantapps.Count - 1].FormClosing += new FormClosingEventHandler(NonImportantApp_Closing);
|
||||||
|
|
||||||
|
app.BringToFront();
|
||||||
|
startmenu.Hide();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private void desktopicons_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
startmenu.Hide();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
2606
Histacom2/OS/WinME/WinME.resx
Normal file
2606
Histacom2/OS/WinME/WinME.resx
Normal file
File diff suppressed because it is too large
Load diff
|
@ -141,6 +141,15 @@ public static async void Travel2K(WinClassicTimeDistorter3Bad td)
|
||||||
|
|
||||||
public static async void TravelME(WinClassicTimeDistorter3Bad td)
|
public static async void TravelME(WinClassicTimeDistorter3Bad td)
|
||||||
{
|
{
|
||||||
|
await Task.Delay(4000); Console.WriteLine("TheHiddenHacker> so were going to 2001 it seems");
|
||||||
|
await Task.Delay(5000); Console.WriteLine("TheHiddenHacker> this means we have to convince 12padams not to release the virus");
|
||||||
|
await Task.Delay(4000); Console.WriteLine("TheHiddenHacker> tbh im a bit nervous about doing this");
|
||||||
|
await Task.Delay(5000); Console.WriteLine("TheHiddenHacker> like, how exactly can we explain whats going on, and why you never made it?");
|
||||||
|
await Task.Delay(3000); Console.WriteLine("TheHiddenHacker> but eh");
|
||||||
|
await Task.Delay(4000); Console.WriteLine("TheHiddenHacker> i guess we can figure it out when we get there");
|
||||||
|
await Task.Delay(5000); Console.WriteLine("TheHiddenHacker> anyways, as i said before, im coming with you to 2001");
|
||||||
|
await Task.Delay(5000); Console.WriteLine("TheHiddenHacker> and i activated my time distorter a little after you did");
|
||||||
|
await Task.Delay(5000); Console.WriteLine("TheHiddenHacker> but as soon as i get to 2001, ill setup another telnet"); //40
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -21,19 +21,10 @@ public partial class WindowsXPBad : Form
|
||||||
private SoundPlayer startsound;
|
private SoundPlayer startsound;
|
||||||
public WindowManager wm = new WindowManager();
|
public WindowManager wm = new WindowManager();
|
||||||
|
|
||||||
public List<WinClassic> nonimportantapps = new List<WinClassic>();
|
|
||||||
public WebChat1999 webchat;
|
|
||||||
public WinClassic ie;
|
|
||||||
|
|
||||||
public TaskBarController tb = new TaskBarController();
|
public TaskBarController tb = new TaskBarController();
|
||||||
|
|
||||||
public int currentappcount = 0;
|
public int currentappcount = 0;
|
||||||
|
|
||||||
public bool webchatInstalled = false;
|
|
||||||
|
|
||||||
public bool hiddenpadamsFound = false;
|
|
||||||
private WinClassicTimeDistorter2 distort;
|
|
||||||
|
|
||||||
// Init the form
|
// Init the form
|
||||||
public WindowsXPBad()
|
public WindowsXPBad()
|
||||||
{
|
{
|
||||||
|
|
|
@ -2129,4 +2129,7 @@
|
||||||
<data name="WinClassicDrive" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
<data name="WinClassicDrive" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
<value>..\Resources\WinClassicDrive.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
<value>..\Resources\WinClassicDrive.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="sliver2kgrey" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
|
<value>..\Resources\WinClassic\sliver2kgrey.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||||
|
</data>
|
||||||
</root>
|
</root>
|
19
Histacom2/Properties/Resources1.Designer.cs
generated
19
Histacom2/Properties/Resources1.Designer.cs
generated
|
@ -19,7 +19,7 @@ namespace Histacom2.Properties {
|
||||||
// class via a tool like ResGen or Visual Studio.
|
// class via a tool like ResGen or Visual Studio.
|
||||||
// To add or remove a member, edit your .ResX file then rerun ResGen
|
// To add or remove a member, edit your .ResX file then rerun ResGen
|
||||||
// with the /str option, or rebuild your VS project.
|
// with the /str option, or rebuild your VS project.
|
||||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "15.0.0.0")]
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||||
public class Resources {
|
public class Resources {
|
||||||
|
@ -892,6 +892,16 @@ public static System.Drawing.Bitmap SeizureWarning {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||||
|
/// </summary>
|
||||||
|
public static System.Drawing.Bitmap sliver2kgrey {
|
||||||
|
get {
|
||||||
|
object obj = ResourceManager.GetObject("sliver2kgrey", resourceCulture);
|
||||||
|
return ((System.Drawing.Bitmap)(obj));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -976,9 +986,7 @@ public static System.IO.UnmanagedMemoryStream std_gobeep {
|
||||||
/// "btn4txt": "",
|
/// "btn4txt": "",
|
||||||
/// "btn4tag": "",
|
/// "btn4tag": "",
|
||||||
/// "btn5txt": "",
|
/// "btn5txt": "",
|
||||||
/// "btn5tag": ""
|
/// "btn5tag": " [rest of string was truncated]";.
|
||||||
/// },
|
|
||||||
/// "inthe [rest of string was truncated]";.
|
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static string std_story {
|
public static string std_story {
|
||||||
get {
|
get {
|
||||||
|
@ -1159,8 +1167,7 @@ public static System.Drawing.Bitmap TrueColor {
|
||||||
/// "userchat": true
|
/// "userchat": true
|
||||||
/// },
|
/// },
|
||||||
/// {
|
/// {
|
||||||
/// "user": "SkyHigh",
|
/// [rest of string was truncated]";.
|
||||||
/// [rest of string was truncated]";.
|
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static string webchat1998_convo {
|
public static string webchat1998_convo {
|
||||||
get {
|
get {
|
||||||
|
|
BIN
Histacom2/Resources/WinClassic/sliver2kgrey.png
Normal file
BIN
Histacom2/Resources/WinClassic/sliver2kgrey.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 157 B |
Loading…
Reference in a new issue