Main/System/Main/HomeWin.cs
@@ -62,6 +62,12 @@
    [SerializeField] Button FirstChargeBtn;
    //坐骑
    [SerializeField] Image horseBGImg;
    [SerializeField] Button horseBtn;
    [SerializeField] Image horseImg;
    [SerializeField] Text horseLVText;
    /// <summary>
    /// 初始化组件
    /// </summary>
@@ -119,6 +125,8 @@
        {
            rightFuncInHome.ShowFuncCol(true);
        });
        horseBtn.AddListener(OpenHorse);
    }
@@ -137,6 +145,8 @@
        funcColBtn.SetActive(FuncOpen.Instance.IsFuncOpen(GeneralDefine.mainRightFuncOpenFuncID));
        officialTip.SetActive(OfficialRankManager.Instance.CanOfficialLVUP());
        DisplayHorse();
    }
    protected override void OnPreOpen()
@@ -466,6 +476,10 @@
        {
            funcColBtn.SetActive(FuncOpen.Instance.IsFuncOpen(GeneralDefine.mainRightFuncOpenFuncID));
        }
        else if (funcId == (int)FuncOpenEnum.Horse)
        {
            DisplayHorse();
        }
    }
    private void OnUpdateFirstChargeInfo()
@@ -482,4 +496,29 @@
    {
        DisplayCard(TeamType.Story);
    }
    void DisplayHorse()
    {
        if (FuncOpen.Instance.IsFuncOpen((int)FuncOpenEnum.Horse))
        {
            horseBGImg.SetActive(true);
            //equipShowSwitch;//当前配置的坐骑外观ID存储在  个位数十位数(最大支持 1~99)
            var skinConfig = HorseSkinConfig.Get(HorseManager.Instance.GetHorseSkinID());
            horseImg.SetOrgSprite(skinConfig.Icon, "Horse");
            horseLVText.text = Language.Get("Horse8",HorseManager.Instance.classLV, HorseManager.Instance.horseLV);
        }
        else
        {
            horseBGImg.SetActive(false);
        }
    }
    void OpenHorse()
    {
        if (FuncOpen.Instance.IsFuncOpen((int)FuncOpenEnum.Horse, true))
        {
            UIManager.Instance.OpenWindow<HorseWin>();
        }
    }
}