From c1a46b29dc43397725bd49d8f2dc4664326f20bb Mon Sep 17 00:00:00 2001
From: Client_PangDeRong <593317293@qq.com>
Date: 星期一, 17 十二月 2018 16:07:18 +0800
Subject: [PATCH] 5487 【前端】【1.3.100】助战大境界渡劫的助战记录显示优化
---
Utility/UIHelper.cs | 32 ++++++++++++++++++++++++++++++++
1 files changed, 32 insertions(+), 0 deletions(-)
diff --git a/Utility/UIHelper.cs b/Utility/UIHelper.cs
index 928843a..d84418f 100644
--- a/Utility/UIHelper.cs
+++ b/Utility/UIHelper.cs
@@ -558,6 +558,38 @@
}
}
+ public static string GetRealmColorByLv(int realmLv,string msg, bool bright = false)
+ {
+ var config = Config.Instance.Get<RealmConfig>(realmLv);
+ if (config == null)
+ {
+ return string.Empty;
+ }
+ switch (config.Quality)
+ {
+ case 1:
+ return StringUtility.Contact("<color=#", bright ? "686868" : "f7f7f7", ">",msg, "</color>");
+ case 2:
+ return StringUtility.Contact("<color=#", bright ? "08d00a" : "08d00a", ">", msg, "</color>");
+ case 3:
+ return StringUtility.Contact("<color=#", bright ? "006be3" : "31cefb", ">", msg, "</color>");
+ case 4:
+ return StringUtility.Contact("<color=#", bright ? "da48d5" : "ec4bf6", ">", msg, "</color>");
+ case 5:
+ return StringUtility.Contact("<color=#", bright ? "ff6701" : "f8983b", ">", msg, "</color>");
+ case 6:
+ return StringUtility.Contact("<color=#", bright ? "ff0303" : "ff0101", ">", msg, "</color>");
+ case 7:
+ return StringUtility.Contact("<color=#", bright ? "f6408d" : "ff7c7c", ">", msg, "</color>");
+ case 8:
+ return StringUtility.Contact("<color=#", bright ? "bb8800" : "ffde00", ">", msg, "</color>");
+ case 9:
+ return StringUtility.Contact("<color=#", bright ? "ff0303" : "ff0101", ">", msg, "</color>");
+ default:
+ return msg;
+ }
+ }
+
public static string AppendStringColor(int itemColor, string msg, bool bright = false)
{
switch (itemColor)
--
Gitblit v1.8.0