예제 #1
0
 // Token: 0x060061BA RID: 25018 RVA: 0x00225680 File Offset: 0x00223A80
 private void RemovePickersInRange(int index, int count)
 {
     for (int i = index; i < index + count; i++)
     {
         VRCUiContentButton vrcuiContentButton = this.pickers[i];
         vrcuiContentButton.transform.parent = null;
         vrcuiContentButton.ClearImage();
         SimplePool.Despawn(vrcuiContentButton.gameObject);
     }
     this.pickers.RemoveRange(index, count);
 }
예제 #2
0
 // Token: 0x060061B9 RID: 25017 RVA: 0x00225548 File Offset: 0x00223948
 protected void RenderElements <T>(List <T> list, int page)
 {
     if (list == null && this.hideWhenEmpty)
     {
         this.Hide(true);
         return;
     }
     if (list.Count == 0 && this.hideWhenEmpty)
     {
         this.Hide(true);
     }
     else
     {
         this.Hide(false);
     }
     if (this.isOffScreen)
     {
         return;
     }
     while (this.pickers.Count > list.Count)
     {
         VRCUiContentButton vrcuiContentButton = this.pickers[this.pickers.Count - 1];
         vrcuiContentButton.transform.SetParent(null);
         vrcuiContentButton.ClearImage();
         SimplePool.Despawn(vrcuiContentButton.gameObject);
         this.pickers.RemoveAt(this.pickers.Count - 1);
     }
     for (int i = 0; i < list.Count; i++)
     {
         object am = list[i];
         if (i < this.pickers.Count)
         {
             VRCUiContentButton picker = this.pickers[i];
             this.RefreshPickerFromApiModel(picker, am);
         }
         else
         {
             this.CreatePickerFromApiModel(am);
         }
     }
     if (base.gameObject.activeInHierarchy)
     {
         base.StartCoroutine(this.HideOffScreenElementsNextFrame());
     }
 }