From a66494723ce44ed7eb38ebef83f59468b7279c2d Mon Sep 17 00:00:00 2001 From: lempamo Date: Sat, 5 Aug 2017 21:14:30 -0400 Subject: added real achievements --- TimeHACK.Engine/SaveSystem.cs | 8 +- TimeHACK.Main/AchievementBox.Designer.cs | 67 ++++++++++++ TimeHACK.Main/AchievementBox.cs | 59 ++++++++++ TimeHACK.Main/AchievementBox.resx | 120 +++++++++++++++++++++ TimeHACK.Main/AchievementScreen.Designer.cs | 62 ++++++++++- TimeHACK.Main/AchievementScreen.cs | 3 +- TimeHACK.Main/AchievementScreen.resx | 52 +++++---- .../Win95Apps/MineSweeper/WinClassicMinesweeper.cs | 17 +-- .../OS/Win95/Win95Apps/Win95WindowsExplorer.cs | 5 +- TimeHACK.Main/Properties/Resources.Designer.cs | 30 ++++++ TimeHACK.Main/Properties/Resources.resx | 9 ++ TimeHACK.Main/Resources/AchievementMines.png | Bin 0 -> 1944 bytes TimeHACK.Main/Resources/EndingDestruction.png | Bin 0 -> 2031 bytes TimeHACK.Main/Resources/EndingPiracy.png | Bin 0 -> 2144 bytes .../WinClassic/WinClassicEndingsLocked.png | Bin 444 -> 439 bytes TimeHACK.Main/TimeHACK.Main.csproj | 12 +++ 16 files changed, 401 insertions(+), 43 deletions(-) create mode 100644 TimeHACK.Main/AchievementBox.Designer.cs create mode 100644 TimeHACK.Main/AchievementBox.cs create mode 100644 TimeHACK.Main/AchievementBox.resx create mode 100644 TimeHACK.Main/Resources/AchievementMines.png create mode 100644 TimeHACK.Main/Resources/EndingDestruction.png create mode 100644 TimeHACK.Main/Resources/EndingPiracy.png diff --git a/TimeHACK.Engine/SaveSystem.cs b/TimeHACK.Engine/SaveSystem.cs index 5a90902..6ebdf12 100644 --- a/TimeHACK.Engine/SaveSystem.cs +++ b/TimeHACK.Engine/SaveSystem.cs @@ -23,7 +23,6 @@ namespace TimeHACK.Engine public static class SaveSystem { public static Save CurrentSave { get; set; } - public static FileSystemFolderInfo filesystemflinfo { get; set; } public static bool DevMode = false; public static Form troubleshooter; @@ -598,6 +597,13 @@ namespace TimeHACK.Engine return byt; } + public static void SaveAchievement(int achievementID) + { + byte[] byt = File.ReadAllBytes(Path.Combine(DataDirectory, "achieved.thack")); + byt[achievementID] = 1; + File.WriteAllBytes(Path.Combine(DataDirectory, "achieved.thack"), byt); + } + public static void SetTheme() { switch (CurrentSave.ThemeName) diff --git a/TimeHACK.Main/AchievementBox.Designer.cs b/TimeHACK.Main/AchievementBox.Designer.cs new file mode 100644 index 0000000..53b96c8 --- /dev/null +++ b/TimeHACK.Main/AchievementBox.Designer.cs @@ -0,0 +1,67 @@ +namespace TimeHACK +{ + partial class AchievementBox + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.button1 = new System.Windows.Forms.Button(); + this.SuspendLayout(); + // + // button1 + // + this.button1.BackColor = System.Drawing.Color.Silver; + this.button1.FlatAppearance.BorderColor = System.Drawing.Color.Gray; + this.button1.FlatAppearance.MouseDownBackColor = System.Drawing.Color.Silver; + this.button1.FlatAppearance.MouseOverBackColor = System.Drawing.Color.Silver; + this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.button1.Location = new System.Drawing.Point(128, 59); + this.button1.Name = "button1"; + this.button1.Size = new System.Drawing.Size(68, 35); + this.button1.TabIndex = 0; + this.button1.Text = "Exit"; + this.button1.UseVisualStyleBackColor = false; + this.button1.Click += new System.EventHandler(this.button1_Click); + // + // AchievementBox + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.BackgroundImage = global::TimeHACK.Properties.Resources.EndingPiracy; + this.ClientSize = new System.Drawing.Size(202, 102); + this.Controls.Add(this.button1); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; + this.Name = "AchievementBox"; + this.Text = "Form1"; + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.Button button1; + } +} \ No newline at end of file diff --git a/TimeHACK.Main/AchievementBox.cs b/TimeHACK.Main/AchievementBox.cs new file mode 100644 index 0000000..0d033c6 --- /dev/null +++ b/TimeHACK.Main/AchievementBox.cs @@ -0,0 +1,59 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading; +using System.Threading.Tasks; +using System.Windows.Forms; +using TimeHACK.Engine; + +namespace TimeHACK +{ + public partial class AchievementBox : Form + { + private bool stayOnScreen = false; + + public AchievementBox(int type) + { + InitializeComponent(); + switch (type) + { + case 0: //Piracy Ending + BackgroundImage = Properties.Resources.EndingPiracy; + stayOnScreen = true; + break; + case 20: + BackgroundImage = Properties.Resources.AchievementMines; + break; + } + Location = new Point(Screen.PrimaryScreen.WorkingArea.Width - 202, -102); + while (this.Location.Y != 0) + { + Thread.Sleep(25); + Location = new Point(Location.X, Location.Y + 1); + } + if (!stayOnScreen) + { + Thread.Sleep(5000); + while (this.Location.Y != -102) + { + Thread.Sleep(25); + Location = new Point(Location.X, Location.Y - 1); + } + this.Close(); + } + } + + private void button1_Click(object sender, EventArgs e) + { + Program.title.Show(); + SaveSystem.CurrentSave = null; + SaveSystem.currentTheme = null; + foreach (Form f in Application.OpenForms) if (!(f is TitleScreen) && !(f is AchievementBox)) f.Close(); + this.Close(); + } + } +} diff --git a/TimeHACK.Main/AchievementBox.resx b/TimeHACK.Main/AchievementBox.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/TimeHACK.Main/AchievementBox.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/TimeHACK.Main/AchievementScreen.Designer.cs b/TimeHACK.Main/AchievementScreen.Designer.cs index 586db8e..337c33a 100644 --- a/TimeHACK.Main/AchievementScreen.Designer.cs +++ b/TimeHACK.Main/AchievementScreen.Designer.cs @@ -32,25 +32,30 @@ System.Windows.Forms.ListViewItem listViewItem1 = new System.Windows.Forms.ListViewItem("??? Ending", 1); System.Windows.Forms.ListViewItem listViewItem2 = new System.Windows.Forms.ListViewItem("??? Ending", "WinClassicEndingsLocked.png"); 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 listViewItem4 = new System.Windows.Forms.ListViewItem("Time Hacked", "WinClassicEndingsLocked.png"); this.listView1 = new System.Windows.Forms.ListView(); this.imageList1 = new System.Windows.Forms.ImageList(this.components); this.button1 = new System.Windows.Forms.Button(); + this.label1 = new System.Windows.Forms.Label(); + this.listView2 = new System.Windows.Forms.ListView(); + this.label2 = new System.Windows.Forms.Label(); this.SuspendLayout(); // // listView1 // - this.listView1.BackColor = System.Drawing.Color.Silver; - this.listView1.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.listView1.BackColor = System.Drawing.Color.White; + this.listView1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.listView1.ForeColor = System.Drawing.Color.Black; listViewItem1.Tag = "piracy"; this.listView1.Items.AddRange(new System.Windows.Forms.ListViewItem[] { listViewItem1, listViewItem2}); this.listView1.LargeImageList = this.imageList1; - this.listView1.Location = new System.Drawing.Point(12, 12); + this.listView1.Location = new System.Drawing.Point(12, 24); this.listView1.MultiSelect = false; this.listView1.Name = "listView1"; - this.listView1.Size = new System.Drawing.Size(305, 188); + this.listView1.Size = new System.Drawing.Size(156, 196); this.listView1.TabIndex = 0; this.listView1.TileSize = new System.Drawing.Size(150, 36); this.listView1.UseCompatibleStateImageBehavior = false; @@ -73,12 +78,55 @@ this.button1.UseVisualStyleBackColor = true; this.button1.Click += new System.EventHandler(this.button1_Click); // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(13, 5); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(45, 13); + this.label1.TabIndex = 2; + this.label1.Text = "Endings"; + // + // listView2 + // + this.listView2.BackColor = System.Drawing.Color.White; + this.listView2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.listView2.ForeColor = System.Drawing.Color.Black; + listViewItem3.Tag = "mines"; + listViewItem3.ToolTipText = "Complete Minesweeper\'s Hard Mode"; + listViewItem4.ToolTipText = "Complete All Endings"; + this.listView2.Items.AddRange(new System.Windows.Forms.ListViewItem[] { + listViewItem3, + listViewItem4}); + this.listView2.LargeImageList = this.imageList1; + this.listView2.Location = new System.Drawing.Point(174, 24); + this.listView2.MultiSelect = false; + this.listView2.Name = "listView2"; + this.listView2.ShowItemToolTips = true; + this.listView2.Size = new System.Drawing.Size(156, 196); + this.listView2.TabIndex = 3; + this.listView2.TileSize = new System.Drawing.Size(150, 36); + this.listView2.UseCompatibleStateImageBehavior = false; + this.listView2.View = System.Windows.Forms.View.Tile; + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Location = new System.Drawing.Point(174, 5); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(74, 13); + this.label2.TabIndex = 4; + this.label2.Text = "Achievements"; + // // AchievementScreen // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.BackColor = System.Drawing.Color.Silver; - this.ClientSize = new System.Drawing.Size(329, 261); + this.ClientSize = new System.Drawing.Size(343, 261); + this.Controls.Add(this.label2); + this.Controls.Add(this.listView2); + this.Controls.Add(this.label1); this.Controls.Add(this.button1); this.Controls.Add(this.listView1); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); @@ -86,6 +134,7 @@ this.Text = "Achievements"; this.Load += new System.EventHandler(this.AchievementScreen_Load); this.ResumeLayout(false); + this.PerformLayout(); } @@ -94,5 +143,8 @@ private System.Windows.Forms.ListView listView1; private System.Windows.Forms.ImageList imageList1; private System.Windows.Forms.Button button1; + private System.Windows.Forms.Label label1; + private System.Windows.Forms.ListView listView2; + private System.Windows.Forms.Label label2; } } \ No newline at end of file diff --git a/TimeHACK.Main/AchievementScreen.cs b/TimeHACK.Main/AchievementScreen.cs index 979ce91..0aafbe0 100644 --- a/TimeHACK.Main/AchievementScreen.cs +++ b/TimeHACK.Main/AchievementScreen.cs @@ -30,8 +30,9 @@ namespace TimeHACK if (achieved[1] == 1) { listView1.Items[1].ImageIndex = 0; - listView1.Items[1].Name = "Netpocalypse Ending"; + listView1.Items[1].Name = "Destruction Ending"; } + if (achieved[20] == 1) listView2.Items[0].ImageIndex = 0; } private void button1_Click(object sender, EventArgs e) diff --git a/TimeHACK.Main/AchievementScreen.resx b/TimeHACK.Main/AchievementScreen.resx index 7dac302..268b47c 100644 --- a/TimeHACK.Main/AchievementScreen.resx +++ b/TimeHACK.Main/AchievementScreen.resx @@ -124,8 +124,8 @@ AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0 - ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAABw - CwAAAk1TRnQBSQFMAgEBAgEAATABAAEwAQABIAEAASABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAA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AQEBPwH5AQABAQE/ + CAAB8wEAAQEBnwHzAQABAQGfCAAB5wEAAQEBzwHnAQABAQHPCAABzwEAAQEB5wHPAQABAQHnCAABnwEA + AQEB8wGfAQABAQHzCAABmwEAAQEBswGbAQABAQGzCAABkQEAAQEBEwGRAQABAQETCAABwQEAAQEBBwHB + AQABAQEHCAAB4wEAAQEBjwHjAQABAQGPCAAB/AIAAX8B/AIAAX8IAAH4AgABPwH4AgABPwgAAfwCAAF/ + AfwCAAF/CAAI/wgACw== diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/WinClassicMinesweeper.cs b/TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/WinClassicMinesweeper.cs index 8714b65..aa1aeaa 100644 --- a/TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/WinClassicMinesweeper.cs +++ b/TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/WinClassicMinesweeper.cs @@ -102,22 +102,15 @@ namespace TimeHACK.OS.Win95.Win95Apps switch (level) { case ("easy"): - if (SaveSystem.CurrentSave.mineSweepE > _game.Time) - { - SaveSystem.CurrentSave.mineSweepE = _game.Time; - } + if (SaveSystem.CurrentSave.mineSweepE > _game.Time) SaveSystem.CurrentSave.mineSweepE = _game.Time; break; case ("medium"): - if (SaveSystem.CurrentSave.mineSweepI > _game.Time) - { - SaveSystem.CurrentSave.mineSweepI = _game.Time; - } + if (SaveSystem.CurrentSave.mineSweepI > _game.Time) SaveSystem.CurrentSave.mineSweepI = _game.Time; break; case ("hard"): - if (SaveSystem.CurrentSave.mineSweepH > _game.Time) - { - SaveSystem.CurrentSave.mineSweepH = _game.Time; - } + if (SaveSystem.CurrentSave.mineSweepH > _game.Time) SaveSystem.CurrentSave.mineSweepH = _game.Time; + SaveSystem.SaveAchievement(20); + AchievementBox ab = new AchievementBox(20); break; } diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/Win95WindowsExplorer.cs b/TimeHACK.Main/OS/Win95/Win95Apps/Win95WindowsExplorer.cs index 4cba8db..daa0ea8 100644 --- a/TimeHACK.Main/OS/Win95/Win95Apps/Win95WindowsExplorer.cs +++ b/TimeHACK.Main/OS/Win95/Win95Apps/Win95WindowsExplorer.cs @@ -295,7 +295,10 @@ namespace TimeHACK.OS.Win95.Win95Apps break; case "time distorter setup": Win95Installer instTd = new Win95Installer("Time Distorter 0.1"); - instTd.InstallCompleted += (sendr, args) => TitleScreen.frm95.TimeDistorterToolStripMenuItem.Visible = true; + instTd.InstallCompleted += (sendr, args) => + { + TitleScreen.frm95.TimeDistorterToolStripMenuItem.Visible = true; + }; WinClassic appTd = wm.StartWin95(instTd, "Time Distorter Setup", null, true, true); Program.AddTaskbarItem(appTd, appTd.Tag.ToString(), "Time Distorter Setup", null); appTd.BringToFront(); diff --git a/TimeHACK.Main/Properties/Resources.Designer.cs b/TimeHACK.Main/Properties/Resources.Designer.cs index fb32fc2..d4f62fa 100644 --- a/TimeHACK.Main/Properties/Resources.Designer.cs +++ b/TimeHACK.Main/Properties/Resources.Designer.cs @@ -80,6 +80,16 @@ namespace TimeHACK.Properties { } } + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap AchievementMines { + get { + object obj = ResourceManager.GetObject("AchievementMines", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + /// /// Looks up a localized resource of type System.IO.UnmanagedMemoryStream similar to System.IO.MemoryStream. /// @@ -135,6 +145,26 @@ namespace TimeHACK.Properties { } } + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap EndingDestruction { + get { + object obj = ResourceManager.GetObject("EndingDestruction", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap EndingPiracy { + get { + object obj = ResourceManager.GetObject("EndingPiracy", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// diff --git a/TimeHACK.Main/Properties/Resources.resx b/TimeHACK.Main/Properties/Resources.resx index 7163ace..b893582 100644 --- a/TimeHACK.Main/Properties/Resources.resx +++ b/TimeHACK.Main/Properties/Resources.resx @@ -708,6 +708,15 @@ ..\Resources\MinesweepNumBox.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\Resources\AchievementMines.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\EndingDestruction.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\EndingPiracy.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + ..\resources\lemon's lcd.ttf;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 diff --git a/TimeHACK.Main/Resources/AchievementMines.png b/TimeHACK.Main/Resources/AchievementMines.png new file mode 100644 index 0000000..b655153 Binary files /dev/null and b/TimeHACK.Main/Resources/AchievementMines.png differ diff --git a/TimeHACK.Main/Resources/EndingDestruction.png b/TimeHACK.Main/Resources/EndingDestruction.png new file mode 100644 index 0000000..2b57930 Binary files /dev/null and b/TimeHACK.Main/Resources/EndingDestruction.png differ diff --git a/TimeHACK.Main/Resources/EndingPiracy.png b/TimeHACK.Main/Resources/EndingPiracy.png new file mode 100644 index 0000000..fd3ec35 Binary files /dev/null and b/TimeHACK.Main/Resources/EndingPiracy.png differ diff --git a/TimeHACK.Main/Resources/WinClassic/WinClassicEndingsLocked.png b/TimeHACK.Main/Resources/WinClassic/WinClassicEndingsLocked.png index f4c799c..af402bb 100644 Binary files a/TimeHACK.Main/Resources/WinClassic/WinClassicEndingsLocked.png and b/TimeHACK.Main/Resources/WinClassic/WinClassicEndingsLocked.png differ diff --git a/TimeHACK.Main/TimeHACK.Main.csproj b/TimeHACK.Main/TimeHACK.Main.csproj index 75777d5..658cc68 100644 --- a/TimeHACK.Main/TimeHACK.Main.csproj +++ b/TimeHACK.Main/TimeHACK.Main.csproj @@ -126,6 +126,12 @@ AchievementScreen.cs + + Form + + + AchievementBox.cs + Form @@ -344,6 +350,9 @@ AchievementScreen.cs + + AchievementBox.cs + BIOS.cs @@ -492,6 +501,9 @@ + + + -- cgit v1.2.3