From 20dcdbf96d65bd92feec3509cd586cc324fb46c7 Mon Sep 17 00:00:00 2001 From: lempamo Date: Sat, 1 Apr 2017 16:28:34 -0400 Subject: webchat extra things --- TimeHACK.Main/OS/Win95/Win95Apps/WebChat1998.cs | 21 ++++++++++++++++-- TimeHACK.Main/OS/Win95/Win95Apps/WebChat1998.resx | 27 ++++++++++++++++++++--- 2 files changed, 43 insertions(+), 5 deletions(-) (limited to 'TimeHACK.Main/OS/Win95') diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/WebChat1998.cs b/TimeHACK.Main/OS/Win95/Win95Apps/WebChat1998.cs index c18ba20..4c5e8bf 100644 --- a/TimeHACK.Main/OS/Win95/Win95Apps/WebChat1998.cs +++ b/TimeHACK.Main/OS/Win95/Win95Apps/WebChat1998.cs @@ -37,6 +37,12 @@ namespace TimeHACK.OS.Win95.Win95Apps wm.startInfobox95("Invalid Username", "Your username cannot be blank."); return; } + else if (txtscreenname.Text.Length > 12) + { + WindowManager wm = new WindowManager(); + wm.startInfobox95("Invalid Username", "Your username needs to be less than 12 characters."); + return; + } ParentForm.AcceptButton = button2; TitleScreen.username = txtscreenname.Text; login.Hide(); @@ -88,16 +94,27 @@ namespace TimeHACK.OS.Win95.Win95Apps private void Button2_Click(object sender, EventArgs e) { if (typechat.Text != "") history.Text += TitleScreen.username + ": " + typechat.Text + Environment.NewLine; + typechat.Text = ""; } private void Button3_Click(object sender, EventArgs e) { - correctname = true; Chat.Start(); + correctname = false; + button2.Show(); + button3.Hide(); + button4.Hide(); + typechat.Show(); + Chat.Start(); } private void Button4_Click(object sender, EventArgs e) { - correctname = false; Chat.Start(); + correctname = true; + button2.Show(); + button3.Hide(); + button4.Hide(); + typechat.Show(); + Chat.Start(); } } } diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/WebChat1998.resx b/TimeHACK.Main/OS/Win95/Win95Apps/WebChat1998.resx index 7ab7db0..1ea52b5 100644 --- a/TimeHACK.Main/OS/Win95/Win95Apps/WebChat1998.resx +++ b/TimeHACK.Main/OS/Win95/Win95Apps/WebChat1998.resx @@ -133,7 +133,7 @@ }, { "user": "SkyHigh", - "delay": 6000, + "delay": 5000, "message": "damn", "special": null, "userchat": true @@ -183,16 +183,37 @@ { "user": "SkyHigh", "delay": 6000, - "message": "hey man", + "message": "hey rain", "special": null, "userchat": true }, { "user": "SkyHigh", - "delay": 6000, + "delay": 4000, "message": "ive sort of been waiting", "special": null, "userchat": true + }, + { + "user": "rain49", + "delay": 5000, + "message": "sorry man", + "special": null, + "userchat": true + }, + { + "user": "rain49", + "delay": 4000, + "message": "it took a while for this to load", + "special": null, + "userchat": true + }, + { + "user": "SkyHigh", + "delay": 4000, + "message": "anyway... let's get to it", + "special": null, + "userchat": true } ] } -- cgit v1.2.3