少年修仙传客户端代码仓库
client_linchunjie
2018-11-19 80affe2c279f2fd97762af997fb0e2e6224647ac
Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
1个文件已修改
39 ■■■■■ 已修改文件
System/MainInterfacePanel/TaskListTip.cs 39 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/MainInterfacePanel/TaskListTip.cs
@@ -244,27 +244,6 @@
                }
            }
            //for (int i = 0; i < Content.childCount; i++)
            //{
            //    if (i < _list.Count)
            //    {
            //        GameObject obj = Content.GetChild(i).gameObject;
            //        TaskType childObjTaskType = Content.GetChild(i).gameObject.GetComponent<TaskType>();
            //        if (childObjTaskType.TaskID == TaskID)
            //        {
            //            return;
            //        }
            //        if (childObjTaskType.TaskID == 0)
            //        {
            //            obj.SetActive(true);
            //            childObjTaskType.TaskID = TaskID;
            //            childObjTaskType.IsGameObjectName(TaskID);
            //            childObjTaskType.IsMysteriousTask();
            //            obj.GetComponent<FlyingShoesTask>().FlyingShoes_Task(TaskID);
            //        }
            //    }
            //}
            ChangeSort();//关于任务变更排序
            SetLength();
        }
@@ -339,18 +318,7 @@
                        obj.transform.SetSiblingIndex(Inedx);
                    }
                }
            }
            //for (int i = 0; i < Content.childCount; i++)
            //{
            //    GameObject obj = Content.GetChild(i).gameObject;
            //    TaskType taskType = obj.GetComponent<TaskType>();
            //    if (taskType.TaskID != 0 && _list.Contains(taskType.TaskID))
            //    {
            //        int Inedx = _list.IndexOf(taskType.TaskID);
            //        obj.transform.SetSiblingIndex(Inedx);
            //    }
            //}
        }
@@ -516,11 +484,18 @@
                    _position = (_list.Count - type) * m_SizeHeight + (_list.Count - type - 1) * 2;
                }
                _position -= 196;
                if (_list.Count == 3 && type == 2)
                {
                    m_ScrollRect.verticalNormalizedPosition = 0;
                }
                else
                {
                m_ScrollRect.verticalNormalizedPosition = Mathf.Clamp01(_position / ((Content as RectTransform).sizeDelta.y - 196));
            }
        }
    }
}
}