少年修仙传客户端代码仓库
client_linchunjie
2019-05-25 69f74f9557a88f9766d51b58f74f2d6921838bcf
3335 富文本支持自定义颜色
2个文件已修改
4 ■■■■ 已修改文件
System/Message/WordAnalysis.cs 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Utility/UIHelper.cs 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Message/WordAnalysis.cs
@@ -80,6 +80,8 @@
                {
                    colorType = text.colorType == RichText.ColorType.Dark ? 0 : 1;
                }
                result = Color_Start_Regex.Replace(result, string.Empty);
                result = Color_End_Regex.Replace(result, string.Empty);
                result = UIHelper.AppendColor(presentColor, result, colorType == 1);
            }
            m_StringBuilder.Append(result);
Utility/UIHelper.cs
@@ -681,6 +681,8 @@
                return AppendColor(TextColType.Red, msg, bright);
            case 6:
                return AppendColor(TextColType.Pink, msg, bright);
            case 9:
                return AppendColor(TextColType.Green, msg, bright);
        }
        return msg;
    }