| | |
| | | { |
| | | // 暂不考虑富文本的情况 |
| | | // 不需要物品的情况补充 |
| | | // string iconKey = StringUtility.Contact("Money_Type_", moneyType); |
| | | // string iconKey = StringUtility.Concat("Money_Type_", moneyType); |
| | | Debug.LogError("MoneyDisplayModel 未配置货币类型:" + moneyType); |
| | | } |
| | | } |
| | |
| | | { |
| | | if (attrName.Length == 2) |
| | | { |
| | | suitStr = StringUtility.Contact(suitStr, attrName[i].ToString(), " "); |
| | | suitStr = StringUtility.Concat(suitStr, attrName[i].ToString(), " "); |
| | | } |
| | | else if (attrName.Length == 3) |
| | | { |
| | | suitStr = StringUtility.Contact(suitStr, attrName[i].ToString(), " "); |
| | | suitStr = StringUtility.Concat(suitStr, attrName[i].ToString(), " "); |
| | | } |
| | | else |
| | | { |
| | | suitStr = StringUtility.Contact(suitStr, attrName[i].ToString()); |
| | | suitStr = StringUtility.Concat(suitStr, attrName[i].ToString()); |
| | | } |
| | | } |
| | | else |
| | | { |
| | | suitStr = StringUtility.Contact(suitStr, attrName[i].ToString()); |
| | | suitStr = StringUtility.Concat(suitStr, attrName[i].ToString()); |
| | | } |
| | | } |
| | | return suitStr; |
| | |
| | | |
| | | if (num >= T) |
| | | { |
| | | return StringUtility.Contact(FormatWithoutRounding(num / T, 2), Language.Get("L1070_0")); |
| | | return StringUtility.Concat(FormatWithoutRounding(num / T, 2), Language.Get("L1070_0")); |
| | | } |
| | | else if (num >= B) |
| | | { |
| | | return StringUtility.Contact(FormatWithoutRounding(num / B, 2), Language.Get("L1070_1")); |
| | | return StringUtility.Concat(FormatWithoutRounding(num / B, 2), Language.Get("L1070_1")); |
| | | } |
| | | else if (num >= M) |
| | | { |
| | | return StringUtility.Contact(FormatWithoutRounding(num / M, decimalPlaces), Language.Get("L1070")); |
| | | return StringUtility.Concat(FormatWithoutRounding(num / M, decimalPlaces), Language.Get("L1070")); |
| | | } |
| | | else if (num >= K) |
| | | { |
| | | return StringUtility.Contact(FormatWithoutRounding(num / K, decimalPlaces), Language.Get("L1071")); |
| | | return StringUtility.Concat(FormatWithoutRounding(num / K, decimalPlaces), Language.Get("L1071")); |
| | | } |
| | | else |
| | | { |
| | |
| | | |
| | | if (num >= T) |
| | | { |
| | | return StringUtility.Contact(FormatWithoutRounding(num / T, 2), "t"); |
| | | return StringUtility.Concat(FormatWithoutRounding(num / T, 2), "t"); |
| | | } |
| | | else if (num >= B) |
| | | { |
| | | return StringUtility.Contact(FormatWithoutRounding(num / B, 2), "b"); |
| | | return StringUtility.Concat(FormatWithoutRounding(num / B, 2), "b"); |
| | | } |
| | | else if (num >= M) |
| | | { |
| | | return StringUtility.Contact(FormatWithoutRounding(num / M, 1), "m"); |
| | | return StringUtility.Concat(FormatWithoutRounding(num / M, 1), "m"); |
| | | } |
| | | else if (num >= K) |
| | | { |
| | | return StringUtility.Contact(FormatWithoutRounding(num / K, 1), "k"); |
| | | return StringUtility.Concat(FormatWithoutRounding(num / K, 1), "k"); |
| | | } |
| | | else |
| | | { |
| | |
| | | // switch (crossDanLVConfig.DanType) |
| | | // { |
| | | // case 0: |
| | | // return StringUtility.Contact("<color=#", bright ? "666666" : "dddddd", ">", name, "</color>"); |
| | | // return StringUtility.Concat("<color=#", bright ? "666666" : "dddddd", ">", name, "</color>"); |
| | | // case 1: |
| | | // return StringUtility.Contact("<color=#", bright ? "9460ff" : "7999ff", ">", name, "</color>"); |
| | | // return StringUtility.Concat("<color=#", bright ? "9460ff" : "7999ff", ">", name, "</color>"); |
| | | // case 2: |
| | | // return StringUtility.Contact("<color=#", bright ? "0066ff" : "00c6ff", ">", name, "</color>"); |
| | | // return StringUtility.Concat("<color=#", bright ? "0066ff" : "00c6ff", ">", name, "</color>"); |
| | | // case 3: |
| | | // return StringUtility.Contact("<color=#", bright ? "00b337" : "66ff00", ">", name, "</color>"); |
| | | // return StringUtility.Concat("<color=#", bright ? "00b337" : "66ff00", ">", name, "</color>"); |
| | | // case 4: |
| | | // return StringUtility.Contact("<color=#", bright ? "ff6600" : "ff9000", ">", name, "</color>"); |
| | | // return StringUtility.Concat("<color=#", bright ? "ff6600" : "ff9000", ">", name, "</color>"); |
| | | // case 5: |
| | | // return StringUtility.Contact("<color=#", bright ? "ff0000" : "ff0000", ">", name, "</color>"); |
| | | // return StringUtility.Concat("<color=#", bright ? "ff0000" : "ff0000", ">", name, "</color>"); |
| | | // case 6: |
| | | // return StringUtility.Contact("<color=#", bright ? "ff00f6" : "f000ff", ">", name, "</color>"); |
| | | // return StringUtility.Concat("<color=#", bright ? "ff00f6" : "f000ff", ">", name, "</color>"); |
| | | // } |
| | | // return name; |
| | | // } |
| | |
| | | case TextColType.White: |
| | | return StringUtility.Concat("<color=#", bright ? "ffffff" : "ffffff", ">", msg, "</color>"); |
| | | case TextColType.titleSelectColor: |
| | | return StringUtility.Contact("<color=#7F4139>", msg, "</color>"); |
| | | return StringUtility.Concat("<color=#7F4139>", msg, "</color>"); |
| | | case TextColType.titleUnSelectColor: |
| | | return StringUtility.Contact("<color=#6E5C60>", msg, "</color>"); |
| | | return StringUtility.Concat("<color=#6E5C60>", msg, "</color>"); |
| | | case TextColType.Red: |
| | | return StringUtility.Concat("<color=#", bright ? "ea261e" : "ea261e", ">", msg, "</color>"); |
| | | case TextColType.Pink: |
| | |
| | | case TextColType.Green: |
| | | return StringUtility.Concat("<color=#", bright ? "248B12" : "2ae337", ">", msg, "</color>"); |
| | | case TextColType.NavyBrown: |
| | | return StringUtility.Contact("<color=#6e4c31>", msg, "</color>"); |
| | | return StringUtility.Concat("<color=#6e4c31>", msg, "</color>"); |
| | | case TextColType.DarkGreen: |
| | | return StringUtility.Contact("<color=#248B12>", msg, "</color>"); |
| | | return StringUtility.Concat("<color=#248B12>", msg, "</color>"); |
| | | case TextColType.Black: |
| | | return StringUtility.Contact("<color=#000000>", msg, "</color>"); |
| | | return StringUtility.Concat("<color=#000000>", msg, "</color>"); |
| | | case TextColType.LightWhite: |
| | | return StringUtility.Contact("<color=f5f646>", msg, "</color>"); |
| | | return StringUtility.Concat("<color=f5f646>", msg, "</color>"); |
| | | case TextColType.LightGreen: |
| | | return StringUtility.Contact("<color=#8ddc11>", msg, "</color>"); |
| | | return StringUtility.Concat("<color=#8ddc11>", msg, "</color>"); |
| | | case TextColType.Gray: |
| | | return StringUtility.Contact("<color=#bbbbbb>", msg, "</color>"); |
| | | return StringUtility.Concat("<color=#bbbbbb>", msg, "</color>"); |
| | | case TextColType.NavyGray: |
| | | return StringUtility.Contact("<color=#797979>", msg, "</color>"); |
| | | return StringUtility.Concat("<color=#797979>", msg, "</color>"); |
| | | case TextColType.lightYellow: |
| | | return StringUtility.Contact("<color=#fcedb9>", msg, "</color>"); |
| | | return StringUtility.Concat("<color=#fcedb9>", msg, "</color>"); |
| | | case TextColType.NavyYellow: |
| | | return StringUtility.Contact("<color=#f2ee02>", msg, "</color>"); |
| | | return StringUtility.Concat("<color=#f2ee02>", msg, "</color>"); |
| | | case TextColType.itemjingliang: |
| | | // 729de4 精良 |
| | | return StringUtility.Contact("<color=#729de4>", msg, "</color>"); |
| | | return StringUtility.Concat("<color=#729de4>", msg, "</color>"); |
| | | case TextColType.itemxiyou: |
| | | // c87bfa稀有 |
| | | return StringUtility.Contact("<color=#c87bfa>", msg, "</color>"); |
| | | return StringUtility.Concat("<color=#c87bfa>", msg, "</color>"); |
| | | case TextColType.itemshishi: |
| | | // f6de56 史诗 |
| | | return StringUtility.Contact("<color=#f6de56>", msg, "</color>"); |
| | | return StringUtility.Concat("<color=#f6de56>", msg, "</color>"); |
| | | case TextColType.itemchuanqi: |
| | | // fe8534 传奇 |
| | | return StringUtility.Contact("<color=#fe8534>", msg, "</color>"); |
| | | return StringUtility.Concat("<color=#fe8534>", msg, "</color>"); |
| | | case TextColType.itemshenhua: |
| | | // fe4a47 神话 |
| | | return StringUtility.Contact("<color=#fe4a47>", msg, "</color>"); |
| | | return StringUtility.Concat("<color=#fe4a47>", msg, "</color>"); |
| | | case TextColType.itemwuxia: |
| | | // eb5ce9 无瑕 |
| | | return StringUtility.Contact("<color=#eb5ce9>", msg, "</color>"); |
| | | return StringUtility.Concat("<color=#eb5ce9>", msg, "</color>"); |
| | | case TextColType.itemanjin: |
| | | // f9e29f 暗金 |
| | | return StringUtility.Contact("<color=#f9e29f>", msg, "</color>"); |
| | | return StringUtility.Concat("<color=#f9e29f>", msg, "</color>"); |
| | | case TextColType.itemjueyi: |
| | | // cdfef2 绝艺 |
| | | return StringUtility.Contact("<color=#cdfef2>", msg, "</color>"); |
| | | return StringUtility.Concat("<color=#cdfef2>", msg, "</color>"); |
| | | case TextColType.itemyuanzu: |
| | | // dfbbed 元祖 |
| | | return StringUtility.Contact("<color=#dfbbed>", msg, "</color>"); |
| | | return StringUtility.Concat("<color=#dfbbed>", msg, "</color>"); |
| | | case TextColType.itembuxiu: |
| | | // 5eeff2 不朽 |
| | | return StringUtility.Contact("<color=#5eeff2>", msg, "</color>"); |
| | | return StringUtility.Concat("<color=#5eeff2>", msg, "</color>"); |
| | | case TextColType.itemyonghen: |
| | | // f5b4ea 永恒 |
| | | return StringUtility.Contact("<color=#f5b4ea>", msg, "</color>"); |
| | | return StringUtility.Concat("<color=#f5b4ea>", msg, "</color>"); |
| | | } |
| | | return msg; |
| | | } |
| | |
| | | // switch (config.Quality) |
| | | // { |
| | | // case 1: |
| | | // return StringUtility.Contact("<color=#", bright ? "666666" : "dddddd", ">", msg, "</color>"); |
| | | // return StringUtility.Concat("<color=#", bright ? "666666" : "dddddd", ">", msg, "</color>"); |
| | | // case 2: |
| | | // return StringUtility.Contact("<color=#", bright ? "00b337" : "66ff00", ">", msg, "</color>"); |
| | | // return StringUtility.Concat("<color=#", bright ? "00b337" : "66ff00", ">", msg, "</color>"); |
| | | // case 3: |
| | | // return StringUtility.Contact("<color=#", bright ? "0066ff" : "00c6ff", ">", msg, "</color>"); |
| | | // return StringUtility.Concat("<color=#", bright ? "0066ff" : "00c6ff", ">", msg, "</color>"); |
| | | // case 4: |
| | | // return StringUtility.Contact("<color=#", bright ? "ff00f6" : "f000ff", ">", msg, "</color>"); |
| | | // return StringUtility.Concat("<color=#", bright ? "ff00f6" : "f000ff", ">", msg, "</color>"); |
| | | // case 5: |
| | | // return StringUtility.Contact("<color=#", bright ? "ff6600" : "ff9000", ">", msg, "</color>"); |
| | | // return StringUtility.Concat("<color=#", bright ? "ff6600" : "ff9000", ">", msg, "</color>"); |
| | | // case 6: |
| | | // return StringUtility.Contact("<color=#", bright ? "ff0000" : "ff0000", ">", msg, "</color>"); |
| | | // return StringUtility.Concat("<color=#", bright ? "ff0000" : "ff0000", ">", msg, "</color>"); |
| | | // default: |
| | | // return msg; |
| | | // } |
| | |
| | | // { |
| | | // return string.Empty; |
| | | // } |
| | | // return StringUtility.Contact(GetEquipSuitName(itmeId, bright), itemConfig.ItemName); |
| | | // return StringUtility.Concat(GetEquipSuitName(itmeId, bright), itemConfig.ItemName); |
| | | // } |
| | | |
| | | public static string GetStar(int star) |