aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Histacom2.Engine/SaveSystem.cs6
-rw-r--r--Histacom2/AchievementBox.Designer.cs15
-rw-r--r--Histacom2/OS/Win95/Win95Apps/WebChat1998.cs36
3 files changed, 35 insertions, 22 deletions
diff --git a/Histacom2.Engine/SaveSystem.cs b/Histacom2.Engine/SaveSystem.cs
index 79333bd..48fec8a 100644
--- a/Histacom2.Engine/SaveSystem.cs
+++ b/Histacom2.Engine/SaveSystem.cs
@@ -681,9 +681,9 @@ namespace Histacom2.Engine
public static byte[] GetAchievements()
{
- byte[] byt = new byte[] { 0, // Piracy Ending
- 0, // End of Internet Ending
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
+ byte[] byt = new byte[] { 0, // 0 - Piracy Ending
+ 0, // 1 - End of Internet Ending
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // 20 - Minesweeper Hard Mode
if (DevMode) File.WriteAllBytes(Path.Combine(DataDirectory, "achieved.thack"), byt);
if (File.Exists(Path.Combine(DataDirectory, "achieved.thack"))) byt = File.ReadAllBytes(Path.Combine(DataDirectory, "achieved.thack"));
diff --git a/Histacom2/AchievementBox.Designer.cs b/Histacom2/AchievementBox.Designer.cs
index 2f9aea7..0dcc887 100644
--- a/Histacom2/AchievementBox.Designer.cs
+++ b/Histacom2/AchievementBox.Designer.cs
@@ -28,22 +28,23 @@
/// </summary>
private void InitializeComponent()
{
- this.button1 = new System.Windows.Forms.Button();
+ this.button1 = new Histacom2.Engine.UI.ClassicButton();
this.SuspendLayout();
//
// button1
//
+ this.button1.AdaptBackColorWithTheme = false;
+ this.button1.AdaptFontWithTheme = false;
+ this.button1.AdaptForeColorWithTheme = false;
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.DialogResult = System.Windows.Forms.DialogResult.None;
+ this.button1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.75F, System.Drawing.FontStyle.Bold);
+ this.button1.ForeColor = System.Drawing.Color.Black;
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
@@ -63,6 +64,6 @@
#endregion
- private System.Windows.Forms.Button button1;
+ private Histacom2.Engine.UI.ClassicButton button1;
}
} \ No newline at end of file
diff --git a/Histacom2/OS/Win95/Win95Apps/WebChat1998.cs b/Histacom2/OS/Win95/Win95Apps/WebChat1998.cs
index 0b2ef8a..c986b23 100644
--- a/Histacom2/OS/Win95/Win95Apps/WebChat1998.cs
+++ b/Histacom2/OS/Win95/Win95Apps/WebChat1998.cs
@@ -34,20 +34,12 @@ namespace Histacom2.OS.Win95.Win95Apps
BSODCreator bc = new BSODCreator();
Win9XBSOD bsod = null;
- Win9XBSOD bsod2 = null;
public WebChat1998()
{
InitializeComponent();
bsod = bc.throw9XBSOD(false, BSODCreator.BSODCauses.WimpEnding);
- bsod2 = bc.throw9XBSOD(false, BSODCreator.BSODCauses.PiracyEnding);
bsod.Hide();
- bsod2.Hide();
-
- this.button1.Paint += (sender, args) => Engine.Paintbrush.PaintClassicBorders(sender, args, 2);
- this.button2.Paint += (sender, args) => Engine.Paintbrush.PaintClassicBorders(sender, args, 2);
- this.button3.Paint += (sender, args) => Engine.Paintbrush.PaintClassicBorders(sender, args, 2);
- this.button4.Paint += (sender, args) => Engine.Paintbrush.PaintClassicBorders(sender, args, 2);
textBox1.Text = "If you do not agree to the following rules below DO NOT log into the chat:\n\nNo Bullying\nNo Swearing\nNo Hacking\nNo Illegal Files / Piracy\n\nFailure to follow these rules will result in serious irreversible consequences.";
}
@@ -205,9 +197,13 @@ namespace Histacom2.OS.Win95.Win95Apps
case "type":
history.ReadOnly = false;
break;
- case "notyper":
- history.ReadOnly = true;
- break; // TODO: Add ending here
+ case "pixel":
+ history.Font = new Font(TitleScreen.pfc.Families[1], 16, FontStyle.Regular);
+ break;
+ case ".cmd-end":
+ Chat.Stop();
+ endingActivate();
+ break;
default:
if (msgsound) receive.Play();
break;
@@ -232,6 +228,23 @@ namespace Histacom2.OS.Win95.Win95Apps
chat_index++;
}
+ private async void endingActivate()
+ {
+ history.ReadOnly = true;
+ history.Text = "";
+ await Task.Delay(1500);
+ history.Text = "Starting MS-DOS...";
+ await Task.Delay(1000);
+ history.Text = "Starting MS-DOS...\n\nC:\\>";
+ history.ReadOnly = false;
+ await Task.Delay(5000);
+ history.ReadOnly = true;
+ history.Text = "GAME OVER. Your computer has been locked down to MS-DOS because you pirated software. Seriously, what were you thinking?";
+ await Task.Delay(2000);
+ SaveSystem.SaveAchievement(0);
+ new AchievementBox(0);
+ }
+
private void WebChatClosing(object sender, FormClosingEventArgs e)
{
if (wimponclose)
@@ -239,7 +252,6 @@ namespace Histacom2.OS.Win95.Win95Apps
bsod.FormClosing += new FormClosingEventHandler(Program.title.BSODRewind);
bsod.Show();
bsod.BringToFront();
- bsod2.Close();
}
}