Ver código fonte

神识任务改成手动完成

lzx 2 meses atrás
pai
commit
858d72065e

+ 1 - 1
Assets/Art/VFX/Materials/UIMat/ui_ob_yindao_glow_add.mat

@@ -57,7 +57,7 @@ Material:
         m_Offset: {x: 0, y: 0}
     m_Ints: []
     m_Floats:
-    - _Alpha: 0.07477751
+    - _Alpha: 0.99909014
     - _AlphaCutoff: 0.5
     - _ColorMask: 15
     - _EnableExternalAlpha: 0

+ 1 - 1
Assets/Art/VFX/Materials/UIMat/ui_ob_yindao_quan.mat

@@ -57,7 +57,7 @@ Material:
         m_Offset: {x: 0, y: 0}
     m_Ints: []
     m_Floats:
-    - _Alpha: 0
+    - _Alpha: 0.99817175
     - _AlphaCutoff: 0.5
     - _ColorMask: 0
     - _EnableExternalAlpha: 0

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

@@ -1652,7 +1652,7 @@ RectTransform:
   m_AnchorMin: {x: 0.5, y: 0.5}
   m_AnchorMax: {x: 0.5, y: 0.5}
   m_AnchoredPosition: {x: 0, y: 215.4}
-  m_SizeDelta: {x: 532.04, y: 110.3}
+  m_SizeDelta: {x: 0, y: 110.3}
   m_Pivot: {x: 0.5, y: 0.5}
 --- !u!222 &278002706122496663
 CanvasRenderer:

+ 3 - 3
Assets/Res/UI/MainHeroPanel/FaBaoAttributeWidget.prefab

@@ -330,7 +330,7 @@ GameObject:
   m_Icon: {fileID: 0}
   m_NavMeshLayer: 0
   m_StaticEditorFlags: 0
-  m_IsActive: 0
+  m_IsActive: 1
 --- !u!224 &1928020948802863893
 RectTransform:
   m_ObjectHideFlags: 0
@@ -347,8 +347,8 @@ RectTransform:
   m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
   m_AnchorMin: {x: 0.5, y: 1}
   m_AnchorMax: {x: 0.5, y: 1}
-  m_AnchoredPosition: {x: 67.1, y: 24.5}
-  m_SizeDelta: {x: 61.3275, y: 34.729996}
+  m_AnchoredPosition: {x: 103.7, y: 25.037}
+  m_SizeDelta: {x: 275.4522, y: 34.73}
   m_Pivot: {x: -0.12784432, y: 1.9532585}
 --- !u!222 &4400891513561527877
 CanvasRenderer:

+ 1 - 1
Assets/Resources/Shader/Shader Graphs_ShengShiShader.mat

@@ -66,5 +66,5 @@ Material:
     m_Colors:
     - _mainColor: {r: 0.21314356, g: 1.4060051, b: 2.1517377, a: 0}
     - _off: {r: 0.01, g: 0.01, b: 0, a: 0}
-    - _pos: {r: -1.8000001, g: -5.3999996, b: -30, a: 0}
+    - _pos: {r: 0, g: -5, b: -30, a: 0}
   m_BuildTextureStacks: []

+ 4 - 0
Assets/Scenes/testCombat.scene

@@ -1644,6 +1644,10 @@ PrefabInstance:
       propertyPath: m_Name
       value: LoadingPanel
       objectReference: {fileID: 0}
+    - target: {fileID: 5484466371172864172, guid: b37c08dad0bf98f42b569bf67e351455, type: 3}
+      propertyPath: m_IsActive
+      value: 0
+      objectReference: {fileID: 0}
     - target: {fileID: 8311278189826985699, guid: b37c08dad0bf98f42b569bf67e351455, type: 3}
       propertyPath: m_Pivot.x
       value: 0.5

+ 2 - 0
Assets/Scripts/GameLogic/Player/AccountFileInfo.cs

@@ -424,6 +424,8 @@ public class AccountFileInfo : Singleton<AccountFileInfo>
         public int curStep;
 
         public bool isCompleted;
+        
+        public bool isCompleted1;
     }
 
     [System.Serializable]

+ 14 - 2
Assets/Scripts/GameUI/EventManager/EventSystemManager.cs

