public void SetThis(VariableViewerNetworking.NetFriendlyHierarchyBookShelf _Shelf) { ThePageUp.SetActive(false); ThePageDown.SetActive(false); Shelf = _Shelf; Name.text = _Shelf.Nm; }
public void RecursiveUntilDisplayed(VariableViewerNetworking.NetFriendlyHierarchyBookShelf NFHBS) { if (IDtoHierarchyEntry.ContainsKey(NFHBS.ID)) { return; } else { if (IDtoHierarchyEntry[NFHBS.PID].ThePageDown.activeSelf) { IDtoHierarchyEntry[NFHBS.PID].PageDown(); RecursiveUntilDisplayed(NFHBS); } } }
public HierarchyEntry RecursiveGetParent(VariableViewerNetworking.NetFriendlyHierarchyBookShelf bookShelf, List <VariableViewerNetworking.NetFriendlyHierarchyBookShelf> passlist) { if (bookShelf.PID == 0) { return(null); } passlist.Add(bookShelf); if (IDtoHierarchyEntry.ContainsKey(bookShelf.PID)) { return(IDtoHierarchyEntry[bookShelf.PID]); } else { return(RecursiveGetParent(IDtoBookShelves[bookShelf.PID], passlist)); } }
public void ResetThis() { Name.color = Color.white; ExpandText.text = ">"; ChildPage = 0; gameObject.SetActive(false); ThePageUp.SetActive(false); ThePageDown.SetActive(false); UIManager.Instance.LibraryUI.PoolhierarchyEntry(this); Shelf = null; Name.text = "UnSET!"; foreach (var hierarchyEntry in hierarchyEntryChildren) { hierarchyEntry.ResetThis(); } hierarchyEntryChildren.Clear(); }