diff options
| author | lempamo <[email protected]> | 2017-03-31 17:44:01 -0400 |
|---|---|---|
| committer | lempamo <[email protected]> | 2017-03-31 17:44:01 -0400 |
| commit | 27419aa0dce06f9af5ee28f64aace365dcb7d816 (patch) | |
| tree | 89bdc54c2478130a2de98cfcc176a0b252676425 /TimeHACK.Engine | |
| parent | b2873bc67093dfdae2566ede9bda85230a37ff44 (diff) | |
| download | histacom2-27419aa0dce06f9af5ee28f64aace365dcb7d816.tar.gz histacom2-27419aa0dce06f9af5ee28f64aace365dcb7d816.tar.bz2 histacom2-27419aa0dce06f9af5ee28f64aace365dcb7d816.zip | |
webchat things
Diffstat (limited to 'TimeHACK.Engine')
| -rw-r--r-- | TimeHACK.Engine/WCMessageParser.cs | 8 | ||||
| -rw-r--r-- | TimeHACK.Engine/WindowManager.cs | 2 |
2 files changed, 8 insertions, 2 deletions
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(); |
