hch
2025-12-16 cc9af124a5401aa95f56a14edb56df818c9e39e3
0312 富文本支持openui
1个文件已修改
28 ■■■■■ 已修改文件
Main/System/Message/RichNormalEvent.cs 28 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/System/Message/RichNormalEvent.cs
@@ -96,25 +96,15 @@
            //     break;
            case RichTextEventEnum.OPENUI:
                {
                    // int id = 0;
                    // if (int.TryParse(href.mSplits["openui"], out id))
                    // {
                    //     WindowJumpMgr.Instance.WindowJumpTo((JumpUIType)id);
                    // }
                    // else
                    // {
                    //     var list = href.mSplits["openui"].Split('_');
                    //     int funcOrder = 0;
                    //     if (list.Length != 1)
                    //     {
                    //         funcOrder = int.Parse(list[1]);
                    //     }
                    //     WindowJumpMgr.Instance.WindowJumpToEx(list[0], 1, 0, funcOrder);
                    //     if (list.Length > 2)
                    //     {
                    //         ModelCenter.Instance.GetModel<RoleModel>().openUIMark = int.Parse(list[2]);
                    //     }
                    // }
                    int id = 0;
                    if (int.TryParse(href.mSplits["openui"], out id))
                    {
                        UIJumpManager.Instance.OpenWindow(id);
                    }
                    else
                    {
                        Debug.LogError("RichNormalEvent.cs: OPENUI 参数错误");
                    }
                }
                break;
            case RichTextEventEnum.OPENURL: