From 7d99d9ffbf5652f538c69228daa53fe423eb246b Mon Sep 17 00:00:00 2001 From: Alex-TIMEHACK Date: Sun, 23 Jul 2017 14:00:50 +0100 Subject: Started on the Realistic Desktop :P No one reads these descriptions! --- TimeHACK.Engine/DesktopController.cs | 19 +++++++++++++++++++ TimeHACK.Engine/TimeHACK.Engine.csproj | 1 + TimeHACK.Main/OS/Win95/Win95.Designer.cs | 7 +++++++ TimeHACK.Main/OS/Win95/Win95.cs | 17 ++++++++++++++--- TimeHACK.Main/OS/Win95/Win95.resx | 5 ++++- 5 files changed, 45 insertions(+), 4 deletions(-) create mode 100644 TimeHACK.Engine/DesktopController.cs diff --git a/TimeHACK.Engine/DesktopController.cs b/TimeHACK.Engine/DesktopController.cs new file mode 100644 index 0000000..23c9e3f --- /dev/null +++ b/TimeHACK.Engine/DesktopController.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; +using System.IO; + + +namespace TimeHACK.Engine +{ + public static class DesktopController + { + public static void ViewDesktopIcons(ListView baseIcons, ref ListView theView, string Directory) + { + + } + } +} diff --git a/TimeHACK.Engine/TimeHACK.Engine.csproj b/TimeHACK.Engine/TimeHACK.Engine.csproj index 2f4073d..dd6342c 100644 --- a/TimeHACK.Engine/TimeHACK.Engine.csproj +++ b/TimeHACK.Engine/TimeHACK.Engine.csproj @@ -48,6 +48,7 @@ + diff --git a/TimeHACK.Main/OS/Win95/Win95.Designer.cs b/TimeHACK.Main/OS/Win95/Win95.Designer.cs index b77e2db..a46afe2 100644 --- a/TimeHACK.Main/OS/Win95/Win95.Designer.cs +++ b/TimeHACK.Main/OS/Win95/Win95.Designer.cs @@ -130,6 +130,7 @@ namespace TimeHACK.OS.Win95 this.BitmapImageToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.MicrosoftDataLinkToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.PropertiesToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); + this.desktopupdate = new System.Windows.Forms.Timer(this.components); this.panel1.SuspendLayout(); this.taskbar.SuspendLayout(); this.clockPanel.SuspendLayout(); @@ -1142,6 +1143,11 @@ namespace TimeHACK.OS.Win95 this.PropertiesToolStripMenuItem1.Text = "Properties"; this.PropertiesToolStripMenuItem1.Click += new System.EventHandler(this.PropertiesToolStripMenuItem1_Click); // + // desktopupdate + // + this.desktopupdate.Interval = 5000; + this.desktopupdate.Tick += new System.EventHandler(this.desktopupdate_Tick); + // // Windows95 // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); @@ -1268,5 +1274,6 @@ namespace TimeHACK.OS.Win95 private System.Windows.Forms.ToolStripMenuItem storyTest1ToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem FTPClientToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem iE4TestToolStripMenuItem; + private System.Windows.Forms.Timer desktopupdate; } } \ No newline at end of file diff --git a/TimeHACK.Main/OS/Win95/Win95.cs b/TimeHACK.Main/OS/Win95/Win95.cs index f897001..0f9a8e7 100644 --- a/TimeHACK.Main/OS/Win95/Win95.cs +++ b/TimeHACK.Main/OS/Win95/Win95.cs @@ -23,11 +23,13 @@ namespace TimeHACK.OS.Win95 public WinClassicTimeDistorter distort; public TaskBarController tb = new TaskBarController(); - public int currentappcount = 0; + public ListView BaseIcons; - public bool webchatInstalled = false; + public int CurrentAppCount = 0; - public bool hiddenpadamsFound = false; + public bool WebChatInstalled = false; + + public bool HiddenPadamsFound = false; // Init the form public Windows95() @@ -56,6 +58,8 @@ namespace TimeHACK.OS.Win95 item.MouseEnter += new EventHandler(MenuItem_MouseEnter); item.MouseLeave += new EventHandler(MenuItem_MouseLeave); } + + BaseIcons = desktopicons; } private void MenuItem_MouseEnter(object sender, EventArgs e) @@ -451,6 +455,13 @@ namespace TimeHACK.OS.Win95 app.BringToFront(); startmenu.Hide(); } + + private void desktopupdate_Tick(object sender, EventArgs e) + { + // Update the Desktop icons + + DesktopController.ViewDesktopIcons(BaseIcons, ref desktopicons, Path.Combine(ProfileWindowsDirectory, "Desktop")); + } } public class MyRenderer : ToolStripProfessionalRenderer { diff --git a/TimeHACK.Main/OS/Win95/Win95.resx b/TimeHACK.Main/OS/Win95/Win95.resx index 5e1c35e..7285926 100644 --- a/TimeHACK.Main/OS/Win95/Win95.resx +++ b/TimeHACK.Main/OS/Win95/Win95.resx @@ -374,7 +374,7 @@ AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0 ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAADq - ggAAAk1TRnQBSQFMAgEBDAEAAbgBAQG4AQEBIAEAASABAAT/ASEBAAj/AUIBTQE2BwABNgMAASgDAAGA + ggAAAk1TRnQBSQFMAgEBDAEAAcgBAQHIAQEBIAEAASABAAT/ASEBAAj/AUIBTQE2BwABNgMAASgDAAGA AwABgAMAAQEBAAEgBwABAf8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A /wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A /wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8AXAAB/wMAAf8DAAH/AwAB/wMAAf8DAAH/AwAB/x8AAf8DAAH/ @@ -938,6 +938,9 @@ 398, 17 + + 580, 17 + 63 -- cgit v1.2.3