Browse Source

引导购买

zhaoyang 3 years ago
parent
commit
2a85c9e4b5

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Views/ClothingShop/ClothingShopView.cs

@@ -370,7 +370,7 @@ namespace GFGGame
         {
             if (!ViewManager.CheckIsTopView(this.viewCom)) return;
 
-            GuideController.TryGuide(_ui.m_btnBack, ConstGuideId.BUY_CLOTHING, 4, "点击返回,回到换装", -1, true, 140);
+            GuideController.TryGuide(_ui.m_btnBack, ConstGuideId.BUY_CLOTHING, 4, "回到换装", -1, true, 140);
         }
     }
 }

+ 18 - 3
GameClient/Assets/Game/HotUpdate/Views/DressUp/DressUpFightView.cs

@@ -919,6 +919,8 @@ namespace GFGGame
 
             int syIndex = 0;
             int xzIndex = 0;
+            int buyClothingIndex = 0;
+
             int len = _ui.m_comListType1.m_listType.numChildren;
             for (int i = 0; i < len; i++)
             {
@@ -935,16 +937,29 @@ namespace GFGGame
                     {
                         xzIndex = i;
                     }
+                    if (_fightCfg.needItemId > 0)
+                    {
+                        int type = ItemUtilCS.GetItemSubType(_fightCfg.needItemId);
+                        if (GuideDataManager.IsGuideFinish(ConstGuideId.BUY_CLOTHING) <= 0 && dressUpMenuItemCfg1.type == type)
+                        {
+                            buyClothingIndex = i;
+                        }
+                    }
                 }
             }
             int djcId = 10476;//点绛唇Id
             int djcIndex = 0;
+            int buyClothingIdIndex = 0;
+
             for (int i = 0; i < _currentList3.Count; i++)
             {
                 if (_currentList3[i] == djcId)
                 {
                     djcIndex = i;
-                    break;
+                }
+                if (_fightCfg.needItemId > 0 && _currentList3[i] == _fightCfg.needItemId)
+                {
+                    buyClothingIdIndex = i;
                 }
             }
             GuideController.TryGuide(_ui.m_comListType1.m_listType, ConstGuideId.SINGLE_FIGHT, 3, "点击相应的分类,可以快速找到服饰", syIndex);
@@ -955,8 +970,8 @@ namespace GFGGame
             GuideController.TryGuide(_ui.m_btnNext, ConstGuideId.SINGLE_FIGHT, 8, "穿着完毕,来验证一下,换上的服饰是否符合需求");
 
             GuideController.TryGuide(_ui.m_compNeed.target, ConstGuideId.BUY_CLOTHING, 1, "当提示有“必需品”时,需要穿上对应物品才能通关", -1, true, 170);
-            if (listTypeItem_BuyClothing != null) GuideController.TryGuide(listTypeItem_BuyClothing.target, ConstGuideId.BUY_CLOTHING, 5, "在相应分类里就可以找到必需品啦", -1, true, (int)listTypeItem_BuyClothing.target.y);
-            GuideController.TryGuide(_ui.m_partsList.m_list, ConstGuideId.BUY_CLOTHING, 6, "点击换上吧", 0, true, 170);
+            GuideController.TryGuide(_ui.m_comListType1.m_listType, ConstGuideId.BUY_CLOTHING, 5, "按照指示就可以找到必需品啦", buyClothingIndex, true, (int)listTypeItem_BuyClothing.target.y);
+            GuideController.TryGuide(_ui.m_partsList.m_list, ConstGuideId.BUY_CLOTHING, 6, "点击换上吧", buyClothingIdIndex, true, 170);
             GuideController.TryCompleteGuide(ConstGuideId.BUY_CLOTHING, 6);
 
             GuideController.TryGuide(_ui.m_btnHint, ConstGuideId.TARGET_FIGHT, 1, "这次换装需要获得别人的认可呢");