Przeglądaj źródła

雅集聊天ui修改

huangxiaoyue 1 rok temu
rodzic
commit
e00b88f84b

+ 1 - 9
GameClient/Assets/Game/HotUpdate/ServerProxy/ChatSProxy.cs

@@ -12,16 +12,8 @@ namespace ET
             chatData.Type = message.Type;
             chatData.RoleInfo = RoleDataManager.GetOtherRoleInfoData(message.RoleInfo);
             chatData.TargetId = chatData.RoleInfo.roleId;
-            string content = "";
-            for (int i = 0; i < message.Content.Length; i++)
-            {
-                string str = i > 0 && (i + 1) % 12 == 0 ? message.Content[i] + "\n" : message.Content[i].ToString();
-                content += str;
-            }
-            chatData.Content = content;
-
+            chatData.Content = message.Content;
             chatData.Time = message.Time;
-
             if (chatData.Type == ChatType.Private)
             {
                 ChatDataManager.Instance.GetChatDatas(chatData.TargetId).Add(chatData);

+ 0 - 8
GameClient/Assets/Game/HotUpdate/Views/League/LeagueChatView.cs

@@ -75,17 +75,9 @@ namespace GFGGame
             ChatData chatData = ChatDataManager.Instance.ChatDatas[ChatType.League][index];
             OtherRoleInfoData roleInfo = chatData.RoleInfo;
             UI_ListChatItem item = UI_ListChatItem.Proxy(obj);
-
             RoleInfoManager.Instance.UpdateHeadWithLv(item.m_comHead, roleInfo.headId, roleInfo.headBorderId, roleInfo.roleLv);
             item.m_txtName.text = roleInfo.roleName;
-            string content = "";
-            for (int i = 0; i < chatData.Content.Length; i++)
-            {
-                string str = i == 12 * (i + 1) ? chatData.Content[i] + "/n" : chatData.Content[i].ToString();
-                content += str;
-            }
             item.m_txtChatContent.text = chatData.Content;
-
             UI_ListChatItem.ProxyEnd();
         }
         private async void OnBtnSendClick()

BIN
GameClient/Assets/ResIn/UI/League/League_fui.bytes