From 746dec7b2deec0d87a90153997a47d797f6d9b81 Mon Sep 17 00:00:00 2001 From: hch <305670599@qq.com> Date: 星期四, 26 六月 2025 22:07:23 +0800 Subject: [PATCH] 0312 主界面功能 增加真机debug模块:1.输出日志 2.支持非SDK登录 3.GM命令 4.分支下载 --- Main/Utility/UIHelper.cs | 92 +++++++++++++++++++++++----------------------- 1 files changed, 46 insertions(+), 46 deletions(-) diff --git a/Main/Utility/UIHelper.cs b/Main/Utility/UIHelper.cs index 22002a9..4853b76 100644 --- a/Main/Utility/UIHelper.cs +++ b/Main/Utility/UIHelper.cs @@ -500,7 +500,7 @@ #region 鏂囧瓧鑹插�� Bright 鍜� Dark鎸囪儗鏅壊绯绘槸鏄庤繕鏄殫锛屾殫搴曚寒瀛楋紝浜簳鏆楀瓧鐨勮鍒� public static readonly Color s_BrightPinkColor = new Color32(246, 64, 141, 255); - public static readonly Color s_BrightRedColor = new Color32(255, 3, 3, 255); + public static readonly Color s_BrightRedColor = new Color32(234, 38, 30, 255); public static readonly Color s_BrightPurpleColor = new Color32(218, 72, 213, 255); public static readonly Color s_BrightBlueColor = new Color32(0, 107, 227, 255); //006BE3FF public static readonly Color s_BrightOrangeColor = new Color32(255, 103, 1, 255); //FF6701FF @@ -508,7 +508,7 @@ public static readonly Color s_BrightGreenColor = new Color32(36, 139, 18, 255); //248b12 public static readonly Color s_DarkPinkColor = new Color32(255, 124, 124, 255); - public static readonly Color s_DarkRedColor = new Color32(250, 1, 1, 255); + public static readonly Color s_DarkRedColor = new Color32(234, 38, 30, 255); public static readonly Color s_DarkPurpleColor = new Color32(236, 75, 246, 255); public static readonly Color s_DarkBlueColor = new Color32(49, 206, 251, 255);//31cefb public static readonly Color s_DarkOrangeColor = new Color32(248, 152, 59, 255); @@ -519,7 +519,7 @@ public static readonly Color s_Black = new Color32(0, 0, 0, 255); public static readonly Color s_NavyYellow = new Color32(255, 239, 71, 255); public static readonly Color s_LightGreen = new Color32(42, 227, 55, 255);//2ae337 - public static readonly Color s_LightYellow = new Color32(245, 246, 230, 255); //f5f6e6 + public static readonly Color s_LightWhite = new Color32(245, 246, 230, 255); //f5f6e6 public static readonly Color s_Gray = new Color32(204, 204, 204, 255); public static readonly Color s_Gold = new Color32(255, 239, 71, 255);//ffef47 public static readonly Color s_EarthYellow = new Color32(248, 152, 59, 255);//f8983b @@ -650,8 +650,8 @@ return s_NavyYellow; case TextColType.LightGreen: return s_LightGreen; - case TextColType.LightYellow: - return s_LightYellow; + case TextColType.LightWhite: + return s_LightWhite; case TextColType.Gray: return s_Gray; } @@ -680,7 +680,7 @@ case TextColType.Orange: return StringUtility.Contact("<color=#", bright ? "ff6701" : "f8983b", ">", msg, "</color>"); case TextColType.Red: - return StringUtility.Contact("<color=#", bright ? "ff0303" : "ff0101", ">", msg, "</color>"); + return StringUtility.Contact("<color=#", bright ? "ea261e" : "ea261e", ">", msg, "</color>"); case TextColType.Pink: return StringUtility.Contact("<color=#", bright ? "f6408d" : "ff7c7c", ">", msg, "</color>"); case TextColType.Green: @@ -691,7 +691,7 @@ return StringUtility.Contact("<color=#", "109d06", ">", msg, "</color>"); case TextColType.Black: return StringUtility.Contact("<color=#", "000000", ">", msg, "</color>"); - case TextColType.LightYellow: + case TextColType.LightWhite: return StringUtility.Contact("<color=#", "f5f646", ">", msg, "</color>"); case TextColType.LightGreen: return StringUtility.Contact("<color=#", "8ddc11", ">", msg, "</color>"); @@ -701,20 +701,20 @@ return msg; } - //needName 鎸囧鐣�0鏄惁闇�瑕佸悕绉� - // public static string GetRealmName(int realmLv, bool bright = false, bool needName = false) - // { - // if (realmLv <= 0 && !needName) - // { - // return string.Empty; - // } - // var config = RealmConfig.Get(realmLv); - // if (config == null) - // { - // return string.Empty; - // } - // return GetRealmColorByLv(realmLv, config.Name, bright); - // } + //needName 鎸囧畼鑱�0鏄惁闇�瑕佸悕绉� + public static string GetRealmName(int realmLv, bool bright = false, bool needName = false) + { + if (realmLv <= 0 && !needName) + { + return string.Empty; + } + var config = RealmConfig.Get(realmLv); + if (config == null) + { + return string.Empty; + } + return GetRealmColorByLv(realmLv, config.Name, bright); + } //strFormat闄勫姞 澧冪晫鍚嶄互澶栫殑鏂囧瓧 //needName 鎸囧鐣�0鏄惁闇�瑕佸悕绉� @@ -732,31 +732,31 @@ // return GetRealmColorByLv(realmLv, string.Format(strFormat, config.Name), bright); // } - // public static string GetRealmColorByLv(int realmLv, string msg, bool bright = false) - // { - // var config = RealmConfig.Get(realmLv); - // if (config == null) - // { - // return string.Empty; - // } - // switch (config.Quality) - // { - // case 1: - // return StringUtility.Contact("<color=#", bright ? "666666" : "dddddd", ">", msg, "</color>"); - // case 2: - // return StringUtility.Contact("<color=#", bright ? "00b337" : "66ff00", ">", msg, "</color>"); - // case 3: - // return StringUtility.Contact("<color=#", bright ? "0066ff" : "00c6ff", ">", msg, "</color>"); - // case 4: - // return StringUtility.Contact("<color=#", bright ? "ff00f6" : "f000ff", ">", msg, "</color>"); - // case 5: - // return StringUtility.Contact("<color=#", bright ? "ff6600" : "ff9000", ">", msg, "</color>"); - // case 6: - // return StringUtility.Contact("<color=#", bright ? "ff0000" : "ff0000", ">", msg, "</color>"); - // default: - // return msg; - // } - // } + public static string GetRealmColorByLv(int realmLv, string msg, bool bright = false) + { + var config = RealmConfig.Get(realmLv); + if (config == null) + { + return string.Empty; + } + switch (config.Quality) + { + case 1: + return StringUtility.Contact("<color=#", bright ? "666666" : "dddddd", ">", msg, "</color>"); + case 2: + return StringUtility.Contact("<color=#", bright ? "00b337" : "66ff00", ">", msg, "</color>"); + case 3: + return StringUtility.Contact("<color=#", bright ? "0066ff" : "00c6ff", ">", msg, "</color>"); + case 4: + return StringUtility.Contact("<color=#", bright ? "ff00f6" : "f000ff", ">", msg, "</color>"); + case 5: + return StringUtility.Contact("<color=#", bright ? "ff6600" : "ff9000", ">", msg, "</color>"); + case 6: + return StringUtility.Contact("<color=#", bright ? "ff0000" : "ff0000", ">", msg, "</color>"); + default: + return msg; + } + } public static string AppendColor(int itemColor, string msg, bool bright = false) { -- Gitblit v1.8.0