hch
2 天以前 8730d119e7ccb0ea69b996cb76ee059cee0e07f0
0312 引导增加可重复触发
2个文件已修改
27 ■■■■■ 已修改文件
Main/Config/Configs/GuideConfig.cs 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/System/NewBieGuidance/NewBieCenter.cs 22 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/Config/Configs/GuideConfig.cs
@@ -1,6 +1,6 @@
//--------------------------------------------------------
//    [Author]:           YYL
//    [  Date ]:           2025年10月9日
//    [  Date ]:           2025年10月11日
//--------------------------------------------------------
using System.Collections.Generic;
@@ -23,6 +23,7 @@
    public string WinName;
    public int PreGuideId;
    public int[] Steps;
    public int NoRecord;
    public override int LoadKey(string _key)
    {
@@ -59,6 +60,8 @@
                     int.TryParse(StepsStringArray[i],out Steps[i]);
                }
            }
            int.TryParse(tables[7],out NoRecord);
        }
        catch (Exception exception)
        {
Main/System/NewBieGuidance/NewBieCenter.cs
@@ -229,12 +229,19 @@
    }
    bool IsNeedRecord(int _id)
    {
        return GuideConfig.Get(_id).NoRecord == 0;
    }
    public void FinishNewBieGuide(int _id)
    {
        var guideRecord = currentGuide;
        currentGuide = 0;
        UIManager.Instance.CloseWindow<NewBieWin>();
        if (IsNeedRecord(_id))
        {
        if (!completeGuidesBuf.Contains(guideRecord))
        {
            completeGuidesBuf.Add(guideRecord);
@@ -244,6 +251,7 @@
        send.GuideIndex = (byte)_id;
        send.IsOK = 1;
        GameNetSystem.Instance.SendInfo(send);
        }
        if (guideCompletedEvent != null)
        {
@@ -255,6 +263,8 @@
    public void RemoveNewBieGuide(int _id)
    {
        if (IsNeedRecord(_id))
        {
        if (!completeGuidesBuf.Contains(_id))
        {
            completeGuidesBuf.Add(_id);
@@ -265,17 +275,25 @@
        send.IsOK = 1;
        GameNetSystem.Instance.SendInfo(send);
    }
    }
    public void FinishCurrentGuideWithoutCloseWin()
    {
        var guideRecord = currentGuide;
        currentGuide = 0;
        if (IsNeedRecord(guideRecord))
        {
            if (!completeGuidesBuf.Contains(guideRecord))
            {
        completeGuidesBuf.Add(guideRecord);
            }
        var send = new CA222_tagCMSetGuideOK();
        send.GuideIndex = (byte)guideRecord;
        send.IsOK = 1;
        GameNetSystem.Instance.SendInfo(send);
        }
        if (guideCompletedEvent != null)
        {
@@ -363,11 +381,15 @@
        currentGuide = 0;
        UIManager.Instance.CloseWindow<NewBieWin>();
        completeGuidesBuf.Clear();
        var allGuideKeys = GuideConfig.GetKeys();
        for (int i = 0; i < allGuideKeys.Count; i++)
        {
            if (IsNeedRecord(allGuideKeys[i]))
            {
            completeGuidesBuf.Add(allGuideKeys[i]);
        }
        }
    }