| | |
| | | presentImgInfo.IsFace = true; |
| | | if (RichTextMgr.Inst.presentRichText != null) |
| | | { |
| | | presentImgInfo.height = RichTextMgr.Inst.presentRichText.FaceSize; |
| | | int height = 0; |
| | | if (RichTextMgr.Inst.presentRichText.FaceSize != 0)
|
| | | { |
| | | height = (int)RichTextMgr.Inst.presentRichText.FaceSize; |
| | | } |
| | | else |
| | | { |
| | | if (UIFrameMgr.Inst.ContainsDynamicImage(presentImgInfo.spriteName))
|
| | | { |
| | | var list = UIFrameMgr.Inst.GetDynamicImage(presentImgInfo.spriteName); |
| | | height = (int)list[0].rect.height; |
| | | } |
| | | else
|
| | | {
|
| | | height = 40;
|
| | | } |
| | | } |
| | | presentImgInfo.height = height;
|
| | | presentImgInfo.width = presentImgInfo.height; |
| | | } |
| | | } |
| | |
| | | { |
| | | string result = match.Groups[1].Value.Replace("0", ""); |
| | | m_StringBuilder.Append(msg.Substring(index, match.Index - index)); |
| | | if (UIFrameMgr.Inst.ContainsFace(result)) |
| | | if (UIFrameMgr.Inst.ContainsDynamicImage(result)) |
| | | { |
| | | m_StringBuilder.Append(string.Format("<Img face={0}/>", result)); |
| | | } |