public override void FetchData() { FrameDebuggerTreeView.FDTreeViewDataSource.FDTreeHierarchyLevel fDTreeHierarchyLevel = new FrameDebuggerTreeView.FDTreeViewDataSource.FDTreeHierarchyLevel(0, 0, string.Empty, null); List <FrameDebuggerTreeView.FDTreeViewDataSource.FDTreeHierarchyLevel> list = new List <FrameDebuggerTreeView.FDTreeViewDataSource.FDTreeHierarchyLevel>(); list.Add(fDTreeHierarchyLevel); int num = -1; for (int i = 0; i < this.m_FrameEvents.Length; i++) { string text = "/" + (FrameDebuggerUtility.GetFrameEventInfoName(i) ?? string.Empty); string[] array = text.Split(new char[] { '/' }); int num2 = 0; while (num2 < list.Count && num2 < array.Length) { if (array[num2] != list[num2].item.displayName) { break; } num2++; } while (list.Count > 0 && list.Count > num2) { FrameDebuggerTreeView.FDTreeViewDataSource.CloseLastHierarchyLevel(list, i); } for (int j = num2; j < array.Length; j++) { FrameDebuggerTreeView.FDTreeViewDataSource.FDTreeHierarchyLevel fDTreeHierarchyLevel2 = list[list.Count - 1]; FrameDebuggerTreeView.FDTreeViewDataSource.FDTreeHierarchyLevel fDTreeHierarchyLevel3 = new FrameDebuggerTreeView.FDTreeViewDataSource.FDTreeHierarchyLevel(list.Count - 1, --num, array[j], fDTreeHierarchyLevel2.item); fDTreeHierarchyLevel2.children.Add(fDTreeHierarchyLevel3.item); list.Add(fDTreeHierarchyLevel3); } GameObject frameEventGameObject = FrameDebuggerUtility.GetFrameEventGameObject(i); string displayName = (!frameEventGameObject) ? string.Empty : (" " + frameEventGameObject.name); FrameDebuggerTreeView.FDTreeViewDataSource.FDTreeHierarchyLevel fDTreeHierarchyLevel4 = list[list.Count - 1]; int id = i + 1; FrameDebuggerTreeView.FDTreeViewItem fDTreeViewItem = new FrameDebuggerTreeView.FDTreeViewItem(id, list.Count - 1, fDTreeHierarchyLevel4.item, displayName); fDTreeViewItem.m_FrameEvent = this.m_FrameEvents[i]; fDTreeHierarchyLevel4.children.Add(fDTreeViewItem); fDTreeHierarchyLevel4.item.m_ChildEventCount++; } while (list.Count > 0) { FrameDebuggerTreeView.FDTreeViewDataSource.CloseLastHierarchyLevel(list, this.m_FrameEvents.Length); } this.m_RootItem = fDTreeHierarchyLevel.item; }
public override void FetchData() { FrameDebuggerTreeView.FDTreeViewDataSource.FDTreeHierarchyLevel treeHierarchyLevel1 = new FrameDebuggerTreeView.FDTreeViewDataSource.FDTreeHierarchyLevel(0, 0, string.Empty, (FrameDebuggerTreeView.FDTreeViewItem)null); List <FrameDebuggerTreeView.FDTreeViewDataSource.FDTreeHierarchyLevel> eventStack = new List <FrameDebuggerTreeView.FDTreeViewDataSource.FDTreeHierarchyLevel>(); eventStack.Add(treeHierarchyLevel1); int num = -1; for (int index1 = 0; index1 < this.m_FrameEvents.Length; ++index1) { string[] strArray = ("/" + (FrameDebuggerUtility.GetFrameEventInfoName(index1) ?? string.Empty)).Split('/'); int index2 = 0; while (index2 < eventStack.Count && index2 < strArray.Length && !(strArray[index2] != eventStack[index2].item.displayName)) { ++index2; } while (eventStack.Count > 0 && eventStack.Count > index2) { FrameDebuggerTreeView.FDTreeViewDataSource.CloseLastHierarchyLevel(eventStack, index1); } for (int index3 = index2; index3 < strArray.Length; ++index3) { FrameDebuggerTreeView.FDTreeViewDataSource.FDTreeHierarchyLevel treeHierarchyLevel2 = eventStack[eventStack.Count - 1]; FrameDebuggerTreeView.FDTreeViewDataSource.FDTreeHierarchyLevel treeHierarchyLevel3 = new FrameDebuggerTreeView.FDTreeViewDataSource.FDTreeHierarchyLevel(eventStack.Count - 1, --num, strArray[index3], treeHierarchyLevel2.item); treeHierarchyLevel2.children.Add((TreeViewItem)treeHierarchyLevel3.item); eventStack.Add(treeHierarchyLevel3); } GameObject frameEventGameObject = FrameDebuggerUtility.GetFrameEventGameObject(index1); string displayName = !(bool)((UnityEngine.Object)frameEventGameObject) ? string.Empty : " " + frameEventGameObject.name; FrameDebuggerTreeView.FDTreeViewDataSource.FDTreeHierarchyLevel treeHierarchyLevel4 = eventStack[eventStack.Count - 1]; treeHierarchyLevel4.children.Add((TreeViewItem) new FrameDebuggerTreeView.FDTreeViewItem(index1 + 1, eventStack.Count - 1, treeHierarchyLevel4.item, displayName) { m_FrameEvent = this.m_FrameEvents[index1] }); ++treeHierarchyLevel4.item.m_ChildEventCount; } while (eventStack.Count > 0) { FrameDebuggerTreeView.FDTreeViewDataSource.CloseLastHierarchyLevel(eventStack, this.m_FrameEvents.Length); } this.m_RootItem = (TreeViewItem)treeHierarchyLevel1.item; }
public override void FetchData() { FrameDebuggerTreeView.FDTreeViewDataSource.FDTreeHierarchyLevel treeHierarchyLevel1 = new FrameDebuggerTreeView.FDTreeViewDataSource.FDTreeHierarchyLevel(0, 0, string.Empty, (FrameDebuggerTreeView.FDTreeViewItem) null); List<FrameDebuggerTreeView.FDTreeViewDataSource.FDTreeHierarchyLevel> eventStack = new List<FrameDebuggerTreeView.FDTreeViewDataSource.FDTreeHierarchyLevel>(); eventStack.Add(treeHierarchyLevel1); int num = -1; for (int index1 = 0; index1 < this.m_FrameEvents.Length; ++index1) { string[] strArray = ("/" + (FrameDebuggerUtility.GetFrameEventInfoName(index1) ?? string.Empty)).Split('/'); int index2 = 0; while (index2 < eventStack.Count && index2 < strArray.Length && !(strArray[index2] != eventStack[index2].item.displayName)) ++index2; while (eventStack.Count > 0 && eventStack.Count > index2) FrameDebuggerTreeView.FDTreeViewDataSource.CloseLastHierarchyLevel(eventStack, index1); for (int index3 = index2; index3 < strArray.Length; ++index3) { FrameDebuggerTreeView.FDTreeViewDataSource.FDTreeHierarchyLevel treeHierarchyLevel2 = eventStack[eventStack.Count - 1]; FrameDebuggerTreeView.FDTreeViewDataSource.FDTreeHierarchyLevel treeHierarchyLevel3 = new FrameDebuggerTreeView.FDTreeViewDataSource.FDTreeHierarchyLevel(eventStack.Count - 1, --num, strArray[index3], treeHierarchyLevel2.item); treeHierarchyLevel2.children.Add((TreeViewItem) treeHierarchyLevel3.item); eventStack.Add(treeHierarchyLevel3); } GameObject frameEventGameObject = FrameDebuggerUtility.GetFrameEventGameObject(index1); string displayName = !(bool) ((UnityEngine.Object) frameEventGameObject) ? string.Empty : " " + frameEventGameObject.name; FrameDebuggerTreeView.FDTreeViewDataSource.FDTreeHierarchyLevel treeHierarchyLevel4 = eventStack[eventStack.Count - 1]; treeHierarchyLevel4.children.Add((TreeViewItem) new FrameDebuggerTreeView.FDTreeViewItem(index1 + 1, eventStack.Count - 1, treeHierarchyLevel4.item, displayName) { m_FrameEvent = this.m_FrameEvents[index1] }); ++treeHierarchyLevel4.item.m_ChildEventCount; } while (eventStack.Count > 0) FrameDebuggerTreeView.FDTreeViewDataSource.CloseLastHierarchyLevel(eventStack, this.m_FrameEvents.Length); this.m_RootItem = (TreeViewItem) treeHierarchyLevel1.item; }
public override void FetchData() { FrameDebuggerTreeView.FDTreeViewDataSource.FDTreeHierarchyLevel fDTreeHierarchyLevel = new FrameDebuggerTreeView.FDTreeViewDataSource.FDTreeHierarchyLevel(0, 0, string.Empty, null); List<FrameDebuggerTreeView.FDTreeViewDataSource.FDTreeHierarchyLevel> list = new List<FrameDebuggerTreeView.FDTreeViewDataSource.FDTreeHierarchyLevel>(); list.Add(fDTreeHierarchyLevel); int num = -1; for (int i = 0; i < this.m_FrameEvents.Length; i++) { string text = "/" + (FrameDebuggerUtility.GetFrameEventInfoName(i) ?? string.Empty); string[] array = text.Split(new char[] { '/' }); int num2 = 0; while (num2 < list.Count && num2 < array.Length) { if (array[num2] != list[num2].item.displayName) { break; } num2++; } while (list.Count > 0 && list.Count > num2) { FrameDebuggerTreeView.FDTreeViewDataSource.CloseLastHierarchyLevel(list, i); } for (int j = num2; j < array.Length; j++) { FrameDebuggerTreeView.FDTreeViewDataSource.FDTreeHierarchyLevel fDTreeHierarchyLevel2 = list[list.Count - 1]; FrameDebuggerTreeView.FDTreeViewDataSource.FDTreeHierarchyLevel fDTreeHierarchyLevel3 = new FrameDebuggerTreeView.FDTreeViewDataSource.FDTreeHierarchyLevel(list.Count - 1, --num, array[j], fDTreeHierarchyLevel2.item); fDTreeHierarchyLevel2.children.Add(fDTreeHierarchyLevel3.item); list.Add(fDTreeHierarchyLevel3); } GameObject gameObjectForEvent = FrameDebuggerWindow.GetGameObjectForEvent(i); string displayName = (!gameObjectForEvent) ? string.Empty : (" " + gameObjectForEvent.name); FrameDebuggerTreeView.FDTreeViewDataSource.FDTreeHierarchyLevel fDTreeHierarchyLevel4 = list[list.Count - 1]; int id = i + 1; FrameDebuggerTreeView.FDTreeViewItem fDTreeViewItem = new FrameDebuggerTreeView.FDTreeViewItem(id, list.Count - 1, fDTreeHierarchyLevel4.item, displayName); fDTreeViewItem.m_FrameEvent = this.m_FrameEvents[i]; fDTreeHierarchyLevel4.children.Add(fDTreeViewItem); fDTreeHierarchyLevel4.item.m_ChildEventCount++; } while (list.Count > 0) { FrameDebuggerTreeView.FDTreeViewDataSource.CloseLastHierarchyLevel(list, this.m_FrameEvents.Length); } this.m_RootItem = fDTreeHierarchyLevel.item; }