diff options
| author | lempamo <[email protected]> | 2017-04-01 16:28:34 -0400 |
|---|---|---|
| committer | lempamo <[email protected]> | 2017-04-01 16:28:34 -0400 |
| commit | 20dcdbf96d65bd92feec3509cd586cc324fb46c7 (patch) | |
| tree | 4244e2b79f6187d92d5f35294b3c2154e7cb80cb /TimeHACK.Main/OS/Win95/Win95Apps/WebChat1998.cs | |
| parent | bd53d73a130ad8a569113cc12f77f7ca8d2617ad (diff) | |
| download | histacom2-20dcdbf96d65bd92feec3509cd586cc324fb46c7.tar.gz histacom2-20dcdbf96d65bd92feec3509cd586cc324fb46c7.tar.bz2 histacom2-20dcdbf96d65bd92feec3509cd586cc324fb46c7.zip | |
webchat extra things
Diffstat (limited to 'TimeHACK.Main/OS/Win95/Win95Apps/WebChat1998.cs')
| -rw-r--r-- | TimeHACK.Main/OS/Win95/Win95Apps/WebChat1998.cs | 21 |
1 files changed, 19 insertions, 2 deletions
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(); } } } |
