aboutsummaryrefslogtreecommitdiff
path: root/TimeHACK.Main/OS/Win95/Win95Apps/WebChat1998.cs
diff options
context:
space:
mode:
Diffstat (limited to 'TimeHACK.Main/OS/Win95/Win95Apps/WebChat1998.cs')
-rw-r--r--TimeHACK.Main/OS/Win95/Win95Apps/WebChat1998.cs24
1 files changed, 23 insertions, 1 deletions
diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/WebChat1998.cs b/TimeHACK.Main/OS/Win95/Win95Apps/WebChat1998.cs
index 8df610f..94179d6 100644
--- a/TimeHACK.Main/OS/Win95/Win95Apps/WebChat1998.cs
+++ b/TimeHACK.Main/OS/Win95/Win95Apps/WebChat1998.cs
@@ -8,6 +8,7 @@ using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using TimeHACK.Engine;
+using System.Threading;
namespace TimeHACK.OS.Win95.Win95Apps
{
@@ -29,7 +30,28 @@ namespace TimeHACK.OS.Win95.Win95Apps
if (txtscreenname.Text == "")
{
WindowManager wm = new WindowManager();
- wm.startInfobox95("test", "test");
+ wm.startInfobox95("Invalid Username", "Your username cannot be blank.");
+ return;
+ }
+ TitleScreen.username = txtscreenname.Text;
+ login.Hide();
+ listBox1.Items.Add(TitleScreen.username);
+ chatLoop();
+ }
+
+ private void chatLoop()
+ {
+ WCMessageParser wcmp = new WCMessageParser();
+ Thread.Sleep(15000);
+ for (int i = 0; i < 200; i++)
+ {
+ history.Text = wcmp.ParseMessage(resources.GetString("convo"), i, TitleScreen.username);
+ switch (wcmp.GetSpecial(resources.GetString("convo"), i))
+ {
+ default:
+ break;
+ }
+ Thread.Sleep(wcmp.GetMessageDelay(resources.GetString("convo"), i));
}
}
}