From 94c478cfa485adc30190d21f40df02df707ddef8 Mon Sep 17 00:00:00 2001
From: client_Hale <339726288@qq.com>
Date: 星期五, 10 八月 2018 20:49:19 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts

---
 System/Message/RichTableEvent.cs |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/System/Message/RichTableEvent.cs b/System/Message/RichTableEvent.cs
index c06e43d..d8020ad 100644
--- a/System/Message/RichTableEvent.cs
+++ b/System/Message/RichTableEvent.cs
@@ -188,7 +188,13 @@
                                         RealmConfig _cfg = ConfigManager.Instance.GetTemplate<RealmConfig>(id);
                                         if (_cfg != null)
                                         {
-                                            return GetTextColorByItemColor(_cfg.Name, _cfg.Quality, _dict);
+                                            var text = RichTextMgr.Inst.presentRichText;
+                                            int colorType = 0;
+                                            if (text != null)
+                                            {
+                                                colorType = text.colorType == RichText.ColorType.Dark ? 0 : 1;
+                                            }
+                                            return UIHelper.GetRealmName(id, colorType == 1);
                                         }
                                     }
                                 }

--
Gitblit v1.8.0