@@ -654,7 +654,8 @@ public class EventSystemManager : Singleton<EventSystemManager>
     /// <summary>
     /// 其他类型事件触发
     /// </summary>
-    public async CTask TriggerEvent(AccountFileInfo.EventList evt, Action oncompleteCallBack = null,Action uiOpenOverCallBack = null)
+    public async CTask TriggerEvent(AccountFileInfo.EventList evt, Action oncompleteCallBack = null,
+        Action uiOpenOverCallBack = null)
     {
         // ChancleEvent();
         if (isTriggerEvent)
@@ -764,7 +765,18 @@ public class EventSystemManager : Singleton<EventSystemManager>
         CombatDrive.Instance.CombatController.ChangeState(CombatController.idle);
         await DialogueManager.Instance.StartDialogue(CurrentEventList, dialogueID, eventConfig.ID, () =>
         {
-            CompleteEvent(CurrentEventList);
+            EventConfig eventConfig = ConfigComponent.Instance.Get<EventConfig>(CurrentEventList.eventID);
+            if (eventConfig.EventTriggerType != 4)
+            {
+                CompleteEvent(CurrentEventList);
+            }
+            else
+            {
+                CurrentEventList.isCompleted1 = true;
+                AccountFileInfo.Instance.SavePlayerData();
+                CombatDrive.Instance.CombatController.ChangeState(CombatController.update);
+            }
+
             cTask.SetResult();
         }, () =>
         {

+ 3 - 1
Assets/Scripts/GameUI/GameApplction.cs

@@ -51,9 +51,10 @@ public class GameApplction : IGameStart
         BundleLoadType = (BundleLoadType)LoadType;
         GameObject gameObject = new GameObject("app");
         gameObject.AddComponent<GameApplctionMono>();
+       
         await InitGameApplication();
         LoadFinish?.Invoke();
-        UIManager.Instance.Canvas.gameObject.SetActive(true);
+    
 
         Debug.Log("初始化完成");
     }
@@ -115,6 +116,7 @@ public class GameApplction : IGameStart
         //     LogTool.Error("登陆失败");
         //     return;
         // }
+        UIManager.Instance.Canvas.gameObject.SetActive(true);
         if (PlayerGuideManager.Instance.GuideIsCanDo(1))
         {
             await MarskPanel.OpenPanel(255);

+ 12 - 0
Assets/Scripts/GameUI/UI/DivineSence/DivineSenceEventPreviewPanel.cs

@@ -225,6 +225,18 @@ namespace Fort23.Mono
                 return;
             }
 
+            EventConfig eventConfig =
+                ConfigComponent.Instance.Get<EventConfig>(shengShiEventWidgetType2.eventList.eventID);
+            if (eventConfig.EventTriggerType == 4)
+            {
+                if (shengShiEventWidgetType2.eventList.isCompleted1)
+                {
+                    EventSystemManager.Instance.CompleteEvent(shengShiEventWidgetType2.eventList);
+                    UpdateContent();
+                    return;
+                }
+            }
+
             isTriggerEvent = true;
 
 

+ 9 - 3
Assets/Scripts/GameUI/UI/DivineSence/ShengShiEventWidgetType2.cs

@@ -104,7 +104,7 @@ namespace Fort23.Mono
             }
             else
             {
-                csc.ChangeState(randomEventConfig.EventQuality-1);
+                csc.ChangeState(randomEventConfig.EventQuality - 1);
             }
 
 
@@ -160,6 +160,11 @@ namespace Fort23.Mono
                 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);
@@ -173,13 +178,14 @@ namespace Fort23.Mono
 
             ZuiZhongRoot.gameObject.SetActive(AccountFileInfo.Instance.playerData.CurrentZuiZhongEventListId ==
                                               eventList.guid);
