From dc7922d80c1d133b6261b8af1d521567d2c0a35d Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期四, 30 十月 2025 16:51:39 +0800
Subject: [PATCH] Merge branch 'master' of http://mobile.secondworld.net.cn:10010/r/Project_SG_scripts
---
Main/System/Chat/ChatTrailCell.cs | 70 +++++++++++++++++-----------------
1 files changed, 35 insertions(+), 35 deletions(-)
diff --git a/Main/System/Chat/ChatTrailCell.cs b/Main/System/Chat/ChatTrailCell.cs
index dd4fd5f..7431452 100644
--- a/Main/System/Chat/ChatTrailCell.cs
+++ b/Main/System/Chat/ChatTrailCell.cs
@@ -1,43 +1,43 @@
-锘縰sing vnxbqy.UI;
-using System.Collections;
+锘縰sing System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
-using EnhancedUI.EnhancedScroller;
- public class ChatTrailCell : ScrollerUI
- {
- [SerializeField] Image chatIcon;
- [SerializeField] RichText chatText;
- public override void Refresh(CellView cell)
+
+public class ChatTrailCell : ScrollerUI
+{
+ [SerializeField] Image chatIcon;
+ [SerializeField] RichText chatText;
+
+ public override void Refresh(CellView cell)
+ {
+ ChatData _data = ChatCenter.Instance.GetChatData(ChatManager.Instance.presentChatType, cell.index);
+ if (_data == null)
{
- ChatData _data = ChatCenter.Instance.GetChatData(ChatManager.Instance.presentChatType, cell.index);
- if (_data == null)
- {
- return;
- }
- if (_data.infoList != null)
- {
- chatText.SetExtenalData(_data.infoList);
- }
- chatIcon.SetActive(true);
- if (_data.type == ChatInfoType.Invite)
- {
- chatIcon.SetSprite("ChatIcon_Invite");
- }
- else if (_data.type == ChatInfoType.System)
- {
- chatIcon.SetSprite("ChatIcon_System");
- }
- else if (_data.type == ChatInfoType.Friend)
- {
- chatIcon.SetSprite("ChatIcon_System");
- }
- else
- {
- chatIcon.SetActive(false);
- }
- chatText.text = _data.type == ChatInfoType.Friend ? _data.content.Replace(ChatManager.KILL_IDENTIFY, string.Empty) : _data.content;
+ return;
}
+ if (_data.infoList != null)
+ {
+ chatText.SetExtenalData(_data.infoList);
+ }
+ chatIcon.SetActive(true);
+ if (_data.type == ChatInfoType.Invite)
+ {
+ chatIcon.SetSprite("ChatIcon_Invite");
+ }
+ else if (_data.type == ChatInfoType.System)
+ {
+ chatIcon.SetSprite("ChatIcon_System");
+ }
+ else if (_data.type == ChatInfoType.Friend)
+ {
+ chatIcon.SetSprite("ChatIcon_System");
+ }
+ else
+ {
+ chatIcon.SetActive(false);
+ }
+ chatText.text = _data.type == ChatInfoType.Friend ? _data.content.Replace(ChatManager.KILL_IDENTIFY, string.Empty) : _data.content;
}
+}
--
Gitblit v1.8.0