From 79668324bb457c6df754fd3d252628d1db6d14a9 Mon Sep 17 00:00:00 2001
From: client_linchunjie <461730578@qq.com>
Date: 星期一, 05 十一月 2018 09:48:51 +0800
Subject: [PATCH] 4398 【1.2】聊天气泡框

---
 System/Chat/ChatData.cs |   13 ++++++++++---
 1 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/System/Chat/ChatData.cs b/System/Chat/ChatData.cs
index 432012f..0add1e2 100644
--- a/System/Chat/ChatData.cs
+++ b/System/Chat/ChatData.cs
@@ -65,20 +65,26 @@
     {
         this.player = player;
         this.name = name;
+        extra = UIHelper.ServerStringTrim(extra);
         this.extra = extra;
         this.job = 1;
         IsSound = false;
-        if (extra.Length > 1)
+        var extraLength = extra.Length;
+        if (extraLength > 1)
         {
             vipLv = int.Parse(extra.Substring(0, 2));
         }
-        if (extra.Length > 2)
+        if (extraLength > 2)
         {
             isGm = byte.Parse(extra.Substring(2, 1)) == 1;
         }
-        if (extra.Length > 3)
+        if (extraLength > 3)
         {
             job = byte.Parse(extra.Substring(3, 1));
+        }
+        if (extraLength > 4)
+        {
+            bubbleId = int.Parse(extra.Substring(4, extraLength > 5 ? 2 : 1));
         }
         if (ChatCenter.s_VoiceRegex.IsMatch(_content))
         {
@@ -94,6 +100,7 @@
     public int vipLv { get; protected set; }
     public bool isGm { get; protected set; }
     public int job { get; protected set; }
+    public int bubbleId { get; protected set; }
     public long soundTick { get; private set; }
     public bool IsSound { get; private set; }
     public float soundLength { get; private set; }

--
Gitblit v1.8.0