diff options
| author | lempamo <[email protected]> | 2017-07-21 11:06:11 -0400 |
|---|---|---|
| committer | lempamo <[email protected]> | 2017-07-21 11:06:11 -0400 |
| commit | 0e4af49563e5e9024f56ddeb762442a44b1cdc56 (patch) | |
| tree | 0067b77694598dfb5d4be267e39cc3608e0fb35d /TimeHACK.Main | |
| parent | a42b7b8d3219f5df18721afdf88bddb8dd11d463 (diff) | |
| download | histacom2-0e4af49563e5e9024f56ddeb762442a44b1cdc56.tar.gz histacom2-0e4af49563e5e9024f56ddeb762442a44b1cdc56.tar.bz2 histacom2-0e4af49563e5e9024f56ddeb762442a44b1cdc56.zip | |
even more webchatty goodness
Diffstat (limited to 'TimeHACK.Main')
| -rw-r--r-- | TimeHACK.Main/OS/Win95/Win95Apps/WebChat1998.Designer.cs | 120 | ||||
| -rw-r--r-- | TimeHACK.Main/OS/Win95/Win95Apps/WebChat1998.cs | 43 | ||||
| -rw-r--r-- | TimeHACK.Main/OS/Win95/Win95Apps/WebChat1998.resx | 165 |
3 files changed, 267 insertions, 61 deletions
diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/WebChat1998.Designer.cs b/TimeHACK.Main/OS/Win95/Win95Apps/WebChat1998.Designer.cs index 4dd7a59..bcd6b07 100644 --- a/TimeHACK.Main/OS/Win95/Win95Apps/WebChat1998.Designer.cs +++ b/TimeHACK.Main/OS/Win95/Win95Apps/WebChat1998.Designer.cs @@ -40,13 +40,13 @@ this.label6 = new System.Windows.Forms.Label(); this.typechat = new System.Windows.Forms.TextBox(); this.login = new System.Windows.Forms.Panel(); + this.label2 = new System.Windows.Forms.Label(); + this.txtscreenname = new System.Windows.Forms.TextBox(); + this.button1 = new System.Windows.Forms.Button(); + this.label3 = new System.Windows.Forms.Label(); + this.label4 = new System.Windows.Forms.Label(); this.textBox1 = new System.Windows.Forms.TextBox(); this.textBox2 = new System.Windows.Forms.TextBox(); - this.label4 = new System.Windows.Forms.Label(); - this.label3 = new System.Windows.Forms.Label(); - this.button1 = new System.Windows.Forms.Button(); - this.txtscreenname = new System.Windows.Forms.TextBox(); - this.label2 = new System.Windows.Forms.Label(); this.label7 = new System.Windows.Forms.Label(); this.button2 = new System.Windows.Forms.Button(); this.button3 = new System.Windows.Forms.Button(); @@ -62,6 +62,8 @@ // // listBox1 // + this.listBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Right))); this.listBox1.FormattingEnabled = true; this.listBox1.Location = new System.Drawing.Point(504, 32); this.listBox1.Name = "listBox1"; @@ -80,17 +82,21 @@ // // history // + this.history.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); this.history.BackColor = System.Drawing.Color.White; this.history.Location = new System.Drawing.Point(22, 32); this.history.Multiline = true; this.history.Name = "history"; this.history.ReadOnly = true; + this.history.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; this.history.Size = new System.Drawing.Size(471, 377); this.history.TabIndex = 2; - this.history.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; // // panel1 // + this.panel1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.panel1.Controls.Add(this.label5); this.panel1.Controls.Add(this.button5); @@ -104,7 +110,7 @@ this.label5.AutoSize = true; this.label5.Location = new System.Drawing.Point(13, 18); this.label5.Name = "label5"; - this.label5.Size = new System.Drawing.Size(68, 13); + this.label5.Size = new System.Drawing.Size(84, 13); this.label5.TabIndex = 1; this.label5.Text = "skin95setup.exe"; // @@ -119,6 +125,7 @@ // // label6 // + this.label6.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.label6.AutoSize = true; this.label6.Location = new System.Drawing.Point(504, 374); this.label6.Name = "label6"; @@ -128,6 +135,7 @@ // // typechat // + this.typechat.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.typechat.Location = new System.Drawing.Point(20, 415); this.typechat.Name = "typechat"; this.typechat.Size = new System.Drawing.Size(395, 20); @@ -147,6 +155,52 @@ this.login.Size = new System.Drawing.Size(497, 251); this.login.TabIndex = 6; // + // label2 + // + this.label2.AutoSize = true; + this.label2.Location = new System.Drawing.Point(328, 161); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(149, 13); + this.label2.TabIndex = 6; + this.label2.Text = "Please type in a screen name."; + // + // txtscreenname + // + this.txtscreenname.Location = new System.Drawing.Point(331, 181); + this.txtscreenname.Name = "txtscreenname"; + this.txtscreenname.Size = new System.Drawing.Size(151, 20); + this.txtscreenname.TabIndex = 5; + // + // button1 + // + this.button1.BackColor = System.Drawing.Color.Silver; + this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.button1.Location = new System.Drawing.Point(331, 208); + this.button1.Name = "button1"; + this.button1.Size = new System.Drawing.Size(151, 23); + this.button1.TabIndex = 4; + this.button1.Text = "Login"; + this.button1.UseVisualStyleBackColor = true; + this.button1.Click += new System.EventHandler(this.Button1_Click); + // + // label3 + // + this.label3.AutoSize = true; + this.label3.Location = new System.Drawing.Point(196, 16); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(112, 13); + this.label3.TabIndex = 3; + this.label3.Text = "Welcome to WebChat"; + // + // label4 + // + this.label4.AutoSize = true; + this.label4.Location = new System.Drawing.Point(118, 56); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(93, 13); + this.label4.TabIndex = 2; + this.label4.Text = "Chat Room Rules:"; + // // textBox1 // this.textBox1.BackColor = System.Drawing.Color.Silver; @@ -173,52 +227,6 @@ "ame. To keep your identity safe, please do not enter your real name in this chat" + "room."; // - // label4 - // - this.label4.AutoSize = true; - this.label4.Location = new System.Drawing.Point(118, 56); - this.label4.Name = "label4"; - this.label4.Size = new System.Drawing.Size(93, 13); - this.label4.TabIndex = 2; - this.label4.Text = "Chat Room Rules:"; - // - // label3 - // - this.label3.AutoSize = true; - this.label3.Location = new System.Drawing.Point(196, 16); - this.label3.Name = "label3"; - this.label3.Size = new System.Drawing.Size(112, 13); - this.label3.TabIndex = 3; - this.label3.Text = "Welcome to WebChat"; - // - // button1 - // - this.button1.BackColor = System.Drawing.Color.Silver; - this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.button1.Location = new System.Drawing.Point(331, 208); - this.button1.Name = "button1"; - this.button1.Size = new System.Drawing.Size(151, 23); - this.button1.TabIndex = 4; - this.button1.Text = "Login"; - this.button1.UseVisualStyleBackColor = true; - this.button1.Click += new System.EventHandler(this.Button1_Click); - // - // txtscreenname - // - this.txtscreenname.Location = new System.Drawing.Point(331, 181); - this.txtscreenname.Name = "txtscreenname"; - this.txtscreenname.Size = new System.Drawing.Size(151, 20); - this.txtscreenname.TabIndex = 5; - // - // label2 - // - this.label2.AutoSize = true; - this.label2.Location = new System.Drawing.Point(328, 161); - this.label2.Name = "label2"; - this.label2.Size = new System.Drawing.Size(149, 13); - this.label2.TabIndex = 6; - this.label2.Text = "Please type in a screen name."; - // // label7 // this.label7.AutoSize = true; @@ -229,12 +237,14 @@ this.label7.Text = "To speak, just type in the bottom textbox, then click the Speak button or press E" + "nter."; // - // cancelButton + // button2 // + this.button2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); this.button2.BackColor = System.Drawing.Color.Silver; this.button2.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.button2.Location = new System.Drawing.Point(422, 415); - this.button2.Name = "cancelButton"; + this.button2.Name = "button2"; this.button2.Size = new System.Drawing.Size(71, 23); this.button2.TabIndex = 8; this.button2.Text = "Speak"; 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) diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/WebChat1998.resx b/TimeHACK.Main/OS/Win95/Win95Apps/WebChat1998.resx index 0625787..9c71c8b 100644 --- a/TimeHACK.Main/OS/Win95/Win95Apps/WebChat1998.resx +++ b/TimeHACK.Main/OS/Win95/Win95Apps/WebChat1998.resx @@ -931,17 +931,178 @@ }, { "user": "12padams", - "delay": 4000, + "delay": 3000, "message": "hmm, this is going to be tricky..", "special": null, "userchat": true }, { "user": "12padams", - "delay": 4000, + "delay": 3000, "message": "i hope youre not scared of the dark!", "special": null, "userchat": true + }, + { + "user": "12padams", + "delay": 4000, + "message": "", + "special": ".blackout", + "userchat": false + }, + { + "user": "12padams", + "delay": 3000, + "message": "and, we didnt even have sound back then!", + "special": null, + "userchat": true + }, + { + "user": "12padams", + "delay": 6000, + "message": "so now, the sound is gone.", + "special": "nosound", + "userchat": true + }, + { + "user": "12padams", + "delay": 3500, + "message": "i think i almost got your computer converted, early 1980s should be enough of a punishment", + "special": null, + "userchat": true + }, + { + "user": "12padams", + "delay": 3000, + "message": "but there are still quite a few things missing...", + "special": null, + "userchat": true + }, + { + "user": "12padams", + "delay": 2000, + "message": "for example, the text needs to be fullscreen.", + "special": null, + "userchat": true + }, + { + "user": "12padams", + "delay": 4000, + "message": "", + "special": ".fulltext", + "userchat": false + }, + { + "user": "12padams", + "delay": 4000, + "message": "and, theres also the scrollbar, which didnt exist back then..", + "special": null, + "userchat": true + }, + { + "user": "12padams", + "delay": 3000, + "message": "this looks great! i really should add this to skindows 98..", + "special": "noscroll", + "userchat": true + }, + { + "user": "12padams", + "delay": 3000, + "message": "oh dear, this is embarassing..", + "special": null, + "userchat": true + }, + { + "user": "12padams", + "delay": 5000, + "message": "i forgot to remove the mouse!", + "special": null, + "userchat": true + }, + { + "user": "12padams", + "delay": 3000, + "message": "well then, enjoy it while you can, because im going to remove it", + "special": null, + "userchat": true + }, + { + "user": "12padams", + "delay": 1000, + "message": "removing in 10", + "special": null, + "userchat": true + }, + { + "user": "12padams", + "delay": 1000, + "message": "9", + "special": null, + "userchat": true + }, + { + "user": "12padams", + "delay": 1000, + "message": "8", + "special": null, + "userchat": true + }, + { + "user": "12padams", + "delay": 1000, + "message": "7", + "special": null, + "userchat": true + }, + { + "user": "12padams", + "delay": 1000, + "message": "6", + "special": null, + "userchat": true + }, + { + "user": "12padams", + "delay": 1000, + "message": "5", + "special": null, + "userchat": true + }, + { + "user": "12padams", + "delay": 1000, + "message": "4", + "special": null, + "userchat": true + }, + { + "user": "12padams", + "delay": 1000, + "message": "3", + "special": null, + "userchat": true + }, + { + "user": "12padams", + "delay": 1000, + "message": "2", + "special": null, + "userchat": true + }, + { + "user": "12padams", + "delay": 1000, + "message": "1", + "special": null, + "userchat": true + }, + { + "user": "12padams", + "delay": 5000, + "message": "goodbye mouse!", + "special": "nomouse", + "userchat": true } ] }</value> |
