aboutsummaryrefslogtreecommitdiff
path: root/TimeHACK.Main/OS/Win95/Win95Apps/WebChat1998.cs
diff options
context:
space:
mode:
authorlempamo <[email protected]>2017-07-21 11:06:11 -0400
committerlempamo <[email protected]>2017-07-21 11:06:11 -0400
commit0e4af49563e5e9024f56ddeb762442a44b1cdc56 (patch)
tree0067b77694598dfb5d4be267e39cc3608e0fb35d /TimeHACK.Main/OS/Win95/Win95Apps/WebChat1998.cs
parenta42b7b8d3219f5df18721afdf88bddb8dd11d463 (diff)
downloadhistacom2-0e4af49563e5e9024f56ddeb762442a44b1cdc56.tar.gz
histacom2-0e4af49563e5e9024f56ddeb762442a44b1cdc56.tar.bz2
histacom2-0e4af49563e5e9024f56ddeb762442a44b1cdc56.zip
even more webchatty goodness
Diffstat (limited to 'TimeHACK.Main/OS/Win95/Win95Apps/WebChat1998.cs')
-rw-r--r--TimeHACK.Main/OS/Win95/Win95Apps/WebChat1998.cs43
1 files changed, 39 insertions, 4 deletions
diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/WebChat1998.cs b/TimeHACK.Main/OS/Win95/Win95Apps/WebChat1998.cs
index 70c7010..bfacaa6 100644
--- a/TimeHACK.Main/OS/Win95/Win95Apps/WebChat1998.cs
+++ b/TimeHACK.Main/OS/Win95/Win95Apps/WebChat1998.cs
@@ -22,6 +22,7 @@ namespace TimeHACK.OS.Win95.Win95Apps
MessageParser wcmp = new MessageParser();
bool correctname = false;
bool guessing = false;
+ bool msgsound = true;
bool wimponclose = false;
@@ -74,7 +75,8 @@ namespace TimeHACK.OS.Win95.Win95Apps
{
if (!guessing)
{
- history.AppendText(wcmp.ParseMessage(resources.GetString("convo"), chat_index, TitleScreen.username));
+ if (history.ScrollBars != ScrollBars.None) history.AppendText(wcmp.ParseMessage(resources.GetString("convo"), chat_index, TitleScreen.username));
+ else history.Text = wcmp.ParseMessage(resources.GetString("convo"), chat_index, TitleScreen.username);
switch (wcmp.GetSpecial(resources.GetString("convo"), chat_index))
{
case "addsh":
@@ -136,7 +138,7 @@ namespace TimeHACK.OS.Win95.Win95Apps
receive.Play();
break;
case "notopbar":
- ((WinClassic)this.ParentForm).programtopbar = null;
+ ((WinClassic)this.ParentForm).programtopbar.Hide();
receive.Play();
break; // TODO: Finish WebChat 1998
case "filepoof":
@@ -148,13 +150,46 @@ namespace TimeHACK.OS.Win95.Win95Apps
listBox1.Items.Remove("SkyHigh");
leave.Play();
break;
+ case "notype":
+ typechat.Hide();
+ button2.Hide();
+ receive.Play();
+ break;
case ".labelgone":
label1.Hide();
label6.Hide();
label7.Hide();
break;
+ case ".blackout":
+ BackColor = Color.Black;
+ history.BackColor = Color.Black;
+ history.ForeColor = Color.White;
+ break;
+ case "nosound":
+ msgsound = false;
+ break;
+ case ".fulltext":
+ foreach (Control c in ((WinClassic)this.ParentForm).program.Controls)
+ {
+ if (c.Name != "programContent")
+ {
+ c.Hide();
+ ((WinClassic)this.ParentForm).program.Controls.Remove(c);
+ }
+ }
+ ((WinClassic)this.ParentForm).programContent.Location = new Point(0, 0);
+ ((WinClassic)this.ParentForm).programContent.Size = ((WinClassic)this.ParentForm).ClientSize;
+ panel1.Hide();
+ history.Dock = DockStyle.Fill;
+ break;
+ case "noscroll":
+ history.ScrollBars = ScrollBars.None;
+ break;
+ case "nomouse":
+ Cursor.Hide();
+ break;
default:
- receive.Play();
+ if (msgsound) receive.Play();
break;
}
if (TitleScreen.username == "devspeed") Chat.Interval = wcmp.GetMessageDelay(resources.GetString("convo"), chat_index) / 2;
@@ -192,7 +227,7 @@ namespace TimeHACK.OS.Win95.Win95Apps
{
if (typechat.Text != "") history.AppendText(TitleScreen.username + ": " + typechat.Text + Environment.NewLine);
typechat.Text = "";
- send.Play();
+ if (msgsound) send.Play();
}
private void Button3_Click(object sender, EventArgs e)