浏览代码

剧情章节动效问题修改

zhangyuqian 1 年之前
父节点
当前提交
5908abaac9

+ 3 - 4
GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryChapterListView.cs

@@ -45,7 +45,6 @@ namespace GFGGame
             _ui.m_loaBg.url = ResPathUtil.GetBgImgPath("zxian_bg3");
             _ui.m_loaBg.url = ResPathUtil.GetBgImgPath("zxian_bg3");
 
 
             _ui.m_listChapter.scrollPane.onScroll.Add(DoSpecialEffect);//滚动时派发事件
             _ui.m_listChapter.scrollPane.onScroll.Add(DoSpecialEffect);//滚动时派发事件
-            //_ui.m_listChapter.scrollPane.onScroll.Add(SetItemColorCallBack);
 
 
 
 
         }
         }
@@ -273,7 +272,7 @@ namespace GFGGame
                 UI_ListChapterItem.ProxyEnd();
                 UI_ListChapterItem.ProxyEnd();
             }
             }
             _ui.m_listChapter.ScrollToView(currentChapterIndex);
             _ui.m_listChapter.ScrollToView(currentChapterIndex);
-            int childrenCount = _ui.m_listChapter.numChildren;
+            int childrenCount = _ui.m_listChapter.numChildren - 1;
             if (currentChapterIndex == childrenCount - 1)
             if (currentChapterIndex == childrenCount - 1)
             {
             {
                 _time = currentChapterIndex - 2;
                 _time = currentChapterIndex - 2;
@@ -287,7 +286,7 @@ namespace GFGGame
                 _time = currentChapterIndex;
                 _time = currentChapterIndex;
             }
             }
             _timeCount = 0;
             _timeCount = 0;
-            Timers.inst.Add(0.1f, _ui.m_listChapter.numChildren, OnTimerUpdate, 1);
+            Timers.inst.Add(0.1f, _ui.m_listChapter.numChildren , OnTimerUpdate, 1);
         }
         }
         private void CheckGuide(object param)
         private void CheckGuide(object param)
         {
         {
@@ -357,7 +356,7 @@ namespace GFGGame
                     listItem.m_content.m_compPic.m_pic.color = new Color(0.4f, 0.4f, 0.4f, 1.000f);
                     listItem.m_content.m_compPic.m_pic.color = new Color(0.4f, 0.4f, 0.4f, 1.000f);
                     item.SetScale(1.0f, 1.0f);
                     item.SetScale(1.0f, 1.0f);
                 }
                 }
-                float distanceX = ((1 - (listCenter - itemCenter)) / itemWidth) * 0.05f;//使放大动画有渐进效果
+                float distanceX = ((1 - (listCenter - itemCenter)) / itemWidth) * 0.05f;//使y轴移动有渐进效果
                 item.y = -_ui.m_listChapter.height * distanceX;
                 item.y = -_ui.m_listChapter.height * distanceX;
             }
             }
         }
         }

+ 6 - 1
GameClient/Assets/Game/HotUpdate/Views/MainStory/StroyFightResultView.cs

@@ -183,9 +183,14 @@ namespace GFGGame
                     if (_dataManager.fieldInfos.bonusWeekly >= _dataManager.fieldInfos.bonusMaxLimit)
                     if (_dataManager.fieldInfos.bonusWeekly >= _dataManager.fieldInfos.bonusMaxLimit)
                     {
                     {
                         AlertUI.Show("本周可获得奖励已达上限,是否继续挑战?")
                         AlertUI.Show("本周可获得奖励已达上限,是否继续挑战?")
-                        .SetLeftButton(true, "取消", (object data) =>
+                        .SetLeftButton(true, "取消",async (object data) =>
                         {
                         {
+                            ViewManager.Show<FieldView>();
+                            bool result = await FieldSProxy.ReqFieldInstanceResult();
+                            if (result)
+                            {
                                 ViewManager.Show<FieldFightEndView>();
                                 ViewManager.Show<FieldFightEndView>();
+                            }
                         })
                         })
                         .SetRightButton(true, "确认",(object data) =>
                         .SetRightButton(true, "确认",(object data) =>
                         {
                         {