diff options
| author | lempamo <[email protected]> | 2017-03-31 20:22:59 -0400 |
|---|---|---|
| committer | lempamo <[email protected]> | 2017-03-31 20:22:59 -0400 |
| commit | 7841180fc0f60f6eb1fff1503f89ff2cad117e85 (patch) | |
| tree | 91839e30c8fefa92a0d534062277015a8c8b1ade /TimeHACK.Main/OS/Win95/Win95Apps/WebChat1998.cs | |
| parent | 586f0f740898cd7eb7cd59048ba8d59410b2f766 (diff) | |
| download | histacom2-7841180fc0f60f6eb1fff1503f89ff2cad117e85.tar.gz histacom2-7841180fc0f60f6eb1fff1503f89ff2cad117e85.tar.bz2 histacom2-7841180fc0f60f6eb1fff1503f89ff2cad117e85.zip | |
webchat98 things
Diffstat (limited to 'TimeHACK.Main/OS/Win95/Win95Apps/WebChat1998.cs')
| -rw-r--r-- | TimeHACK.Main/OS/Win95/Win95Apps/WebChat1998.cs | 24 |
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)); } } } |
