500 子 【武将】武将时装
1. 皮肤商店增加跳转
2. 皮肤标签选中放大
3. 皮肤界面武将名称颜色
4个文件已修改
41 ■■■■■ 已修改文件
Main/System/HeroUI/HeroSkinCell.cs 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/System/HeroUI/HeroSkinWin.cs 29 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/System/Horse/HorseController.cs 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/System/Store/SkinStoreCell.cs 9 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/System/HeroUI/HeroSkinCell.cs
@@ -13,6 +13,7 @@
    [SerializeField] Image ungetImg;
    [SerializeField] Image fakeRed;
    [SerializeField] Button cardBtn;
    [SerializeField] Transform selectObj;   //放大用
    public void Display(int heroID, int index, bool isHero)
    {
@@ -35,6 +36,7 @@
            skinRoleOnImg.SetActive(hero.SkinIndex != hero.SkinAttrIndex && hero.SkinIndex == index);
        }
        unselectImg.SetActive(HeroUIManager.Instance.selectSkinIndex != index);
        selectObj.localScale = HeroUIManager.Instance.selectSkinIndex != index ? Vector3.one*0.9f : Vector3.one * 1f;
        ungetImg.SetActive(!HeroUIManager.Instance.IsHeroSkinActive(heroID, skinID));
        fakeRed.SetActive(HeroUIManager.Instance.HeroSkinStateForRedpoint(skinID) > 0);
        cardBtn.AddListener(()=>
Main/System/HeroUI/HeroSkinWin.cs
@@ -17,7 +17,7 @@
    [SerializeField] Button previewFightBtn;   //预览战斗
    [SerializeField] Button shopBtn;   //商店
    [SerializeField] Button changeClothBtn;   //只更换服装外观
    [SerializeField] Text nameText;
    [SerializeField] GradientText nameText;
    [SerializeField] Text skinNameText;
    // [SerializeField] Text skinLVText;
    //属性区
@@ -145,6 +145,33 @@
        roleXsModel.Create(skinID, 1);
        HeroUIManager.Instance.PlayerLHSound(skinID);
        nameText.text = heroConfig.Name;
        switch (heroConfig.Quality)
        {
            case 3:
                //fff8db
                // nameText.topLeftColor = new Color(0.98f, 0.94f, 0.91f);
                nameText.topLeftColor = new Color(1f, 1f, 1f);
                //ffe050
                nameText.bottomLeftColor = new Color(0.98f, 0.88f, 0.25f);
                break;
            case 4:
                // ffe8db
                // ff9250
                // nameText.topLeftColor = new Color(0.98f, 0.94f, 0.91f);
                nameText.topLeftColor = new Color(1f, 1f, 1f);
                nameText.bottomLeftColor = new Color(0.98f, 0.41f, 0.25f);
                break;
            case 5:
                // ffdbdb
                // ff5050
                // nameText.topLeftColor = new Color(0.98f, 0.88f, 0.88f);
                nameText.topLeftColor = new Color(1f, 1f, 1f);
                nameText.bottomLeftColor = new Color(0.98f, 0.25f, 0.25f);
                break;
        }
        skinNameText.text = HeroSkinConfig.Get(skinID).SkinName;
        RefreshAttr();
        ShowBtns();
Main/System/Horse/HorseController.cs
@@ -20,6 +20,7 @@
    private bool isHeroShowBefore = false;
    // 创建坐骑 :id为0空坐骑也有配置
    //_skinID 坐骑的皮肤ID
    public void Create(int _skinID, int _heroSkinID = 0, float scale = 1f, Action _onComplete = null, string motionName = "idle")
    {
        pool = GameObjectPoolManager.Instance.GetPool(UILoader.LoadPrefab("UIHorse"));
Main/System/Store/SkinStoreCell.cs
@@ -6,6 +6,7 @@
public class SkinStoreCell : MonoBehaviour
{
    [SerializeField] Image skinImage;
    [SerializeField] Button skinBtn; //跳转皮肤界面
    [SerializeField] Image skinFrame;
    [SerializeField] Text skinName;
    [SerializeField] Text heroName;
@@ -54,7 +55,13 @@
        
        priceIcon.SetIconWithMoneyType(storeData.storeConfig.MoneyType);
        priceText.text = storeData.storeConfig.MoneyNum.ToString();
        skinBtn.AddListener(()=>
        {
            HeroUIManager.Instance.selectForPreviewHeroID = heroID;
            HeroUIManager.Instance.selectSkinIndex = HeroDebutManager.Instance.GetSkinIndexInHeroConfig(heroID, skinID);
            UIManager.Instance.OpenWindow<HeroBestBaseWin>(1);
        });
    }
    void BuyGoods(int shopID)