From fcc9810a8e5ba613c43c185f7a8b32292d22191b Mon Sep 17 00:00:00 2001 From: lempamo Date: Sun, 1 Oct 2017 20:18:03 -0400 Subject: webchat 1999 is created --- .../OS/Win95/Win95Apps/WebChat1998.Designer.cs | 38 +++++++++++++++++----- 1 file changed, 29 insertions(+), 9 deletions(-) (limited to 'Histacom2/OS/Win95/Win95Apps/WebChat1998.Designer.cs') diff --git a/Histacom2/OS/Win95/Win95Apps/WebChat1998.Designer.cs b/Histacom2/OS/Win95/Win95Apps/WebChat1998.Designer.cs index ea9d0cd..e57ff1b 100644 --- a/Histacom2/OS/Win95/Win95Apps/WebChat1998.Designer.cs +++ b/Histacom2/OS/Win95/Win95Apps/WebChat1998.Designer.cs @@ -75,7 +75,7 @@ this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.label1.Location = new System.Drawing.Point(506, 13); this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(85, 13); + this.label1.Size = new System.Drawing.Size(96, 13); this.label1.TabIndex = 1; this.label1.Text = "Users Logged In"; // @@ -106,18 +106,22 @@ // // label5 // - this.label5.Location = new System.Drawing.Point(13, 18); + this.label5.Location = new System.Drawing.Point(10, 18); this.label5.Name = "label5"; - this.label5.Size = new System.Drawing.Size(84, 13); + this.label5.Size = new System.Drawing.Size(87, 13); this.label5.TabIndex = 1; this.label5.Text = "skin95setup.exe"; // // button5 // + this.button5.AdaptBackColorWithTheme = true; + this.button5.AdaptFontWithTheme = true; + this.button5.AdaptForeColorWithTheme = true; this.button5.BackColor = System.Drawing.Color.Silver; + this.button5.DialogResult = System.Windows.Forms.DialogResult.None; this.button5.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.button5.ForeColor = System.Drawing.Color.Black; - this.button5.Location = new System.Drawing.Point(101, 13); + this.button5.Location = new System.Drawing.Point(103, 13); this.button5.Name = "button5"; this.button5.Size = new System.Drawing.Size(75, 23); this.button5.TabIndex = 0; @@ -128,7 +132,7 @@ this.label6.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.label6.Location = new System.Drawing.Point(504, 374); this.label6.Name = "label6"; - this.label6.Size = new System.Drawing.Size(62, 13); + this.label6.Size = new System.Drawing.Size(70, 13); this.label6.TabIndex = 4; this.label6.Text = "File Sharing"; // @@ -158,7 +162,7 @@ // this.label2.Location = new System.Drawing.Point(328, 161); this.label2.Name = "label2"; - this.label2.Size = new System.Drawing.Size(149, 13); + this.label2.Size = new System.Drawing.Size(166, 13); this.label2.TabIndex = 6; this.label2.Text = "Please type in a screen name."; // @@ -171,7 +175,11 @@ // // button1 // + this.button1.AdaptBackColorWithTheme = true; + this.button1.AdaptFontWithTheme = true; + this.button1.AdaptForeColorWithTheme = true; this.button1.BackColor = System.Drawing.Color.Silver; + this.button1.DialogResult = System.Windows.Forms.DialogResult.None; this.button1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.button1.ForeColor = System.Drawing.Color.Black; this.button1.Location = new System.Drawing.Point(331, 208); @@ -183,9 +191,9 @@ // // label3 // - this.label3.Location = new System.Drawing.Point(202, 16); + this.label3.Location = new System.Drawing.Point(198, 16); this.label3.Name = "label3"; - this.label3.Size = new System.Drawing.Size(112, 13); + this.label3.Size = new System.Drawing.Size(116, 13); this.label3.TabIndex = 3; this.label3.Text = "Welcome to WebChat"; // @@ -193,7 +201,7 @@ // this.label4.Location = new System.Drawing.Point(118, 56); this.label4.Name = "label4"; - this.label4.Size = new System.Drawing.Size(93, 13); + this.label4.Size = new System.Drawing.Size(100, 13); this.label4.TabIndex = 2; this.label4.Text = "Chat Room Rules:"; // @@ -234,8 +242,12 @@ // // button2 // + this.button2.AdaptBackColorWithTheme = true; + this.button2.AdaptFontWithTheme = true; + this.button2.AdaptForeColorWithTheme = true; this.button2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.button2.BackColor = System.Drawing.Color.Silver; + this.button2.DialogResult = System.Windows.Forms.DialogResult.None; this.button2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.button2.ForeColor = System.Drawing.Color.Black; this.button2.Location = new System.Drawing.Point(422, 415); @@ -247,7 +259,11 @@ // // button3 // + this.button3.AdaptBackColorWithTheme = true; + this.button3.AdaptFontWithTheme = true; + this.button3.AdaptForeColorWithTheme = true; this.button3.BackColor = System.Drawing.Color.Silver; + this.button3.DialogResult = System.Windows.Forms.DialogResult.None; this.button3.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.button3.ForeColor = System.Drawing.Color.Black; this.button3.Location = new System.Drawing.Point(149, 427); @@ -259,7 +275,11 @@ // // button4 // + this.button4.AdaptBackColorWithTheme = true; + this.button4.AdaptFontWithTheme = true; + this.button4.AdaptForeColorWithTheme = true; this.button4.BackColor = System.Drawing.Color.Silver; + this.button4.DialogResult = System.Windows.Forms.DialogResult.None; this.button4.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.button4.ForeColor = System.Drawing.Color.Black; this.button4.Location = new System.Drawing.Point(235, 427); -- cgit v1.2.3 From b23771cd187a3235330ef7ead9121b12f1dfdee7 Mon Sep 17 00:00:00 2001 From: lempamo Date: Mon, 2 Oct 2017 13:14:46 -0400 Subject: added in welcome screen to wc99 --- .../OS/Win95/Win95Apps/WebChat1998.Designer.cs | 11 +- .../OS/Win98/Win98Apps/WebChat1999.Designer.cs | 129 +++++++++++++++++++-- Histacom2/OS/Win98/Win98Apps/WebChat1999.resx | 10 ++ 3 files changed, 133 insertions(+), 17 deletions(-) (limited to 'Histacom2/OS/Win95/Win95Apps/WebChat1998.Designer.cs') diff --git a/Histacom2/OS/Win95/Win95Apps/WebChat1998.Designer.cs b/Histacom2/OS/Win95/Win95Apps/WebChat1998.Designer.cs index e57ff1b..05e6add 100644 --- a/Histacom2/OS/Win95/Win95Apps/WebChat1998.Designer.cs +++ b/Histacom2/OS/Win95/Win95Apps/WebChat1998.Designer.cs @@ -46,7 +46,7 @@ this.label3 = new Histacom2.Engine.UI.ClassicLabel(); this.label4 = new Histacom2.Engine.UI.ClassicLabel(); this.textBox1 = new System.Windows.Forms.TextBox(); - this.textBox2 = new System.Windows.Forms.TextBox(); + this.textBox2 = new Histacom2.Engine.UI.ClassicLabel(); this.label7 = new Histacom2.Engine.UI.ClassicLabel(); this.button2 = new Histacom2.Engine.UI.ClassicButton(); this.button3 = new Histacom2.Engine.UI.ClassicButton(); @@ -220,12 +220,9 @@ // textBox2 // this.textBox2.BackColor = System.Drawing.Color.Silver; - this.textBox2.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.textBox2.Location = new System.Drawing.Point(331, 72); - this.textBox2.Multiline = true; + this.textBox2.Location = new System.Drawing.Point(328, 58); this.textBox2.Name = "textBox2"; - this.textBox2.ReadOnly = true; - this.textBox2.Size = new System.Drawing.Size(151, 86); + this.textBox2.Size = new System.Drawing.Size(154, 76); this.textBox2.TabIndex = 0; this.textBox2.Text = "A screen name is a temporary name which will be displayed in place of your real n" + "ame. To keep your identity safe, please do not enter your real name in this chat" + @@ -328,7 +325,7 @@ private Histacom2.Engine.UI.ClassicLabel label5; private System.Windows.Forms.TextBox typechat; private System.Windows.Forms.Panel login; - private System.Windows.Forms.TextBox textBox2; + private Histacom2.Engine.UI.ClassicLabel textBox2; private System.Windows.Forms.TextBox textBox1; private Histacom2.Engine.UI.ClassicLabel label4; private Histacom2.Engine.UI.ClassicLabel label3; diff --git a/Histacom2/OS/Win98/Win98Apps/WebChat1999.Designer.cs b/Histacom2/OS/Win98/Win98Apps/WebChat1999.Designer.cs index cdc1f49..3f825fe 100644 --- a/Histacom2/OS/Win98/Win98Apps/WebChat1999.Designer.cs +++ b/Histacom2/OS/Win98/Win98Apps/WebChat1999.Designer.cs @@ -28,6 +28,7 @@ /// private void InitializeComponent() { + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(WebChat1999)); this.button2 = new Histacom2.Engine.UI.ClassicButton(); this.label7 = new Histacom2.Engine.UI.ClassicLabel(); this.typechat = new System.Windows.Forms.TextBox(); @@ -38,7 +39,16 @@ this.history = new System.Windows.Forms.TextBox(); this.label1 = new Histacom2.Engine.UI.ClassicLabel(); this.listBox1 = new System.Windows.Forms.ListBox(); + this.login = new System.Windows.Forms.Panel(); + this.label2 = new Histacom2.Engine.UI.ClassicLabel(); + this.txtscreenname = new System.Windows.Forms.TextBox(); + this.button1 = new Histacom2.Engine.UI.ClassicButton(); + this.label3 = new Histacom2.Engine.UI.ClassicLabel(); + this.label4 = new Histacom2.Engine.UI.ClassicLabel(); + this.textBox1 = new System.Windows.Forms.TextBox(); + this.textBox2 = new Histacom2.Engine.UI.ClassicLabel(); this.panel1.SuspendLayout(); + this.login.SuspendLayout(); this.SuspendLayout(); // // button2 @@ -51,16 +61,16 @@ this.button2.DialogResult = System.Windows.Forms.DialogResult.None; this.button2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.button2.ForeColor = System.Drawing.Color.Black; - this.button2.Location = new System.Drawing.Point(425, 419); + this.button2.Location = new System.Drawing.Point(425, 428); this.button2.Name = "button2"; - this.button2.Size = new System.Drawing.Size(71, 23); + this.button2.Size = new System.Drawing.Size(71, 20); this.button2.TabIndex = 16; this.button2.Text = "Speak"; // // label7 // this.label7.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.label7.Location = new System.Drawing.Point(13, 17); + this.label7.Location = new System.Drawing.Point(13, 12); this.label7.Name = "label7"; this.label7.Size = new System.Drawing.Size(483, 14); this.label7.TabIndex = 15; @@ -71,7 +81,7 @@ // this.typechat.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.typechat.BackColor = System.Drawing.Color.PapayaWhip; - this.typechat.Location = new System.Drawing.Point(13, 419); + this.typechat.Location = new System.Drawing.Point(14, 428); this.typechat.Name = "typechat"; this.typechat.Size = new System.Drawing.Size(405, 20); this.typechat.TabIndex = 14; @@ -95,7 +105,7 @@ this.panel1.Controls.Add(this.button5); this.panel1.Location = new System.Drawing.Point(507, 397); this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(195, 51); + this.panel1.Size = new System.Drawing.Size(198, 51); this.panel1.TabIndex = 12; // // label5 @@ -127,19 +137,19 @@ | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.history.BackColor = System.Drawing.Color.LemonChiffon; - this.history.Location = new System.Drawing.Point(13, 36); + this.history.Location = new System.Drawing.Point(13, 32); this.history.Multiline = true; this.history.Name = "history"; this.history.ReadOnly = true; this.history.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; - this.history.Size = new System.Drawing.Size(483, 377); + this.history.Size = new System.Drawing.Size(483, 390); this.history.TabIndex = 11; // // label1 // this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.label1.Font = new System.Drawing.Font("Calibri", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.label1.Location = new System.Drawing.Point(557, 17); + this.label1.Location = new System.Drawing.Point(561, 14); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(94, 17); this.label1.TabIndex = 10; @@ -151,16 +161,105 @@ | System.Windows.Forms.AnchorStyles.Right))); this.listBox1.BackColor = System.Drawing.Color.PapayaWhip; this.listBox1.FormattingEnabled = true; - this.listBox1.Location = new System.Drawing.Point(507, 36); + this.listBox1.Location = new System.Drawing.Point(510, 32); this.listBox1.Name = "listBox1"; - this.listBox1.Size = new System.Drawing.Size(195, 329); + this.listBox1.Size = new System.Drawing.Size(195, 342); this.listBox1.TabIndex = 9; + // + // login + // + this.login.BackColor = System.Drawing.Color.Moccasin; + this.login.Controls.Add(this.label2); + this.login.Controls.Add(this.txtscreenname); + this.login.Controls.Add(this.button1); + this.login.Controls.Add(this.label3); + this.login.Controls.Add(this.label4); + this.login.Controls.Add(this.textBox1); + this.login.Controls.Add(this.textBox2); + this.login.Location = new System.Drawing.Point(126, 106); + this.login.Name = "login"; + this.login.Size = new System.Drawing.Size(468, 242); + this.login.TabIndex = 17; + // + // label2 + // + this.label2.Location = new System.Drawing.Point(303, 161); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(161, 13); + this.label2.TabIndex = 6; + this.label2.Text = "Please type in a screen name."; + // + // txtscreenname + // + this.txtscreenname.Location = new System.Drawing.Point(306, 181); + this.txtscreenname.Name = "txtscreenname"; + this.txtscreenname.Size = new System.Drawing.Size(151, 20); + this.txtscreenname.TabIndex = 5; + // + // button1 + // + this.button1.AdaptBackColorWithTheme = true; + this.button1.AdaptFontWithTheme = true; + this.button1.AdaptForeColorWithTheme = true; + this.button1.BackColor = System.Drawing.Color.NavajoWhite; + this.button1.DialogResult = System.Windows.Forms.DialogResult.None; + this.button1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); + this.button1.ForeColor = System.Drawing.Color.Black; + this.button1.Location = new System.Drawing.Point(306, 208); + this.button1.Name = "button1"; + this.button1.Size = new System.Drawing.Size(151, 23); + this.button1.TabIndex = 4; + this.button1.Text = "Login"; + // + // label3 + // + this.label3.Font = new System.Drawing.Font("Helvetica CE Narrow", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label3.Location = new System.Drawing.Point(168, 10); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(144, 21); + this.label3.TabIndex = 3; + this.label3.Text = "Welcome to WebChat"; + // + // label4 + // + this.label4.Font = new System.Drawing.Font("Calibri", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label4.Location = new System.Drawing.Point(10, 40); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(100, 16); + this.label4.TabIndex = 2; + this.label4.Text = "Chat Room Rules:"; + // + // textBox1 + // + this.textBox1.BackColor = System.Drawing.Color.White; + this.textBox1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.textBox1.Font = new System.Drawing.Font("Adobe Gothic Std B", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128))); + this.textBox1.Location = new System.Drawing.Point(10, 59); + this.textBox1.Multiline = true; + this.textBox1.Name = "textBox1"; + this.textBox1.ReadOnly = true; + this.textBox1.Size = new System.Drawing.Size(279, 172); + this.textBox1.TabIndex = 1; + this.textBox1.Text = resources.GetString("textBox1.Text"); + this.textBox1.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; + // + // textBox2 + // + this.textBox2.BackColor = System.Drawing.Color.Moccasin; + this.textBox2.Location = new System.Drawing.Point(303, 58); + this.textBox2.Name = "textBox2"; + this.textBox2.Size = new System.Drawing.Size(154, 76); + this.textBox2.TabIndex = 0; + this.textBox2.Text = "A screen name is a temporary name which will be displayed in place of your real n" + + "ame. To keep your identity safe, please do not enter your real name in this chat" + + "room."; // // WebChat1999 // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.BackColor = System.Drawing.Color.Silver; + this.Controls.Add(this.login); this.Controls.Add(this.button2); this.Controls.Add(this.label7); this.Controls.Add(this.typechat); @@ -172,6 +271,8 @@ this.Name = "WebChat1999"; this.Size = new System.Drawing.Size(724, 462); this.panel1.ResumeLayout(false); + this.login.ResumeLayout(false); + this.login.PerformLayout(); this.ResumeLayout(false); this.PerformLayout(); @@ -189,5 +290,13 @@ private System.Windows.Forms.TextBox history; private Engine.UI.ClassicLabel label1; private System.Windows.Forms.ListBox listBox1; + private System.Windows.Forms.Panel login; + private Engine.UI.ClassicLabel label2; + private System.Windows.Forms.TextBox txtscreenname; + private Engine.UI.ClassicButton button1; + private Engine.UI.ClassicLabel label3; + private Engine.UI.ClassicLabel label4; + private System.Windows.Forms.TextBox textBox1; + private Engine.UI.ClassicLabel textBox2; } } diff --git a/Histacom2/OS/Win98/Win98Apps/WebChat1999.resx b/Histacom2/OS/Win98/Win98Apps/WebChat1999.resx index 1af7de1..87bbfca 100644 --- a/Histacom2/OS/Win98/Win98Apps/WebChat1999.resx +++ b/Histacom2/OS/Win98/Win98Apps/WebChat1999.resx @@ -117,4 +117,14 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + If you do not agree to the following rules below DO NOT log into the chat: + +No Bullying +No Swearing +No Hacking +No Illegal Files/ Piracy + +Failure to follow these rules will result in serious irreversible consequences. + \ No newline at end of file -- cgit v1.2.3 From 7ce95f837d4318397e6749250e53fe7a85fe8f77 Mon Sep 17 00:00:00 2001 From: lempamo Date: Sun, 15 Oct 2017 11:40:01 -0400 Subject: hack3 made --- Histacom2.Engine/Histacom2.Engine.csproj | 3 +++ Histacom2.Engine/UI/ClassicLabel.cs | 2 +- Histacom2/Histacom2.csproj | 2 +- Histacom2/OS/Win95/Win95Apps/WebChat1998.Designer.cs | 2 +- Histacom2/OS/Win98/Win98.Designer.cs | 1 + Histacom2/OS/Win98/Win98.cs | 10 +++++++--- Histacom2/OS/Win98/Win98Apps/Story/Hack3.cs | 19 +++++++++++++++++++ .../Win98Apps/WinClassicTimeDistorter2.Designer.cs | 9 +++++++++ .../OS/Win98/Win98Apps/WinClassicTimeDistorter2.cs | 15 +++++++++++++++ .../OS/Win98/Win98Apps/WinClassicTimeDistorter2.resx | 3 +++ 10 files changed, 60 insertions(+), 6 deletions(-) create mode 100644 Histacom2/OS/Win98/Win98Apps/Story/Hack3.cs (limited to 'Histacom2/OS/Win95/Win95Apps/WebChat1998.Designer.cs') diff --git a/Histacom2.Engine/Histacom2.Engine.csproj b/Histacom2.Engine/Histacom2.Engine.csproj index 889c071..ec3fad8 100644 --- a/Histacom2.Engine/Histacom2.Engine.csproj +++ b/Histacom2.Engine/Histacom2.Engine.csproj @@ -138,6 +138,9 @@ WinXP.cs + + ClassicLabel.cs + diff --git a/Histacom2.Engine/UI/ClassicLabel.cs b/Histacom2.Engine/UI/ClassicLabel.cs index f207eb1..c7007bd 100644 --- a/Histacom2.Engine/UI/ClassicLabel.cs +++ b/Histacom2.Engine/UI/ClassicLabel.cs @@ -14,7 +14,7 @@ namespace Histacom2.Engine.UI { public ClassicLabel() { - + TextChanged += (s, e) => Invalidate(); } protected override void OnPaint(PaintEventArgs e) diff --git a/Histacom2/Histacom2.csproj b/Histacom2/Histacom2.csproj index da772b6..b47b4ff 100644 --- a/Histacom2/Histacom2.csproj +++ b/Histacom2/Histacom2.csproj @@ -322,6 +322,7 @@ IENoPage.cs + UserControl @@ -868,7 +869,6 @@ - diff --git a/Histacom2/OS/Win95/Win95Apps/WebChat1998.Designer.cs b/Histacom2/OS/Win95/Win95Apps/WebChat1998.Designer.cs index 05e6add..314bf7b 100644 --- a/Histacom2/OS/Win95/Win95Apps/WebChat1998.Designer.cs +++ b/Histacom2/OS/Win95/Win95Apps/WebChat1998.Designer.cs @@ -29,7 +29,7 @@ private void InitializeComponent() { this.components = new System.ComponentModel.Container(); - System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(WebChat1998)); + this.resources = new System.ComponentModel.ComponentResourceManager(typeof(WebChat1998)); this.Chat = new System.Windows.Forms.Timer(this.components); this.listBox1 = new System.Windows.Forms.ListBox(); this.label1 = new Histacom2.Engine.UI.ClassicLabel(); diff --git a/Histacom2/OS/Win98/Win98.Designer.cs b/Histacom2/OS/Win98/Win98.Designer.cs index e2cf49c..30b31bb 100644 --- a/Histacom2/OS/Win98/Win98.Designer.cs +++ b/Histacom2/OS/Win98/Win98.Designer.cs @@ -704,6 +704,7 @@ namespace Histacom2.OS.Win98 this.TimeDistorterToolStripMenuItem.Size = new System.Drawing.Size(181, 28); this.TimeDistorterToolStripMenuItem.Text = "Time Distorter"; this.TimeDistorterToolStripMenuItem.Visible = false; + this.TimeDistorterToolStripMenuItem.Click += new System.EventHandler(TimeDistorterToolStripMenuItem_Click); // // DocumentsToolStripMenuItem // diff --git a/Histacom2/OS/Win98/Win98.cs b/Histacom2/OS/Win98/Win98.cs index 3365def..3795c8b 100644 --- a/Histacom2/OS/Win98/Win98.cs +++ b/Histacom2/OS/Win98/Win98.cs @@ -21,7 +21,7 @@ namespace Histacom2.OS.Win98 public WindowManager wm = new WindowManager(); public List nonimportantapps = new List(); - public WinClassic webchat; + public WebChat1999 webchat; public WinClassic ie; public TaskBarController tb = new TaskBarController(); @@ -331,13 +331,16 @@ namespace Histacom2.OS.Win98 } private void WebChatToolStripMenuItem_Click(object sender, EventArgs e) { - WebChat1999 wc = new WebChat1999(); - WinClassic app = wm.Init(wc, "Web Chat 1999", null, true, true); + if (webchat != null) return; + webchat = new WebChat1999(); + WinClassic app = wm.Init(webchat, "Web Chat 1999", null, true, true); AddTaskBarItem(app, app.Tag.ToString(), "Web Chat 1999", null); app.BringToFront(); startmenu.Hide(); + + app.FormClosing += (s, fe) => webchat = null; } public void NonImportantApp_Closing(object sender, FormClosingEventArgs e) { @@ -456,6 +459,7 @@ namespace Histacom2.OS.Win98 private void TimeDistorterToolStripMenuItem_Click(object sender, EventArgs e) { + if (distort != null) return; distort = new WinClassicTimeDistorter2(); WinClassic app = wm.Init(distort, "Time Distorter", null, false, false, false); AddTaskBarItem(app, app.Tag.ToString(), "Time Distorter", null); diff --git a/Histacom2/OS/Win98/Win98Apps/Story/Hack3.cs b/Histacom2/OS/Win98/Win98Apps/Story/Hack3.cs new file mode 100644 index 0000000..9758a7e --- /dev/null +++ b/Histacom2/OS/Win98/Win98Apps/Story/Hack3.cs @@ -0,0 +1,19 @@ +using Histacom2.Engine; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Histacom2.OS.Win98.Win98Apps.Story +{ + public class Hack3 : object + { + static WindowManager wm = new WindowManager(); + + public static async void StartObjective() + { + + } + } +} diff --git a/Histacom2/OS/Win98/Win98Apps/WinClassicTimeDistorter2.Designer.cs b/Histacom2/OS/Win98/Win98Apps/WinClassicTimeDistorter2.Designer.cs index 1b32d32..57ce08a 100644 --- a/Histacom2/OS/Win98/Win98Apps/WinClassicTimeDistorter2.Designer.cs +++ b/Histacom2/OS/Win98/Win98Apps/WinClassicTimeDistorter2.Designer.cs @@ -28,11 +28,13 @@ /// private void InitializeComponent() { + this.components = new System.ComponentModel.Container(); this.classicButton1 = new Histacom2.Engine.UI.ClassicButton(); this.classicLabel1 = new Histacom2.Engine.UI.ClassicLabel(); this.classicLabel2 = new Histacom2.Engine.UI.ClassicLabel(); this.classicLabel3 = new Histacom2.Engine.UI.ClassicLabel(); this.classicLabel4 = new Histacom2.Engine.UI.ClassicLabel(); + this.timer1 = new System.Windows.Forms.Timer(this.components); this.SuspendLayout(); // // classicButton1 @@ -50,6 +52,7 @@ this.classicButton1.Size = new System.Drawing.Size(276, 23); this.classicButton1.TabIndex = 0; this.classicButton1.Text = "Take me to 2000!"; + this.classicButton1.Click += new System.EventHandler(this.classicButton1_Click); // // classicLabel1 // @@ -90,6 +93,11 @@ this.classicLabel4.Text = "Preparing to travel. ETA: N/A secs."; this.classicLabel4.Visible = false; // + // timer1 + // + this.timer1.Interval = 1000; + this.timer1.Tick += new System.EventHandler(this.timer1_Tick); + // // WinClassicTimeDistorter2 // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); @@ -113,5 +121,6 @@ private Engine.UI.ClassicLabel classicLabel2; private Engine.UI.ClassicLabel classicLabel3; private Engine.UI.ClassicLabel classicLabel4; + private System.Windows.Forms.Timer timer1; } } diff --git a/Histacom2/OS/Win98/Win98Apps/WinClassicTimeDistorter2.cs b/Histacom2/OS/Win98/Win98Apps/WinClassicTimeDistorter2.cs index 62c055b..764a615 100644 --- a/Histacom2/OS/Win98/Win98Apps/WinClassicTimeDistorter2.cs +++ b/Histacom2/OS/Win98/Win98Apps/WinClassicTimeDistorter2.cs @@ -12,9 +12,24 @@ namespace Histacom2.OS.Win98.Win98Apps { public partial class WinClassicTimeDistorter2 : UserControl { + public int secsLeft = 180; + public WinClassicTimeDistorter2() { InitializeComponent(); } + + private void classicButton1_Click(object sender, EventArgs e) + { + classicButton1.Hide(); + classicLabel4.Show(); + classicLabel4.Text = "Preparing to travel. ETA: 180 secs."; + timer1.Start(); + } + + private void timer1_Tick(object sender, EventArgs e) + { + classicLabel4.Text = $"Preparing to travel. ETA: {secsLeft--} secs."; + } } } diff --git a/Histacom2/OS/Win98/Win98Apps/WinClassicTimeDistorter2.resx b/Histacom2/OS/Win98/Win98Apps/WinClassicTimeDistorter2.resx index 1af7de1..1f666f2 100644 --- a/Histacom2/OS/Win98/Win98Apps/WinClassicTimeDistorter2.resx +++ b/Histacom2/OS/Win98/Win98Apps/WinClassicTimeDistorter2.resx @@ -117,4 +117,7 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + 17, 17 + \ No newline at end of file -- cgit v1.2.3