コード例 #1
0
 public void SetThis(VariableViewerNetworking.NetFriendlyHierarchyBookShelf _Shelf)
 {
     ThePageUp.SetActive(false);
     ThePageDown.SetActive(false);
     Shelf     = _Shelf;
     Name.text = _Shelf.Nm;
 }
コード例 #2
0
 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);
         }
     }
 }
コード例 #3
0
ファイル: LibraryUI.cs プロジェクト: ktndrnl/unitystation
 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));
     }
 }
コード例 #4
0
 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();
 }