Explorar el Código

穿戴必须品引导

zhaoyang hace 2 años
padre
commit
02e992ee85

+ 1 - 1
FGUIProject/assets/CommonGame/package.xml

@@ -207,7 +207,7 @@
     <image id="si5ztig" name="tc_xiant.png" path="/imgnew/"/>
     <component id="si5ztih" name="ComBg.xml" path="/components/" exported="true"/>
     <image id="si5ztii" name="tc_txbiao_1.png" path="/imgFunIcon/" exported="true"/>
-    <image id="s5s9tij" name="js_icon_.png" path="/imgFunIcon/"/>
+    <image id="s5s9tij" name="js_icon_.png" path="/imgFunIcon/" exported="true"/>
     <component id="s5s9tik" name="ItemExchangeUI.xml" path="/" exported="true"/>
     <image id="s5s9til" name="tc_anniu_qd.png" path="/imgnew/"/>
     <image id="s5s9tim" name="tc_anniu_qx.png" path="/imgnew/"/>

+ 3 - 1
GameClient/Assets/Game/HotUpdate/ServerProxy/CustomSuitSProxy.cs

@@ -20,7 +20,7 @@ namespace GFGGame
             {
                 suitProto.EquipIds.Add(equipId);
             }
-            M2C_SaveCustomSuit response = (M2C_SaveCustomSuit) await MessageHelper.SendToServer(new C2M_SaveCustomSuit()
+            M2C_SaveCustomSuit response = (M2C_SaveCustomSuit)await MessageHelper.SendToServer(new C2M_SaveCustomSuit()
             {
                 suit = suitProto
             });
@@ -29,6 +29,8 @@ namespace GFGGame
                 if (response.Error == ErrorCode.ERR_Success)
                 {
                     CustomSuitDataManager.SaveSuit(index, arrayList, bgID, suitId, pic);
+                    PromptController.Instance.ShowFloatTextPrompt("保存成功", MessageType.SUCCESS);
+
                 }
             }
         }

+ 1 - 0
GameClient/Assets/Game/HotUpdate/Views/CommonGame/ApproachView.cs

@@ -64,6 +64,7 @@ namespace GFGGame
         {
             _ui.m_txtNone.visible = _approachDatas.Count == 0;
             _ui.m_list.numItems = _approachDatas.Count;
+            _ui.m_list.data = _approachDatas;
         }
 
         private void ListApproachItemRenderer(int index, GObject item)

+ 34 - 2
GameClient/Assets/Game/HotUpdate/Views/CommonGame/GoodsItemTipsView.cs

@@ -1,6 +1,8 @@
 using FairyGUI;
 using UI.CommonGame;
 using System.Collections;
+using System.Collections.Generic;
+
 namespace GFGGame
 {
     public class GoodsItemTipsView : BaseWindow
@@ -47,6 +49,7 @@ namespace GFGGame
             UpdateBase();
             UpdateScore();
             UpdateSourec(sourceDatas);
+            Timers.inst.AddUpdate(CheckGuide);
         }
         protected override void OnHide()
         {
@@ -54,6 +57,7 @@ namespace GFGGame
             {
                 approachView.OnHide();
             }
+            Timers.inst.Remove(CheckGuide);
             base.OnHide();
         }
         protected override void RemoveEventListener()
@@ -94,7 +98,35 @@ namespace GFGGame
             approachView.OnShow(_ui.m_comTipsApproach.target, sourceDatas);
         }
 
-
-
+        private void CheckGuide(object param)
+        {
+            if (_ui.m_comTipsApproach.m_list.numItems > 0 && GuideDataManager.IsGuideFinish(ConstGuideId.BUY_CLOTHING) <= 0)
+            {
+                UpdateToCheckGuide(null);
+            }
+            else
+            {
+                Timers.inst.Remove(CheckGuide);
+            }
+        }
+        protected override void UpdateToCheckGuide(object param)
+        {
+            if (!ViewManager.CheckIsTopView(this.viewCom)) return;
+            List<string[]> _approachDatas = _ui.m_comTipsApproach.m_list.data as List<string[]>;
+            if (_approachDatas == null) return;
+            GObject obj = null;
+            for (int i = 0; i < _approachDatas.Count; i++)
+            {
+                if (_approachDatas[i][0] == ConstFunctionId.FU_ZHUANG_DIAN)
+                {
+                    _ui.m_comTipsApproach.m_list.ScrollToView(i);
+                    UI_ListSourceItem item = UI_ListSourceItem.Proxy(_ui.m_comTipsApproach.m_list.GetChildAt(i));
+                    obj = item.m_btnGo.target;
+                    UI_ListSourceItem.ProxyEnd();
+                    break;
+                }
+            }
+            GuideController.TryGuide(obj, ConstGuideId.BUY_CLOTHING, 4, "该物品可以在服装店购买,点开服装店看看。", -1, true, (int)(this.viewCom.y + this.viewCom.height + 10));
+        }
     }
 }

+ 0 - 1
GameClient/Assets/Game/HotUpdate/Views/DressUp/DressUpView.cs

@@ -347,7 +347,6 @@ namespace GFGGame
         private void OnClickBtnSave()
         {
             CustomSuitDataManager.SaveCurrentSuit(_ui.m_comboBox.selectedIndex);
-            PromptController.Instance.ShowFloatTextPrompt("保存成功", MessageType.SUCCESS);
         }
 
         private void OnComboBoxRarityChanged()

BIN
GameClient/Assets/ResIn/UI/CommonGame/CommonGame_atlas0!a.png


BIN
GameClient/Assets/ResIn/UI/CommonGame/CommonGame_atlas0.png


BIN
GameClient/Assets/ResIn/UI/CommonGame/CommonGame_atlas0_1!a.png


BIN
GameClient/Assets/ResIn/UI/CommonGame/CommonGame_atlas0_1.png


BIN
GameClient/Assets/ResIn/UI/CommonGame/CommonGame_fui.bytes