aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlempamo <[email protected]>2017-03-31 17:44:01 -0400
committerlempamo <[email protected]>2017-03-31 17:44:01 -0400
commit27419aa0dce06f9af5ee28f64aace365dcb7d816 (patch)
tree89bdc54c2478130a2de98cfcc176a0b252676425
parentb2873bc67093dfdae2566ede9bda85230a37ff44 (diff)
downloadhistacom2-27419aa0dce06f9af5ee28f64aace365dcb7d816.tar.gz
histacom2-27419aa0dce06f9af5ee28f64aace365dcb7d816.tar.bz2
histacom2-27419aa0dce06f9af5ee28f64aace365dcb7d816.zip
webchat things
-rw-r--r--.vs/TimeHACK/v14/.suobin122368 -> 122368 bytes
-rw-r--r--TimeHACK.Engine/WCMessageParser.cs8
-rw-r--r--TimeHACK.Engine/WindowManager.cs2
-rw-r--r--TimeHACK.Main/OS/Win95/Win95Apps/WebChat1998.Designer.cs1
-rw-r--r--TimeHACK.Main/OS/Win95/Win95Apps/WebChat1998.cs7
-rw-r--r--TimeHACK.Main/OS/Win95/Win95Apps/WebChat1998.resx39
6 files changed, 53 insertions, 4 deletions
diff --git a/.vs/TimeHACK/v14/.suo b/.vs/TimeHACK/v14/.suo
index 363d666..c679976 100644
--- a/.vs/TimeHACK/v14/.suo
+++ b/.vs/TimeHACK/v14/.suo
Binary files differ
diff --git a/TimeHACK.Engine/WCMessageParser.cs b/TimeHACK.Engine/WCMessageParser.cs
index ed16afd..44c9002 100644
--- a/TimeHACK.Engine/WCMessageParser.cs
+++ b/TimeHACK.Engine/WCMessageParser.cs
@@ -13,12 +13,18 @@ namespace TimeHACK.Engine
{
JObject message = JObject.Parse(JObject.Parse(json)["messages"][index].ToString());
string newmsg = message["message"].ToString().Replace("@user", user);
- return message["user"].ToString() + ": " + newmsg;
+ if (message["userchat"].ToObject<bool>()) return message["user"].ToString() + ": " + newmsg;
+ else return newmsg;
}
public int GetMessageDelay(string json, int index)
{
JObject message = JObject.Parse(JObject.Parse(json)["messages"][index].ToString());
return message["delay"].ToObject<int>();
}
+ public string GetSpecial(string json, int index)
+ {
+ JObject message = JObject.Parse(JObject.Parse(json)["messages"][index].ToString());
+ return message["special"].ToString();
+ }
}
}
diff --git a/TimeHACK.Engine/WindowManager.cs b/TimeHACK.Engine/WindowManager.cs
index 193985a..4a1cf4e 100644
--- a/TimeHACK.Engine/WindowManager.cs
+++ b/TimeHACK.Engine/WindowManager.cs
@@ -9,7 +9,7 @@ namespace TimeHACK.Engine
{
public static System.Drawing.Text.PrivateFontCollection pfc = new System.Drawing.Text.PrivateFontCollection();
- public WinClassic startWinClassic(UserControl content, String title, PictureBox icon, Boolean MaxButton, Boolean MinButton)
+ public WinClassic startWinClassic(UserControl content, string title, PictureBox icon, bool MaxButton, bool MinButton)
{
// Setup Window
WinClassic app = new WinClassic();
diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/WebChat1998.Designer.cs b/TimeHACK.Main/OS/Win95/Win95Apps/WebChat1998.Designer.cs
index c3a5964..80aab11 100644
--- a/TimeHACK.Main/OS/Win95/Win95Apps/WebChat1998.Designer.cs
+++ b/TimeHACK.Main/OS/Win95/Win95Apps/WebChat1998.Designer.cs
@@ -269,6 +269,7 @@
this.Controls.Add(this.listBox1);
this.Name = "WebChat1998";
this.Size = new System.Drawing.Size(724, 462);
+ this.Load += new System.EventHandler(this.WebChat1998_Load);
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
this.login.ResumeLayout(false);
diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/WebChat1998.cs b/TimeHACK.Main/OS/Win95/Win95Apps/WebChat1998.cs
index ce87665..3f4810e 100644
--- a/TimeHACK.Main/OS/Win95/Win95Apps/WebChat1998.cs
+++ b/TimeHACK.Main/OS/Win95/Win95Apps/WebChat1998.cs
@@ -16,5 +16,12 @@ namespace TimeHACK.OS.Win95.Win95Apps
{
InitializeComponent();
}
+ private void WebChat1998_Load(object sender, EventArgs e)
+ {
+ button5.Hide();
+ button4.Hide();
+ button3.Hide();
+ label5.Hide();
+ }
}
}
diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/WebChat1998.resx b/TimeHACK.Main/OS/Win95/Win95Apps/WebChat1998.resx
index 61225ed..cb2c52a 100644
--- a/TimeHACK.Main/OS/Win95/Win95Apps/WebChat1998.resx
+++ b/TimeHACK.Main/OS/Win95/Win95Apps/WebChat1998.resx
@@ -117,9 +117,44 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
- <metadata name="Chat.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+ <assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
+ <data name="Chat.TrayLocation" type="System.Drawing.Point, System.Drawing">
<value>17, 17</value>
- </metadata>
+ </data>
+ <data name="convo" xml:space="preserve">
+ <value>{
+ "messages": [
+ {
+ "user": "System",
+ "delay": 5000,
+ "message": "SkyHigh has joined the chat.",
+ "special": "addsh",
+ "userchat": true
+ },
+ {
+ "user": "SkyHigh",
+ "delay": 6000,
+ "message": "damn",
+ "special": null,
+ "userchat": true
+ },
+ {
+ "user": "SkyHigh",
+ "delay": 6000,
+ "message": "I thought my friend rain49 was going to be on...",
+ "special": null,
+ "userchat": true
+ },
+ {
+ "user": "SkyHigh",
+ "delay": 6000,
+ "message": "hmm... how about we play a game while we wait for my friend to come",
+ "special": null,
+ "userchat": true
+ }
+ ]
+}</value>
+ </data>
<data name="textBox1.Text" xml:space="preserve">
<value>If you do not agree to the following rules below DO NOT log into the chat: