|  |  | 
 |  |  |             _image.SetOrgSprite(ItemConfig.Get(GeneralDefine.MoneyDisplayModel[moneyType]).IconKey); | 
 |  |  |         } | 
 |  |  |         else | 
 |  |  |         {  | 
 |  |  |         { | 
 |  |  |             Debug.LogError("MoneyDisplayModel 为配置货币类型:" + moneyType); | 
 |  |  |         } | 
 |  |  |     } | 
 |  |  | 
 |  |  |         } | 
 |  |  |         else | 
 |  |  |         { | 
 |  |  |             Debug.LogError("MoneyDisplayModel 为配置货币类型:" + moneyType); | 
 |  |  |             Debug.LogError("MoneyDisplayModel 未配置货币类型:" + moneyType); | 
 |  |  |             return ""; | 
 |  |  |         } | 
 |  |  |     } | 
 |  |  | 
 |  |  |                 // 5d1d52 永恒 | 
 |  |  |                 return new Color32(93, 29, 82, 128); | 
 |  |  |             case QualityTextColType.red: | 
 |  |  |                 return s_BrightRedColor; | 
 |  |  |                 return s_DarkRedColor; | 
 |  |  |         } | 
 |  |  |         return new Color32(0, 0, 0, 128); | 
 |  |  |     } | 
 |  |  | 
 |  |  |                 return StringUtility.Contact("<color=#dfbbed>", msg, "</color>"); | 
 |  |  |             case TextColType.itembuxiu: | 
 |  |  |                 // 5eeff2 不朽 | 
 |  |  |                 return  StringUtility.Contact("<color=#5eeff2>", msg, "</color>"); | 
 |  |  |                 return StringUtility.Contact("<color=#5eeff2>", msg, "</color>"); | 
 |  |  |             case TextColType.itemyonghen: | 
 |  |  |                 // f5b4ea 永恒 | 
 |  |  |                 return StringUtility.Contact("<color=#f5b4ea>", msg, "</color>"); | 
 |  |  | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     public static string AppendColor(Color color, string msg) | 
 |  |  |     {  | 
 |  |  |     { | 
 |  |  |         return StringUtility.Contact("<color=#", ColorToHexWithHash(color), ">", msg, "</color>"); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  | 
 |  |  |     } | 
 |  |  |     #endregion | 
 |  |  |  | 
 |  |  |      | 
 |  |  |  | 
 |  |  |  | 
 |  |  |     #region 得到金钱数量根据金钱类型 | 
 |  |  |  | 
 |  |  | 
 |  |  |     public static string ShowUseMoney(int moneyType, long useCnt, TextColType engoughColor = TextColType.Green) | 
 |  |  |     { | 
 |  |  |         long cnt = GetMoneyCnt(moneyType); | 
 |  |  |         return AppendColor(useCnt <= cnt ? engoughColor : TextColType.Red, $"{ReplaceLargeNum(useCnt)}/{ReplaceLargeNum(cnt)}"); | 
 |  |  |         return AppendColor(useCnt <= cnt ? engoughColor : TextColType.Red, $"{ReplaceLargeNum(cnt)}/{ReplaceLargeNum(useCnt)}"); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     public static string ShowUseItem(PackType type, int itemId, long useCnt, TextColType engoughColor = TextColType.Green) | 
 |  |  |     { | 
 |  |  |         long cnt = PackManager.Instance.GetItemCountByID(type, itemId); | 
 |  |  |         return AppendColor(useCnt <= cnt ? engoughColor : TextColType.Red, $"{ReplaceLargeNum(useCnt)}/{ReplaceLargeNum(cnt)}"); | 
 |  |  |         return AppendColor(useCnt <= cnt ? engoughColor : TextColType.Red, $"{ReplaceLargeNum(cnt)}/{ReplaceLargeNum(useCnt)}"); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     #endregion | 
 |  |  |  | 
 |  |  |     #region 得到装备位或者祝福树品质名称 带颜色 | 
 |  |  |     public static string GetQualityNameWithColor(int quality, string format="{0}") | 
 |  |  |     public static string GetQualityNameWithColor(int quality, string format = "{0}") | 
 |  |  |     { | 
 |  |  |         return AppendColor(quality, string.Format(format, Language.Get("equipQuality" + quality)), true, 1); | 
 |  |  |     } | 
 |  |  | 
 |  |  |         return money / scale; | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |  | 
 |  |  |     public static string RemoveColor(string content) | 
 |  |  |     {  | 
 |  |  |         content = WordAnalysis.Color_Start_Regex.Replace(content, string.Empty); | 
 |  |  |         content = WordAnalysis.Color_End_Regex.Replace(content, string.Empty); | 
 |  |  |         return content; | 
 |  |  |     } | 
 |  |  | } |