diff options
| author | AShifter <[email protected]> | 2017-03-31 18:24:19 -0600 |
|---|---|---|
| committer | GitHub <[email protected]> | 2017-03-31 18:24:19 -0600 |
| commit | a2c51ec4bc6c25a32388fe652bf5d6275df9cb8a (patch) | |
| tree | 91839e30c8fefa92a0d534062277015a8c8b1ade /TimeHACK.Main/OS/Win95/Win95Apps/WebChat1998.cs | |
| parent | 5b29f2242e144a791afd775766e6d540f19c0ba4 (diff) | |
| parent | 7841180fc0f60f6eb1fff1503f89ff2cad117e85 (diff) | |
| download | histacom2-a2c51ec4bc6c25a32388fe652bf5d6275df9cb8a.tar.gz histacom2-a2c51ec4bc6c25a32388fe652bf5d6275df9cb8a.tar.bz2 histacom2-a2c51ec4bc6c25a32388fe652bf5d6275df9cb8a.zip | |
Merge pull request #22 from lempamo/master
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)); } } } |
