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 --- Histacom2/OS/Win98/Win98Apps/WebChat1999.resx | 120 ++++++++++++++++++++++++++ 1 file changed, 120 insertions(+) create mode 100644 Histacom2/OS/Win98/Win98Apps/WebChat1999.resx (limited to 'Histacom2/OS/Win98/Win98Apps/WebChat1999.resx') diff --git a/Histacom2/OS/Win98/Win98Apps/WebChat1999.resx b/Histacom2/OS/Win98/Win98Apps/WebChat1999.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/Histacom2/OS/Win98/Win98Apps/WebChat1999.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 -- 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/Win98/Win98Apps/WebChat1999.resx') 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 13db16e701ea7b9d4090903b11c7715089a10a0b Mon Sep 17 00:00:00 2001 From: lempamo Date: Tue, 3 Oct 2017 21:08:00 -0400 Subject: start of webchat1999 script --- Histacom2/OS/Win98/Win98.cs | 16 +--- .../OS/Win98/Win98Apps/WebChat1999.Designer.cs | 3 + Histacom2/OS/Win98/Win98Apps/WebChat1999.cs | 91 ++++++++++++++++++++++ Histacom2/OS/Win98/Win98Apps/WebChat1999.resx | 3 +- 4 files changed, 100 insertions(+), 13 deletions(-) (limited to 'Histacom2/OS/Win98/Win98Apps/WebChat1999.resx') diff --git a/Histacom2/OS/Win98/Win98.cs b/Histacom2/OS/Win98/Win98.cs index 32b7aca..351456d 100644 --- a/Histacom2/OS/Win98/Win98.cs +++ b/Histacom2/OS/Win98/Win98.cs @@ -303,11 +303,9 @@ namespace Histacom2.OS.Win98 else { // It is an actual file on the disk - WinClassicWindowsExplorer we = new WinClassicWindowsExplorer(); // If it is a directory - if (Directory.Exists(objListViewItem.Tag.ToString())) { we.CurrentDirectory = objListViewItem.Tag.ToString(); @@ -317,13 +315,7 @@ namespace Histacom2.OS.Win98 app.BringToFront(); startmenu.Hide(); } - else - { - // Just open the file... - - we.OpenFile(objListViewItem.Tag.ToString()); - } - + else we.OpenFile(objListViewItem.Tag.ToString()); // Just open the file... } } } @@ -338,10 +330,10 @@ namespace Histacom2.OS.Win98 } private void WebChatToolStripMenuItem_Click(object sender, EventArgs e) { - WebChat1998 wc = new WebChat1998(); - WinClassic app = wm.Init(wc, "Web Chat 1998", null, true, true); + WebChat1999 wc = new WebChat1999(); + WinClassic app = wm.Init(wc, "Web Chat 1999", null, true, true); - AddTaskBarItem(app, app.Tag.ToString(), "Web Chat 1998", null); + AddTaskBarItem(app, app.Tag.ToString(), "Web Chat 1999", null); app.BringToFront(); startmenu.Hide(); diff --git a/Histacom2/OS/Win98/Win98Apps/WebChat1999.Designer.cs b/Histacom2/OS/Win98/Win98Apps/WebChat1999.Designer.cs index 3f825fe..5c47344 100644 --- a/Histacom2/OS/Win98/Win98Apps/WebChat1999.Designer.cs +++ b/Histacom2/OS/Win98/Win98Apps/WebChat1999.Designer.cs @@ -66,6 +66,7 @@ this.button2.Size = new System.Drawing.Size(71, 20); this.button2.TabIndex = 16; this.button2.Text = "Speak"; + this.button2.Click += new System.EventHandler(this.button2_Click); // // label7 // @@ -210,6 +211,7 @@ this.button1.Size = new System.Drawing.Size(151, 23); this.button1.TabIndex = 4; this.button1.Text = "Login"; + this.button1.Click += new System.EventHandler(this.button1_Click); // // label3 // @@ -270,6 +272,7 @@ this.Controls.Add(this.listBox1); this.Name = "WebChat1999"; this.Size = new System.Drawing.Size(724, 462); + this.Load += new System.EventHandler(this.WebChat1999_Load); this.panel1.ResumeLayout(false); this.login.ResumeLayout(false); this.login.PerformLayout(); diff --git a/Histacom2/OS/Win98/Win98Apps/WebChat1999.cs b/Histacom2/OS/Win98/Win98Apps/WebChat1999.cs index 25c4298..120618f 100644 --- a/Histacom2/OS/Win98/Win98Apps/WebChat1999.cs +++ b/Histacom2/OS/Win98/Win98Apps/WebChat1999.cs @@ -7,14 +7,105 @@ using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; +using System.Media; +using Histacom2.Engine; +using Histacom2.Engine.Template; namespace Histacom2.OS.Win98.Win98Apps { public partial class WebChat1999 : UserControl { + WindowManager wm = new WindowManager(); + + SoundPlayer join = new SoundPlayer(Properties.Resources.AIMbuddyjoin); + SoundPlayer leave = new SoundPlayer(Properties.Resources.AIMbuddyleave); + SoundPlayer send = new SoundPlayer(Properties.Resources.AIMmessagesent); + SoundPlayer receive = new SoundPlayer(Properties.Resources.AIMmessagereceived); + SoundPlayer file = new SoundPlayer(Properties.Resources.AIMfile); + + int chatStage = 0; + public WebChat1999() { InitializeComponent(); } + + private void WebChat1999_Load(object sender, EventArgs e) + { + button5.Hide(); + label5.Hide(); + } + + private void button1_Click(object sender, EventArgs e) + { + if (txtscreenname.Text == "") { wm.StartInfobox95("Invalid Username", "Your username cannot be blank.", InfoboxType.Warning, InfoboxButtons.OK); return; } + if (txtscreenname.Text.Length > 12) { wm.StartInfobox95("Invalid Username", "Your username needs to be less than 12 characters.", InfoboxType.Warning, InfoboxButtons.OK); return; } + if (txtscreenname.Text.Contains(" ")) { wm.StartInfobox95("Invalid Username", "Your username cannot contain spaces.", InfoboxType.Warning, InfoboxButtons.OK); return; } + if (txtscreenname.Text == "SkyHigh" | txtscreenname.Text == "rain49" | txtscreenname.Text == "12padams") { wm.StartInfobox95("Invalid Username", "That username is already taken.", InfoboxType.Warning, InfoboxButtons.OK); return; } + ParentForm.AcceptButton = button2; + TitleScreen.username = txtscreenname.Text; + login.Hide(); + listBox1.Items.Add(TitleScreen.username); + listBox1.Items.Add("ThatDude"); + history.AppendText("System: " + TitleScreen.username + " has joined the chat." + Environment.NewLine); join.Play(); + chatScript1(); + } + + private async void chatScript1() + { + await Task.Delay(2000); + history.AppendText("ThatDude: oh hello!" + Environment.NewLine); receive.Play(); + await Task.Delay(5500); + history.AppendText("ThatDude: just wondering, are you that guy who travelled thru time with nothing but a computer?" + Environment.NewLine); receive.Play(); + await Task.Delay(250); + chatStage = 1; + await Task.Delay(7000); + if (chatStage == 1) { chatStage = 4; chatScript2(); } + } + + private async void chatScript2() + { + if (chatStage == 2) + { + await Task.Delay(3000); + history.AppendText("ThatDude: omg really??" + Environment.NewLine); receive.Play(); + await Task.Delay(4000); + history.AppendText("ThatDude: hold on, let me check your ip to make sure" + Environment.NewLine); receive.Play(); + } + else if (chatStage == 3) + { + await Task.Delay(2800); + history.AppendText("ThatDude: oh.." + Environment.NewLine); receive.Play(); + await Task.Delay(5500); + history.AppendText("ThatDude: lemme just check your ip quick to find out who ya are tho" + Environment.NewLine); receive.Play(); + } + else + { + await Task.Delay(3300); + history.AppendText("ThatDude: hold on, let me just check your ip real quick" + Environment.NewLine); receive.Play(); + } + await Task.Delay(5000); + history.AppendText("ThatDude: YES! ITS YOU!" + Environment.NewLine); receive.Play(); + await Task.Delay(3500); + history.AppendText("ThatDude: hey just wait a sec here" + Environment.NewLine); receive.Play(); + } + + private void button2_Click(object sender, EventArgs e) + { + string msg = typechat.Text; + if (typechat.Text != "") history.AppendText(TitleScreen.username + ": " + typechat.Text + Environment.NewLine); + typechat.Text = ""; send.Play(); + + switch (chatStage) + { + case 1: // td asks are you the time distorter guy + if (msg.Contains("yes") | msg.Contains("yea") | msg.Contains("yep") | msg.Contains("thats me") | msg.Contains("that's me")) chatStage = 2; + else if (msg.Contains("no") | msg.Contains("nope") | msg.Contains("not")) chatStage = 3; + else chatStage = 4; + + chatScript2(); + break; + } + } } } diff --git a/Histacom2/OS/Win98/Win98Apps/WebChat1999.resx b/Histacom2/OS/Win98/Win98Apps/WebChat1999.resx index 87bbfca..813f7c9 100644 --- a/Histacom2/OS/Win98/Win98Apps/WebChat1999.resx +++ b/Histacom2/OS/Win98/Win98Apps/WebChat1999.resx @@ -118,7 +118,8 @@ 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: + +If you do not agree to the following rules below DO NOT log into the chat: No Bullying No Swearing -- cgit v1.2.3