lzx 4 giorni fa
parent
commit
1b72b1b607

+ 1 - 1
Assets/Res/UI/DivineSence/DivineSenceRestoredWidget.prefab

@@ -118,7 +118,7 @@ RectTransform:
   m_AnchorMin: {x: 0, y: 1}
   m_AnchorMax: {x: 0, y: 1}
   m_AnchoredPosition: {x: 189.53296, y: -49.37755}
-  m_SizeDelta: {x: 0, y: 96.45}
+  m_SizeDelta: {x: 108, y: 96.45}
   m_Pivot: {x: 0.5, y: 0.5}
 --- !u!222 &5304083428607473890
 CanvasRenderer:

+ 14 - 14
Assets/Scripts/GameUI/UI/DivineSence/ShengShiEventWidgetType2.cs

@@ -156,20 +156,20 @@ namespace Fort23.Mono
                 Text_Eventcondition.text = desc;
             }
 
-            if (eventList.isCompleted)
-            {
-                Text_Go.text = LanguageManager.Instance.Text(10240);
-                Btn_Go.image.color = new Color32(200, 199, 199, 255);
-            }
-            else if (eventList.isCompleted1)
-            {
-                Text_Go.text = LanguageManager.Instance.Text(10157);
-                Btn_Go.image.color = new Color32(206, 168, 105, 255);
-            }
-            else
-            {
-                Btn_Go.image.color = new Color32(206, 168, 105, 255);
-            }
+            // if (eventList.isCompleted)
+            // {
+            //     Text_Go.text = LanguageManager.Instance.Text(10240);
+            //     Btn_Go.image.color = new Color32(200, 199, 199, 255);
+            // }
+            // else if (eventList.isCompleted1)
+            // {
+            //     Text_Go.text = LanguageManager.Instance.Text(10157);
+            //     Btn_Go.image.color = new Color32(179, 39, 65, 255);
+            // }
+            // else
+            // {
+            //     Btn_Go.image.color = new Color32(206, 168, 105, 255);
+            // }
 
 
             Btn_ZuiZhong.gameObject.SetActive(AccountFileInfo.Instance.playerData.CurrentZuiZhongEventListId !=

+ 1 - 1
Assets/Scripts/GameUI/UI/GuidePanel/Phases/Phase8.cs

@@ -104,7 +104,7 @@ namespace Fort23.Mono.Phases
             pgm.SetfxTransVisiable(true);
             pgm.SetMaskTarget(gameObject);
             pgm.SetShowFramePosAndSize(localPos, size, 0, gameObject);
-            await pgm.ConfigLogic(602, delegate() { });
+            await pgm.ConfigLogic(802, delegate() { });
 
             pgm.SetFingerPos(localPos);
             pgm.SetFingerVisiable(true);

+ 133 - 0
Assets/Scripts/GameUI/UI/GuidePanel/Phases/Phase9.cs

@@ -0,0 +1,133 @@
+using Fort23.Core;
+using Fort23.UTool;
+using GameLogic.Combat;
+using GameLogic.Combat.CombatTool;
+using UnityEngine;
+using UnityEngine.UI;
+
+namespace Fort23.Mono.Phases
+{
+    public class Phase9 : IGuideLogic
+    {
+        public PlayerGuideManager pgm;
+
+        private bool once = false;
+
+        public Phase9(PlayerGuideManager guideManager)
+        {
+            this.pgm = guideManager;
+            once = true;
+        }
+
+        public override void Active()
+        {
+            base.Active();
+            actionList.Add(OnStep901);
+            actionList.Add(OnStep902);
+            actionList.Add(OnStepEnd);
+        }
+
+        public override void Begin()
+        {
+            guideID =9;
+            guideIdx = -1;
+            pgm.isForceDone = false;
+            pgm.isTriggerDone = false;
+        }
+
+        public override void End()
+        {
+        }
+
+        public override async CTask Guide()
+        {
+            if (actionList.Count > guideIdx)
+            {
+                pgm.ResetPlayerGuide();
+                guideIdx++;
+
+
+                SaveStep(guideIdx);
+                await actionList[guideIdx](null);
+            }
+            else
+            {
+                LogTool.Error("没有引导了,强制结束。出错步骤,:" + pgm.curPhase + guideIdx);
+                pgm.isForceDone = true;
+            }
+        }
+
+        public override void LogicRelase()
+        {
+            actionList.Clear();
+        }
+
+        public override void LogicUpdate()
+        {
+        }
+
+
+        /// <summary>
+        /// 点击宝箱
+        /// </summary>
+        /// <param name="obj"></param>
+        public async CTask OnStep901(UnityEngine.Object obj)
+        {
+            pgm.StepInit();
+            await TimerComponent.Instance.WaitAsync(100);
+            GameObject gameObject = UIManager.Instance.GetComponent<MainPanel>().Btn_Box.gameObject;
+            Vector3 localPos = pgm.WorldPosToLocalPos(gameObject.transform.position);
+            Vector2 size = gameObject.GetComponent<RectTransform>().sizeDelta;
+
+            pgm.SetfxTransVisiable(true);
+            pgm.SetMaskTarget(gameObject);
+            pgm.SetShowFramePosAndSize(localPos, size, 0, gameObject);
+            await pgm.ConfigLogic(901, delegate() { });
+
+            pgm.SetFingerPos(localPos);
+            pgm.SetFingerVisiable(true);
+        }
+
+        /// <summary>
+        /// 点十连抽
+        /// </summary>
+        /// <param name="obj"></param>
+        public async CTask OnStep902(UnityEngine.Object obj)
+        {
+            pgm.StepInit();
+            await TimerComponent.Instance.WaitAsync(100);
+            GameObject gameObject = UIManager.Instance.GetComponent<BoxPanel>().oneButton.gameObject;
+            Vector3 localPos = pgm.WorldPosToLocalPos(gameObject.transform.position);
+            Vector2 size = gameObject.GetComponent<RectTransform>().sizeDelta;
+
+            pgm.SetfxTransVisiable(true);
+            pgm.SetMaskTarget(gameObject);
+            pgm.SetShowFramePosAndSize(localPos, size, 0, gameObject);
+            await pgm.ConfigLogic(902, delegate() { });
+
+            pgm.SetFingerPos(localPos);
+            pgm.SetFingerVisiable(true);
+        }
+
+
+        public async CTask OnStepEnd(UnityEngine.Object obj)
+        {
+            pgm.StepInit();
+            pgm.SetBlackBaseVisiable(false);
+
+            ForceGuideOver();
+        }
+
+        /// <summary>
+        /// 引导完成
+        /// </summary>
+        private async void ForceGuideOver()
+        {
+            pgm.CloseForceGuide();
+            pgm.RestGuide();
+            await UIManager.Instance.HideUIUIPanel<GachaPanel>();
+
+            UIManager.Instance.HideUIUIPanel<BoxPanel>();
+        }
+    }
+}

+ 3 - 0
Assets/Scripts/GameUI/UI/GuidePanel/Phases/Phase9.cs.meta

@@ -0,0 +1,3 @@
+fileFormatVersion: 2
+guid: bc438fb9d820446cab103d23ef9d7ebc
+timeCreated: 1761546523