+
             Icon_Marsk.gameObject.SetActive(eventList.isCompleted);
             if (randomEventConfig.SmallPlacesId != 0)
             {
                 SmallPlacesConfig smallPlacesConfig =
                     ConfigComponent.Instance.Get<SmallPlacesConfig>(randomEventConfig.SmallPlacesId);
                 PlacesConfig placesConfig = ConfigComponent.Instance.Get<PlacesConfig>(smallPlacesConfig.PlacesId);
-                Text_Mapname.text =LanguageManager.Instance.Text(10302,
+                Text_Mapname.text = LanguageManager.Instance.Text(10302,
                     LanguageManager.Instance.Text(placesConfig.placeName),
                     LanguageManager.Instance.Text(smallPlacesConfig.placeName));
                 Text_Mapname.gameObject.SetActive(true);
@@ -230,7 +236,7 @@ namespace Fort23.Mono
 
             foreach (var eventListEventLink in eventList.eventLinks)
             {
-                if(eventListEventLink.eventLinkId <= eventList.curStep)
+                if (eventListEventLink.eventLinkId <= eventList.curStep)
                     continue;
                 EventLinkConfig eventLinkConfig =
                     ConfigComponent.Instance.Get<EventLinkConfig>(eventListEventLink.eventLinkId);

+ 12 - 5
Assets/Scripts/GameUI/UI/GongFaUpgradePanel/GongFaUpgradePanel.cs

@@ -185,8 +185,8 @@ namespace Fort23.Mono
 
             UpdateStarBtn();
 
-            Text_GongFaDesc.text =
-                UtilTools.GetString(LanguageManager.Instance.Text(skillConfig.dec), _skillInfo.effectValue);
+            // Text_GongFaDesc.text =
+            //     UtilTools.GetString(LanguageManager.Instance.Text(skillConfig.dec), _skillInfo.effectValue);
             Text_GongFaName.text = LanguageManager.Instance.Text(skillConfig.name) + " ";
             LayoutRebuilder.ForceRebuildLayoutImmediate(Text_GongFaName.GetComponent<RectTransform>());
             LayoutRebuilder.ForceRebuildLayoutImmediate(Text_Level.GetComponent<RectTransform>());
@@ -312,12 +312,12 @@ namespace Fort23.Mono
                     {
                         if (_skillInfo.effectValue[i] == nextSkillInfo.effectValue[i])
                         {
-                            effs[i] = _skillInfo.effectValue[i].ToString();
+                            effs[i] = _skillInfo.effectValue[i].ToString("0.0");
                         }
                         else
                         {
                             effs[i] =
-                                $"{_skillInfo.effectValue[i].ToString()}<color=green>→({nextSkillInfo.effectValue[i]})</color>";
+                                $"{_skillInfo.effectValue[i].ToString("0.0")}<color=green>→({nextSkillInfo.effectValue[i].ToString("0.0")})</color>";
                         }
                     }
 
@@ -438,8 +438,15 @@ namespace Fort23.Mono
                 }
 
                 Text_NextLevel.transform.parent.gameObject.SetActive(false);
+                string[] effs = new string[_skillInfo.effectValue.Length];
+                for (var i = 0; i < _skillInfo.effectValue.Length; i++)
+                {
+                  
+                        effs[i] = _skillInfo.effectValue[i].ToString("0.0");
+                   
+                }
                 Text_GongFaDesc.text = UtilTools.GetString(LanguageManager.Instance.Text(_skillInfo.skillConfig.dec),
-                    _skillInfo.effectValue);
+                    effs);
             }
 
             LayoutRebuilder.ForceRebuildLayoutImmediate(UpStarItemRoot.GetComponent<RectTransform>());

+ 16 - 0
Assets/Scripts/GameUI/UI/MainPanel/MainPanel.cs

@@ -163,9 +163,25 @@ namespace Fort23.Mono
                 {
                     PlayerGuideManager.Instance.NextGuide();
                 }
+                
+              
 
                 AccountFileInfo.EventList eventList = AccountFileInfo.Instance.playerData.eventList.FirstOrDefault(e =>
                     e.guid == AccountFileInfo.Instance.playerData.CurrentZuiZhongEventListId);
+                
+                EventConfig eventConfig = ConfigComponent.Instance.Get<EventConfig>(eventList.eventID);
+                if (eventConfig.EventTriggerType == 4)
+                {
+                   
+                    if (eventList.isCompleted1)
+                    {
+                        EventSystemManager.Instance.CompleteEvent(eventList);
+                        return;
+                    }
+                  
+            
+                }
+                
                 if (eventList != null)
                 {
                     EventSystemManager.Instance.CancelEvent();