hch
2026-03-20 2e1b809d4bb794b2dcd75e0e9223d3c2c5de991d
Main/System/Message/SysNotifyMgr.cs
@@ -1,5 +1,4 @@
using vnxbqy.UI;
using System;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Text.RegularExpressions;
@@ -32,6 +31,7 @@
    private void Awake()
    {
        DTC0102_tagCDBPlayer.beforePlayerDataInitializeEvent += BeforePlayerDataInitializeEvent;
        StageManager.Instance.AfterLoadingGameScene += OnStageLoadFinish;
        // StageLoad.Instance.onStageLoadFinish += OnStageLoadFinish;
        Co_Instance().Forget();
    }
@@ -57,6 +57,7 @@
    {
        base.OnDestroy();
        DTC0102_tagCDBPlayer.beforePlayerDataInitializeEvent -= BeforePlayerDataInitializeEvent;
        StageManager.Instance.AfterLoadingGameScene -= OnStageLoadFinish;
        // StageLoad.Instance.onStageLoadFinish -= OnStageLoadFinish;
    }
@@ -67,13 +68,12 @@
        // BattleHint.Instance.OnStageLoadFinish();
    }
    private void BeforePlayerDataInitializeEvent()
    public void BeforePlayerDataInitializeEvent()
    {
        ScrollTip.m_Hints.Clear();
        ServerTipDetails.ClearHint();
    }
    // // TODO YYL
    public void ReceiveNotifyCode(H0212_tagNotifyCode vNetData)
    {
        if (vNetData != null)
@@ -113,7 +113,6 @@
#if UNITY_EDITOR
            string hint = Language.Get("L1093", key);
            ScrollTip.ShowTip(hint);
            ChatManager.Instance.RevChatInfo(hint);
#endif
        }
        else
@@ -151,15 +150,37 @@
        }
    }
    //信息提示表的提示
    public void ShowTip(string key, params object[] msg)
    {
        SysInfoConfig cfg = SysInfoConfig.Get(key);
        if (cfg != null)
        {
            if (string.IsNullOrEmpty(cfg.richText))
            {
                return;
            }
            tipInfoList.Clear();
            tipInfoList.AddRange(msg);
            AnalysisSysmsg(cfg);
        }
        else
        {
            Debug.LogError("未找到系统提示信息: " + key);
        }
    }
    //语言表的提示
    public void ShowLangTip(string key, params object[] msg)
    {
        string hint = Language.Get(key, msg);
        ScrollTip.ShowTip(hint);
    }
    //直接传文字的提示
    public void ShowStringTip(string hint)
    {
        ScrollTip.ShowTip(hint);
    }
    void AnalysisSysmsg(SysInfoConfig cfg)
@@ -218,20 +239,13 @@
                    ServerTipDetails.ShowServerTip(msg, tipInfoList, order);
                    break;
                case SysNotifyType.SysMarqueeTip:
                    ServerTipDetails.ShowMarquee(msg, tipInfoList,order);
                    ServerTipDetails.ShowMarquee(msg, tipInfoList, order);
                    break;
                case SysNotifyType.SysChanelTip:
                    ChatManager.Instance.RevChatInfo(msg, tipInfoList);
                case SysNotifyType.ChatChannelWorld:
                    ChatManager.Instance.AddSysData(msg, tipInfoList, ChatChannel.World, true);
                    break;
                case SysNotifyType.SysFairyQuestionTip:
                    ChatManager.Instance.RevChatInfo(msg, tipInfoList, ChatInfoType.FairyQuestion);
                    break;
                case SysNotifyType.SysFairyTip:
                    ChatManager.Instance.RevChatInfo(msg, tipInfoList, ChatInfoType.FairyTip);
                    break;
                case SysNotifyType.SysTeamTip:
                    ChatManager.Instance.RevChatInfo(msg, tipInfoList, ChatInfoType.TeamTip);
                case SysNotifyType.ChatChannelGuild:
                    ChatManager.Instance.AddSysData(msg, tipInfoList, ChatChannel.Guild, true);
                    break;
                case SysNotifyType.SysRealmTip:
                    if (OnSysTipEvent != null)
@@ -240,13 +254,11 @@
                    }
                    break;
                //  TODO YYL
                // case SysNotifyType.SysEvenKill:
                //     BattleHint.Instance.ReceiveEvenKill(msg, tipInfoList);
                //     break;
                case SysNotifyType.SysFactionTip:
                    ChatManager.Instance.RevChatInfo(msg, tipInfoList, ChatInfoType.default2);
                    break;
                    //  TODO YYL
                    // case SysNotifyType.SysEvenKill:
                    //     BattleHint.Instance.ReceiveEvenKill(msg, tipInfoList);
                    //     break;
            }
        }
@@ -266,7 +278,8 @@
        SysChatWin = 6, //聊天位置的提示
        SysEvenKill = 7,//上古战场连杀提示
        SysFixedTip1 = 11,//固定提示2
        SysChanelTip = 20,//系统频道显示
        ChatChannelWorld = 20,//聊天-世界频道
        ChatChannelGuild = 21,//聊天-公会频道
        SysFairyQuestionTip = 31,//仙盟频道问答提示
        SysFairyTip = 32,//仙盟频道信息提示
        SysTeamTip = 41,//队伍频道提示