aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex-TIMEHACK <[email protected]>2017-07-21 18:11:57 +0100
committerAlex-TIMEHACK <[email protected]>2017-07-21 18:11:57 +0100
commit691ee07670cc1255004e33761b188c4944ca936d (patch)
treebd9f625b3a8c621cc9d1b812d8a5551b4cd03466
parent10dce4105839265a835ecd99b656616a2335e314 (diff)
parentbfaf46cf144a73ec984e7c85cd2cc3acd2c9719c (diff)
downloadhistacom2-691ee07670cc1255004e33761b188c4944ca936d.tar.gz
histacom2-691ee07670cc1255004e33761b188c4944ca936d.tar.bz2
histacom2-691ee07670cc1255004e33761b188c4944ca936d.zip
Updated my Fork PART 3
# Conflicts: # TimeHACK.Main/OS/Win95/Win95Apps/WebChat1998.cs
-rw-r--r--CONTRIBUTING.md13
-rw-r--r--TimeHACK.Main/OS/Win95/Win95Apps/WebChat1998.Designer.cs120
-rw-r--r--TimeHACK.Main/OS/Win95/Win95Apps/WebChat1998.cs472
-rw-r--r--TimeHACK.Main/OS/Win95/Win95Apps/WebChat1998.resx165
4 files changed, 495 insertions, 275 deletions
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
new file mode 100644
index 0000000..b8c2dce
--- /dev/null
+++ b/CONTRIBUTING.md
@@ -0,0 +1,13 @@
+# Coding Regulations
+
+If you want to contribute, you need to follow these coding regulations for your code to be considered.
+
+## Type names
+
+Please, do not use C# type names.
+In other words, use `string` instead of `String`,
+use `bool` rather than `Boolean`, etc.
+
+## camelCase
+
+When you define something private or local, name it using camelCase. However, if it is public, use PascalCase.
diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/WebChat1998.Designer.cs b/TimeHACK.Main/OS/Win95/Win95Apps/WebChat1998.Designer.cs
index 4dd7a59..bcd6b07 100644
--- a/TimeHACK.Main/OS/Win95/Win95Apps/WebChat1998.Designer.cs
+++ b/TimeHACK.Main/OS/Win95/Win95Apps/WebChat1998.Designer.cs
@@ -40,13 +40,13 @@
this.label6 = new System.Windows.Forms.Label();
this.typechat = new System.Windows.Forms.TextBox();
this.login = new System.Windows.Forms.Panel();
+ this.label2 = new System.Windows.Forms.Label();
+ this.txtscreenname = new System.Windows.Forms.TextBox();
+ this.button1 = new System.Windows.Forms.Button();
+ this.label3 = new System.Windows.Forms.Label();
+ this.label4 = new System.Windows.Forms.Label();
this.textBox1 = new System.Windows.Forms.TextBox();
this.textBox2 = new System.Windows.Forms.TextBox();
- this.label4 = new System.Windows.Forms.Label();
- this.label3 = new System.Windows.Forms.Label();
- this.button1 = new System.Windows.Forms.Button();
- this.txtscreenname = new System.Windows.Forms.TextBox();
- this.label2 = new System.Windows.Forms.Label();
this.label7 = new System.Windows.Forms.Label();
this.button2 = new System.Windows.Forms.Button();
this.button3 = new System.Windows.Forms.Button();
@@ -62,6 +62,8 @@
//
// listBox1
//
+ this.listBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Right)));
this.listBox1.FormattingEnabled = true;
this.listBox1.Location = new System.Drawing.Point(504, 32);
this.listBox1.Name = "listBox1";
@@ -80,17 +82,21 @@
//
// history
//
+ this.history.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
this.history.BackColor = System.Drawing.Color.White;
this.history.Location = new System.Drawing.Point(22, 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(471, 377);
this.history.TabIndex = 2;
- this.history.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
//
// panel1
//
+ this.panel1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel1.Controls.Add(this.label5);
this.panel1.Controls.Add(this.button5);
@@ -104,7 +110,7 @@
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(13, 18);
this.label5.Name = "label5";
- this.label5.Size = new System.Drawing.Size(68, 13);
+ this.label5.Size = new System.Drawing.Size(84, 13);
this.label5.TabIndex = 1;
this.label5.Text = "skin95setup.exe";
//
@@ -119,6 +125,7 @@
//
// label6
//
+ this.label6.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.label6.AutoSize = true;
this.label6.Location = new System.Drawing.Point(504, 374);
this.label6.Name = "label6";
@@ -128,6 +135,7 @@
//
// typechat
//
+ this.typechat.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.typechat.Location = new System.Drawing.Point(20, 415);
this.typechat.Name = "typechat";
this.typechat.Size = new System.Drawing.Size(395, 20);
@@ -147,6 +155,52 @@
this.login.Size = new System.Drawing.Size(497, 251);
this.login.TabIndex = 6;
//
+ // label2
+ //
+ this.label2.AutoSize = true;
+ this.label2.Location = new System.Drawing.Point(328, 161);
+ this.label2.Name = "label2";
+ this.label2.Size = new System.Drawing.Size(149, 13);
+ this.label2.TabIndex = 6;
+ this.label2.Text = "Please type in a screen name.";
+ //
+ // txtscreenname
+ //
+ this.txtscreenname.Location = new System.Drawing.Point(331, 181);
+ this.txtscreenname.Name = "txtscreenname";
+ this.txtscreenname.Size = new System.Drawing.Size(151, 20);
+ this.txtscreenname.TabIndex = 5;
+ //
+ // button1
+ //
+ this.button1.BackColor = System.Drawing.Color.Silver;
+ this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
+ this.button1.Location = new System.Drawing.Point(331, 208);
+ this.button1.Name = "button1";
+ this.button1.Size = new System.Drawing.Size(151, 23);
+ this.button1.TabIndex = 4;
+ this.button1.Text = "Login";
+ this.button1.UseVisualStyleBackColor = true;
+ this.button1.Click += new System.EventHandler(this.Button1_Click);
+ //
+ // label3
+ //
+ this.label3.AutoSize = true;
+ this.label3.Location = new System.Drawing.Point(196, 16);
+ this.label3.Name = "label3";
+ this.label3.Size = new System.Drawing.Size(112, 13);
+ this.label3.TabIndex = 3;
+ this.label3.Text = "Welcome to WebChat";
+ //
+ // label4
+ //
+ this.label4.AutoSize = true;
+ this.label4.Location = new System.Drawing.Point(118, 56);
+ this.label4.Name = "label4";
+ this.label4.Size = new System.Drawing.Size(93, 13);
+ this.label4.TabIndex = 2;
+ this.label4.Text = "Chat Room Rules:";
+ //
// textBox1
//
this.textBox1.BackColor = System.Drawing.Color.Silver;
@@ -173,52 +227,6 @@
"ame. To keep your identity safe, please do not enter your real name in this chat" +
"room.";
//
- // label4
- //
- this.label4.AutoSize = true;
- this.label4.Location = new System.Drawing.Point(118, 56);
- this.label4.Name = "label4";
- this.label4.Size = new System.Drawing.Size(93, 13);
- this.label4.TabIndex = 2;
- this.label4.Text = "Chat Room Rules:";
- //
- // label3
- //
- this.label3.AutoSize = true;
- this.label3.Location = new System.Drawing.Point(196, 16);
- this.label3.Name = "label3";
- this.label3.Size = new System.Drawing.Size(112, 13);
- this.label3.TabIndex = 3;
- this.label3.Text = "Welcome to WebChat";
- //
- // button1
- //
- this.button1.BackColor = System.Drawing.Color.Silver;
- this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
- this.button1.Location = new System.Drawing.Point(331, 208);
- this.button1.Name = "button1";
- this.button1.Size = new System.Drawing.Size(151, 23);
- this.button1.TabIndex = 4;
- this.button1.Text = "Login";
- this.button1.UseVisualStyleBackColor = true;
- this.button1.Click += new System.EventHandler(this.Button1_Click);
- //
- // txtscreenname
- //
- this.txtscreenname.Location = new System.Drawing.Point(331, 181);
- this.txtscreenname.Name = "txtscreenname";
- this.txtscreenname.Size = new System.Drawing.Size(151, 20);
- this.txtscreenname.TabIndex = 5;
- //
- // label2
- //
- this.label2.AutoSize = true;
- this.label2.Location = new System.Drawing.Point(328, 161);
- this.label2.Name = "label2";
- this.label2.Size = new System.Drawing.Size(149, 13);
- this.label2.TabIndex = 6;
- this.label2.Text = "Please type in a screen name.";
- //
// label7
//
this.label7.AutoSize = true;
@@ -229,12 +237,14 @@
this.label7.Text = "To speak, just type in the bottom textbox, then click the Speak button or press E" +
"nter.";
//
- // cancelButton
+ // button2
//
+ this.button2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
this.button2.BackColor = System.Drawing.Color.Silver;
this.button2.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.button2.Location = new System.Drawing.Point(422, 415);
- this.button2.Name = "cancelButton";
+ this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(71, 23);
this.button2.TabIndex = 8;
this.button2.Text = "Speak";
diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/WebChat1998.cs b/TimeHACK.Main/OS/Win95/Win95Apps/WebChat1998.cs
index bcdc0e9..15dcaad 100644
--- a/TimeHACK.Main/OS/Win95/Win95Apps/WebChat1998.cs
+++ b/TimeHACK.Main/OS/Win95/Win95Apps/WebChat1998.cs
@@ -1,218 +1,254 @@
-using System;
-using System.Collections.Generic;
-using System.ComponentModel;
-using System.Drawing;
-using System.Data;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using System.Windows.Forms;
-using TimeHACK.Engine;
-using System.Threading;
-using System.Media;
-using System.IO;
-using TimeHACK.Engine.Template;
-
-namespace TimeHACK.OS.Win95.Win95Apps
-{
- public partial class WebChat1998 : UserControl
- {
- int chat_index = 0;
- WindowManager wm = new WindowManager();
- MessageParser wcmp = new MessageParser();
- bool correctname = false;
- bool guessing = false;
-
- bool wimponclose = false;
-
- 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);
-
- 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);
- }
- private void WebChat1998_Load(object sender, EventArgs e)
- {
- button5.Hide();
- button4.Hide();
- button3.Hide();
- label5.Hide();
- }
- private void Button1_Click(object sender, EventArgs e)
- {
- if (txtscreenname.Text == "") { wm.StartInfobox95("Invalid Username", "Your username cannot be blank.", Properties.Resources.Win95Warning); return; }
- if (txtscreenname.Text.Length > 12) { wm.StartInfobox95("Invalid Username", "Your username needs to be less than 12 characters.", Properties.Resources.Win95Warning); return; }
- if (txtscreenname.Text.Contains(" ")) { wm.StartInfobox95("Invalid Username", "Your username cannot contain spaces.", Properties.Resources.Win95Warning); return; }
- if (txtscreenname.Text == "SkyHigh" | txtscreenname.Text == "rain49" | txtscreenname.Text == "12padams") { wm.StartInfobox95("Invalid Username", "That username is already taken.", Properties.Resources.Win95Warning); return; }
- ParentForm.AcceptButton = button2;
- TitleScreen.username = txtscreenname.Text;
- login.Hide();
- listBox1.Items.Add(TitleScreen.username);
- history.AppendText("System: " + TitleScreen.username + " has joined the chat." + Environment.NewLine);
- join.Play();
- Chat.Start();
- }
-
- private void Chat_Tick(object sender, EventArgs e)
- {
- if (!guessing)
- {
- history.AppendText(wcmp.ParseMessage(resources.GetString("convo"), chat_index, TitleScreen.username));
- switch (wcmp.GetSpecial(resources.GetString("convo"), chat_index))
- {
- case "addsh":
- listBox1.Items.Add("SkyHigh");
- join.Play();
- this.ParentForm.FormClosing += WebChatClosing;
- wimponclose = true;
- break;
- case "nameguess":
- typechat.Hide();
- button2.Hide();
- button3.Show();
- button4.Show();
- Chat.Stop();
- guessing = true;
- receive.Play();
- break;
- case "addrain":
- listBox1.Items.Add("rain49");
- join.Play();
- break;
- case "addfile":
- label5.Show();
- button5.Show();
- file.Play();
- break;
- case "addpadams":
- listBox1.Items.Add("12padams");
- join.Play();
- ((WinClassic)this.ParentForm).closeDisabled = true;
- TitleScreen.frm95.startbutton.Enabled = false;
- TitleScreen.frm95.startmenu.Hide();
- break;
- case "nostart":
- TitleScreen.frm95.startbutton.Hide();
- TitleScreen.frm95.startmenu.Hide();
- receive.Play();
- break;
- case "removerain":
- listBox1.Items.Remove("rain49");
- leave.Play();
- break;
- case "iconsded":
- TitleScreen.frm95.desktopicons.Enabled = false;
- receive.Play();
- break;
- case "taskbarded":
- TitleScreen.frm95.taskbar.Hide();
- receive.Play();
- break;
- case "iconsgone":
- TitleScreen.frm95.desktopicons.Hide();
- receive.Play();
- break;
- case "bigtext":
- history.Font = new Font("Arial", 12F, FontStyle.Regular, GraphicsUnit.Point, ((0)));
- ((WinClassic)this.ParentForm).maximizebutton.Enabled = false;
- ((WinClassic)this.ParentForm).WindowState = FormWindowState.Maximized;
- receive.Play();
- break;
- case "notopbar":
- ((WinClassic)this.ParentForm).programtopbar = null;
- receive.Play();
- break; // TODO: Finish WebChat 1998
- case "filepoof":
- label5.Hide();
- button5.Hide();
- receive.Play();
- break;
- case "removesky":
- listBox1.Items.Remove("SkyHigh");
- leave.Play();
- break;
- case ".labelgone":
- label1.Hide();
- label6.Hide();
- label7.Hide();
- break;
- default:
- receive.Play();
- break;
- }
- if (TitleScreen.username == "devspeed") Chat.Interval = wcmp.GetMessageDelay(resources.GetString("convo"), chat_index) / 2;
- else Chat.Interval = wcmp.GetMessageDelay(resources.GetString("convo"), chat_index);
- }
- else
- {
- if (correctname)
- {
- history.AppendText("SkyHigh: yay you got it right!" + Environment.NewLine);
- }
- else
- {
- history.AppendText("SkyHigh: sorry, my name is actually bill" + Environment.NewLine);
- }
- guessing = false;
- receive.Play();
- Chat.Interval = wcmp.GetMessageDelay(resources.GetString("convo"), chat_index);
- }
- chat_index++;
- }
-
- private void WebChatClosing(object sender, FormClosingEventArgs e)
- {
- if (wimponclose)
- {
- bsod.FormClosing += new FormClosingEventHandler(Program.title.BSODRewind);
- bsod.Show();
- bsod.BringToFront();
- bsod2.Close();
- }
- }
-
- private void Button2_Click(object sender, EventArgs e)
- {
- if (typechat.Text != "") history.AppendText(TitleScreen.username + ": " + typechat.Text + Environment.NewLine);
- typechat.Text = "";
- send.Play();
- }
-
- private void Button3_Click(object sender, EventArgs e)
- {
- correctname = false;
- button2.Show();
- button3.Hide();
- button4.Hide();
- typechat.Show();
- Chat.Start();
- }
-
- private void Button4_Click(object sender, EventArgs e)
- {
- correctname = true;
- button2.Show();
- button3.Hide();
- button4.Hide();
- typechat.Show();
- Chat.Start();
- }
- }
-}
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Drawing;
+using System.Data;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+using TimeHACK.Engine;
+using System.Threading;
+using System.Media;
+using System.IO;
+using TimeHACK.Engine.Template;
+
+namespace TimeHACK.OS.Win95.Win95Apps
+{
+ public partial class WebChat1998 : UserControl
+ {
+ int chat_index = 0;
+ WindowManager wm = new WindowManager();
+ MessageParser wcmp = new MessageParser();
+ bool correctname = false;
+ bool guessing = false;
+ bool msgsound = true;
+
+ bool wimponclose = false;
+
+ 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);
+
+ 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);
+ }
+ private void WebChat1998_Load(object sender, EventArgs e)
+ {
+ button5.Hide();
+ button4.Hide();
+ button3.Hide();
+ label5.Hide();
+ }
+ private void Button1_Click(object sender, EventArgs e)
+ {
+ if (txtscreenname.Text == "") { wm.StartInfobox95("Invalid Username", "Your username cannot be blank.", Properties.Resources.Win95Warning); return; }
+ if (txtscreenname.Text.Length > 12) { wm.StartInfobox95("Invalid Username", "Your username needs to be less than 12 characters.", Properties.Resources.Win95Warning); return; }
+ if (txtscreenname.Text.Contains(" ")) { wm.StartInfobox95("Invalid Username", "Your username cannot contain spaces.", Properties.Resources.Win95Warning); return; }
+ if (txtscreenname.Text == "SkyHigh" | txtscreenname.Text == "rain49" | txtscreenname.Text == "12padams") { wm.StartInfobox95("Invalid Username", "That username is already taken.", Properties.Resources.Win95Warning); return; }
+ ParentForm.AcceptButton = button2;
+ TitleScreen.username = txtscreenname.Text;
+ login.Hide();
+ listBox1.Items.Add(TitleScreen.username);
+ history.AppendText("System: " + TitleScreen.username + " has joined the chat." + Environment.NewLine);
+ join.Play();
+ Chat.Start();
+ }
+
+ private void Chat_Tick(object sender, EventArgs e)
+ {
+ if (!guessing)
+ {
+ if (history.ScrollBars != ScrollBars.None) history.AppendText(wcmp.ParseMessage(resources.GetString("convo"), chat_index, TitleScreen.username));
+ else history.Text = wcmp.ParseMessage(resources.GetString("convo"), chat_index, TitleScreen.username);
+ switch (wcmp.GetSpecial(resources.GetString("convo"), chat_index))
+ {
+ case "addsh":
+ listBox1.Items.Add("SkyHigh");
+ join.Play();
+ this.ParentForm.FormClosing += WebChatClosing;
+ wimponclose = true;
+ break;
+ case "nameguess":
+ typechat.Hide();
+ button2.Hide();
+ button3.Show();
+ button4.Show();
+ Chat.Stop();
+ guessing = true;
+ receive.Play();
+ break;
+ case "addrain":
+ listBox1.Items.Add("rain49");
+ join.Play();
+ break;
+ case "addfile":
+ label5.Show();
+ button5.Show();
+ file.Play();
+ break;
+ case "addpadams":
+ listBox1.Items.Add("12padams");
+ join.Play();
+ ((WinClassic)this.ParentForm).closeDisabled = true;
+ TitleScreen.frm95.startbutton.Enabled = false;
+ TitleScreen.frm95.startmenu.Hide();
+ break;
+ case "nostart":
+ TitleScreen.frm95.startbutton.Hide();
+ TitleScreen.frm95.startmenu.Hide();
+ receive.Play();
+ break;
+ case "removerain":
+ listBox1.Items.Remove("rain49");
+ leave.Play();
+ break;
+ case "iconsded":
+ TitleScreen.frm95.desktopicons.Enabled = false;
+ receive.Play();
+ break;
+ case "taskbarded":
+ TitleScreen.frm95.taskbar.Hide();
+ receive.Play();
+ break;
+ case "iconsgone":
+ TitleScreen.frm95.desktopicons.Hide();
+ receive.Play();
+ break;
+ case "bigtext":
+ history.Font = new Font("Arial", 12F, FontStyle.Regular, GraphicsUnit.Point, ((0)));
+ ((WinClassic)this.ParentForm).maximizebutton.Enabled = false;
+ ((WinClassic)this.ParentForm).WindowState = FormWindowState.Maximized;
+ receive.Play();
+ break;
+ case "notopbar":
+ ((WinClassic)this.ParentForm).programtopbar.Hide();
+ receive.Play();
+ break; // TODO: Finish WebChat 1998
+ case "filepoof":
+ label5.Hide();
+ button5.Hide();
+ receive.Play();
+ break;
+ case "removesky":
+ listBox1.Items.Remove("SkyHigh");
+ leave.Play();
+ break;
+ case "notype":
+ typechat.Hide();
+ button2.Hide();
+ receive.Play();
+ break;
+ case ".labelgone":
+ label1.Hide();
+ label6.Hide();
+ label7.Hide();
+ break;
+ case ".blackout":
+ BackColor = Color.Black;
+ history.BackColor = Color.Black;
+ history.ForeColor = Color.White;
+ break;
+ case "nosound":
+ msgsound = false;
+ break;
+ case ".fulltext":
+ foreach (Control c in ((WinClassic)this.ParentForm).program.Controls)
+ {
+ if (c.Name != "programContent")
+ {
+ c.Hide();
+ ((WinClassic)this.ParentForm).program.Controls.Remove(c);
+ }
+ }
+ ((WinClassic)this.ParentForm).programContent.Location = new Point(0, 0);
+ ((WinClassic)this.ParentForm).programContent.Size = ((WinClassic)this.ParentForm).ClientSize;
+ panel1.Hide();
+ history.Dock = DockStyle.Fill;
+ break;
+ case "noscroll":
+ history.ScrollBars = ScrollBars.None;
+ break;
+ case "nomouse":
+ Cursor.Hide();
+ break;
+ default:
+ if (msgsound) receive.Play();
+ break;
+ }
+ if (TitleScreen.username == "devspeed") Chat.Interval = wcmp.GetMessageDelay(resources.GetString("convo"), chat_index) / 2;
+ else Chat.Interval = wcmp.GetMessageDelay(resources.GetString("convo"), chat_index);
+ }
+ else
+ {
+ if (correctname)
+ {
+ history.AppendText("SkyHigh: yay you got it right!" + Environment.NewLine);
+ }
+ else
+ {
+ history.AppendText("SkyHigh: sorry, my name is actually bill" + Environment.NewLine);
+ }
+ guessing = false;
+ receive.Play();
+ Chat.Interval = wcmp.GetMessageDelay(resources.GetString("convo"), chat_index);
+ }
+ chat_index++;
+ }
+
+ private void WebChatClosing(object sender, FormClosingEventArgs e)
+ {
+ if (wimponclose)
+ {
+ bsod.FormClosing += new FormClosingEventHandler(Program.title.BSODRewind);
+ bsod.Show();
+ bsod.BringToFront();
+ bsod2.Close();
+ }
+ }
+
+ private void Button2_Click(object sender, EventArgs e)
+ {
+ if (typechat.Text != "") history.AppendText(TitleScreen.username + ": " + typechat.Text + Environment.NewLine);
+ typechat.Text = "";
+ if (msgsound) send.Play();
+ }
+
+ private void Button3_Click(object sender, EventArgs e)
+ {
+ correctname = false;
+ button2.Show();
+ button3.Hide();
+ button4.Hide();
+ typechat.Show();
+ Chat.Start();
+ }
+
+ private void Button4_Click(object sender, EventArgs e)
+ {
+ correctname = true;
+ button2.Show();
+ button3.Hide();
+ button4.Hide();
+ typechat.Show();
+ Chat.Start();
+ }
+ }
+}
+>>>>>>> refs/remotes/TimeHACKDevs/master
diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/WebChat1998.resx b/TimeHACK.Main/OS/Win95/Win95Apps/WebChat1998.resx
index 0625787..9c71c8b 100644
--- a/TimeHACK.Main/OS/Win95/Win95Apps/WebChat1998.resx
+++ b/TimeHACK.Main/OS/Win95/Win95Apps/WebChat1998.resx
@@ -931,17 +931,178 @@
},
{
"user": "12padams",
- "delay": 4000,
+ "delay": 3000,
"message": "hmm, this is going to be tricky..",
"special": null,
"userchat": true
},
{
"user": "12padams",
- "delay": 4000,
+ "delay": 3000,
"message": "i hope youre not scared of the dark!",
"special": null,
"userchat": true
+ },
+ {
+ "user": "12padams",
+ "delay": 4000,
+ "message": "",
+ "special": ".blackout",
+ "userchat": false
+ },
+ {
+ "user": "12padams",
+ "delay": 3000,
+ "message": "and, we didnt even have sound back then!",
+ "special": null,
+ "userchat": true
+ },
+ {
+ "user": "12padams",
+ "delay": 6000,
+ "message": "so now, the sound is gone.",
+ "special": "nosound",
+ "userchat": true
+ },
+ {
+ "user": "12padams",
+ "delay": 3500,
+ "message": "i think i almost got your computer converted, early 1980s should be enough of a punishment",
+ "special": null,
+ "userchat": true
+ },
+ {
+ "user": "12padams",
+ "delay": 3000,
+ "message": "but there are still quite a few things missing...",
+ "special": null,
+ "userchat": true
+ },
+ {
+ "user": "12padams",
+ "delay": 2000,
+ "message": "for example, the text needs to be fullscreen.",
+ "special": null,
+ "userchat": true
+ },
+ {
+ "user": "12padams",
+ "delay": 4000,
+ "message": "",
+ "special": ".fulltext",
+ "userchat": false
+ },
+ {
+ "user": "12padams",
+ "delay": 4000,
+ "message": "and, theres also the scrollbar, which didnt exist back then..",
+ "special": null,
+ "userchat": true
+ },
+ {
+ "user": "12padams",
+ "delay": 3000,
+ "message": "this looks great! i really should add this to skindows 98..",
+ "special": "noscroll",
+ "userchat": true
+ },
+ {
+ "user": "12padams",
+ "delay": 3000,
+ "message": "oh dear, this is embarassing..",
+ "special": null,
+ "userchat": true
+ },
+ {
+ "user": "12padams",
+ "delay": 5000,
+ "message": "i forgot to remove the mouse!",
+ "special": null,
+ "userchat": true
+ },
+ {
+ "user": "12padams",
+ "delay": 3000,
+ "message": "well then, enjoy it while you can, because im going to remove it",
+ "special": null,
+ "userchat": true
+ },
+ {
+ "user": "12padams",
+ "delay": 1000,
+ "message": "removing in 10",
+ "special": null,
+ "userchat": true
+ },
+ {
+ "user": "12padams",
+ "delay": 1000,
+ "message": "9",
+ "special": null,
+ "userchat": true
+ },
+ {
+ "user": "12padams",
+ "delay": 1000,
+ "message": "8",
+ "special": null,
+ "userchat": true
+ },
+ {
+ "user": "12padams",
+ "delay": 1000,
+ "message": "7",
+ "special": null,
+ "userchat": true
+ },
+ {
+ "user": "12padams",
+ "delay": 1000,
+ "message": "6",
+ "special": null,
+ "userchat": true
+ },
+ {
+ "user": "12padams",
+ "delay": 1000,
+ "message": "5",
+ "special": null,
+ "userchat": true
+ },
+ {
+ "user": "12padams",
+ "delay": 1000,
+ "message": "4",
+ "special": null,
+ "userchat": true
+ },
+ {
+ "user": "12padams",
+ "delay": 1000,
+ "message": "3",
+ "special": null,
+ "userchat": true
+ },
+ {
+ "user": "12padams",
+ "delay": 1000,
+ "message": "2",
+ "special": null,
+ "userchat": true
+ },
+ {
+ "user": "12padams",
+ "delay": 1000,
+ "message": "1",
+ "special": null,
+ "userchat": true
+ },
+ {
+ "user": "12padams",
+ "delay": 5000,
+ "message": "goodbye mouse!",
+ "special": "nomouse",
+ "userchat": true
}
]
}</value>