public ETimeline(ETimelineGroupPanel parent, TimeLine timeline) { this.parent = parent; this.timeline = timeline; for (int i = 0; i < timeline.BaseActions.Count; i++) { list.Add(new EActionControl(this, timeline.BaseActions[i])); } }
private void ShowFiles(List <FileInfo> fileInfos) { for (int i = 0; i < fileInfos.Count; i++) { int count = 0; HierachyCout(fileInfos[i], ref count); if (IsSkillFile(fileInfos[i])) { GUILayout.BeginHorizontal(); GUILayout.Space(10 * count); if (editingFileInfo == fileInfos[i]) { GUI.color = Color.gray; } if (GUILayout.Button(Path.GetFileName(fileInfos[i].name), "Label")) { SkillEditTempData.editingSkill = Logic.Skill.SkillUtility.GetTimelineGroupFullPath <TimeLineGroup>(fileInfos[i].name); _timelineGroupPanel = new ETimelineGroupPanel(); editingFileInfo = fileInfos[i]; SkillEditTempData.editingItem = null; } GUI.color = Color.white; GUILayout.EndHorizontal(); } else { GUILayout.BeginHorizontal(); GUILayout.Space(10 * count); fileInfos[i].foldout = EditorGUILayout.Foldout(fileInfos[i].foldout, Path.GetFileName(fileInfos[i].name)); GUILayout.EndHorizontal(); if (fileInfos[i].foldout) { ShowFiles(fileInfos[i].files); } } } }