少年修仙传客户端代码仓库
client_Zxw
2018-09-11 c2193896bb83f35ae7c9f54e2faccc61fa33e5f3
3463 【前端】【1.0.15】主界面任务展示移动逻辑修改
1个文件已修改
20 ■■■■ 已修改文件
System/MainInterfacePanel/TaskListTip.cs 20 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/MainInterfacePanel/TaskListTip.cs
@@ -200,7 +200,7 @@
        {
            TaskScheduling();    
            TheTaskToGenerate();
            TaskJump();
            TaskJump(_id);
        }
        private void SetLength()
@@ -253,7 +253,7 @@
            {
                TaskAddAndDelete();
            }
            TaskJump();
            TaskJump(MissionID);
        }
        void LodingDelTask(int TaskID)
@@ -443,12 +443,22 @@
            return mapConfig != null && mapConfig.MapFBType != 0;
        }
        private void TaskJump()
        private void TaskJump(int jumpTask=0)
        {
            int type = 0;
            if (_list.Contains(taskmodel.TaskupToDate))
            if (jumpTask == 0)//跳到默认选中
            {
                type = _list.IndexOf(taskmodel.TaskupToDate);
                if (_list.Contains(taskmodel.GetNowTaskID))
                {
                    type = _list.IndexOf(taskmodel.GetNowTaskID);
                }
            }
            else
            {
                if (_list.Contains(jumpTask))//跳到最新添加
                {
                    type = _list.IndexOf(jumpTask);
                }
            }
            if (_list.Count <= 2 || type <= 0)
            {