浏览代码

新手引导相关修改

huangxiaoyue 1 年之前
父节点
当前提交
e177511d2a

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Data/LuckyBoxDataManager.cs

@@ -7,7 +7,7 @@ namespace GFGGame
     public class LuckyBoxDataManager : SingletonBase<LuckyBoxDataManager>
     {
 
-        // public const int BOX_ID_1 = 1;
+        public const int BOX_ID_1 = 1;
         public const int BOX_ID_2 = 2;//常驻奖池2
         public const int BOX_ID_3 = 3;//常驻奖池2
 

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

@@ -1487,7 +1487,7 @@ namespace GFGGame
             GuideController.TryGuide(_ui.m_btnAutoPlay, ConstGuideId.BUY_CLOTHING, 8, "勾选后,会自动进行比拼哦~~");
             GuideController.TryCompleteGuide(ConstGuideId.BUY_CLOTHING, 8);
 
-            GuideController.TryGuide(_ui.m_btnHint, ConstGuideId.FIGHT_TIPS, 1, "这次换装需要获得别人的认可呢。");
+            GuideController.TryGuide(_ui.m_btnHint, ConstGuideId.FIGHT_TIPS, 1, "这里可以看看通关提示呢~");
             GuideController.TryCompleteGuide(ConstGuideId.FIGHT_TIPS, 1);
 
             GuideController.TryGuide(_ui.m_btnRecommend, ConstGuideId.AUTOPLAY_FIGHT, 1, "", -1, true, 0, true, true);//这个引导自动完成,测试中策划要求件推荐搭配引导提前,为避免意外,没有改引导表,而是直接吧推荐搭配加到买必须品的引导力,这个引导自动完成

+ 16 - 1
GameClient/Assets/Game/HotUpdate/Views/InstanceZones/InstanceZonesUIView.cs

@@ -53,12 +53,14 @@ namespace GFGGame
             _valueBarController.OnShown();
             CheckFunOpen();
             UpdateRedDot();
+            Timers.inst.AddUpdate(CheckGuide);
         }
 
         protected override void OnHide()
         {
             base.OnHide();
             _valueBarController.OnHide();
+            Timers.inst.Remove(CheckGuide);
         }
 
         protected override void AddEventListener()
@@ -71,6 +73,18 @@ namespace GFGGame
             base.RemoveEventListener();
         }
 
+        private void CheckGuide(object param)
+        {
+            if (GuideDataManager.IsGuideFinish(ConstGuideId.STUDIO_PORCELAIN) <= 0)
+            {
+                UpdateToCheckGuide(null);
+            }
+            else
+            {
+                Timers.inst.Remove(CheckGuide);
+            }
+        }
+
         private void UpdateRedDot()
         {
             _valueBarController.UpRead();
@@ -132,7 +146,8 @@ namespace GFGGame
 
         protected override void UpdateToCheckGuide(object param)
         {
-            _ui.m_loaGuidestudio.visible = false;
+            if (!ViewManager.CheckIsTopView(this.viewCom)) return;
+            //_ui.m_loaGuidestudio.visible = false;
             GuideController.TryGuide(_ui.m_btnStudio.target, ConstGuideId.STUDIO_PORCELAIN, 3, "工作室开门啦,进去看看~");
             GuideController.TryGuide(_ui.m_btnStudio.target, ConstGuideId.STUDIO_FILING, 3, "工作室有新的任务啦。");
             GuideController.TryGuide(_ui.m_btnField.target, ConstGuideId.FIELD, 2, "外出进行历史考察,会有意想不到的收获哦。");

+ 3 - 1
GameClient/Assets/Game/HotUpdate/Views/LuckyBox/LuckyBoxView.cs

@@ -120,7 +120,9 @@ namespace GFGGame
                 boxId = (int)this.viewData;
             }
 
-            if (GuideDataManager.IsGuideFinish(ConstGuideId.LUCKY_BOX) <= 0) boxId = LuckyBoxDataManager.BOX_ID_2;
+            if (GuideDataManager.IsGuideFinish(ConstGuideId.LUCKY_BOX) <= 0) 
+                boxId = LuckyBoxDataManager.BOX_ID_1;
+
             LuckyBoxDataManager.Instance.currentBoxId = boxId;
 
             if (_activeBoxId > 0 || boxId == LuckyBoxDataManager.BOX_ID_2) Timers.inst.Add(1, 0, CheckTime);

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Views/MainUI/MainUIView.cs

@@ -939,7 +939,7 @@ namespace GFGGame
             GuideController.TryGuide(_ui.m_btnHaiZhiShi.target, ConstGuideId.ARENA_OPEN, 2, "新玩法-飞花令开启了哦", -1, false);
 
 
-            bool isStudioMetalGuide = GuideController.TryGuide(_ui.m_btnHaiZhiShi.target, ConstGuideId.STUDIO_PORCELAIN, 2, "进入副本", -1,
+            bool isStudioMetalGuide = GuideController.TryGuide(_ui.m_btnHaiZhiShi.target, ConstGuideId.STUDIO_PORCELAIN, 2, "进入海之市", -1,
                 false, _ui.target.height - 700);
             bool isStudioFilingGuide = GuideController.TryGuide(_ui.m_btnHaiZhiShi.target, ConstGuideId.STUDIO_FILING, 2, "进入副本", -1,
                 false, _ui.target.height - 700);

+ 4 - 1
GameClient/Assets/Game/HotUpdate/Views/ViewManager.cs

@@ -439,7 +439,10 @@ namespace GFGGame
                     ViewManager.Show<ClothingSyntheticView>(param, goBackDatas, false);
                     break;
                 case nameof(LuckyBoxView):
-                    ViewManager.Show<LuckyBoxView>(param[0], goBackDatas, false);
+                    if(param.Length > 0)
+                        ViewManager.Show<LuckyBoxView>(param[0], goBackDatas, false);
+                    else
+                        ViewManager.Show<LuckyBoxView>(null, goBackDatas, false);
                     break;
                 default:
                     ViewManager.Show($"GFGGame.{jumpId}", null, goBackDatas, hideOther, true);

二进制
GameClient/Assets/ResIn/UI/League/League_fui.bytes