Exemplo n.º 1
0
 // Token: 0x060000CE RID: 206 RVA: 0x0000835C File Offset: 0x0000655C
 public void SetItems(List <string> paths)
 {
     this.Clear();
     foreach (string path in paths)
     {
         AssetBundleManifestUI.DependencyListbox.Model model = new AssetBundleManifestUI.DependencyListbox.Model();
         model.Path = path;
         model.Name = Path.GetFileNameWithoutExtension(path);
         this._items.Add(model);
     }
     base.Sort();
     base.DoChanged();
 }
Exemplo n.º 2
0
 // Token: 0x06000014 RID: 20 RVA: 0x00002710 File Offset: 0x00000910
 private void OnDoubleClickDependency(GUIListView sender, GUIListViewItemDoubleClickArgs args)
 {
     AssetBundleManifestUI.DependencyListbox.Model model = args.Model as AssetBundleManifestUI.DependencyListbox.Model;
     if (model == null)
     {
         return;
     }
     this._listbox.SelectedBundlePaths = new List <string>(new string[]
     {
         model.Path
     });
     this._listbox.Focus();
 }
Exemplo n.º 3
0
 // Token: 0x060000D3 RID: 211 RVA: 0x00008438 File Offset: 0x00006638
 protected override void OnDrawItem(GUIListViewDrawItemArgs args)
 {
     AssetBundleManifestUI.DependencyListbox.Model model = (AssetBundleManifestUI.DependencyListbox.Model)args.Model;
     if (model == null)
     {
         return;
     }
     AssetBundleManifestUI.DependencyListbox.Column column = args.Column as AssetBundleManifestUI.DependencyListbox.Column;
     if (column == null)
     {
         return;
     }
     if (column.IsPrimaryColumn)
     {
         GUIListView.DrawItemImageHelper(ref args.ItemRect, Images.AssetBundle16x16, Vector2.one * 16f);
     }
     args.ItemRect.y = args.ItemRect.y + 3f;
     column.Drawer(model, args);
 }
Exemplo n.º 4
0
 // Token: 0x060000D5 RID: 213 RVA: 0x000084D0 File Offset: 0x000066D0
 private int OnCompareName(AssetBundleManifestUI.DependencyListbox.Model x, AssetBundleManifestUI.DependencyListbox.Model y)
 {
     return(string.Compare(x.Name, y.Name, StringComparison.OrdinalIgnoreCase));
 }
Exemplo n.º 5
0
 // Token: 0x060000D4 RID: 212 RVA: 0x000084B5 File Offset: 0x000066B5
 private void OnDrawName(AssetBundleManifestUI.DependencyListbox.Model model, GUIListViewDrawItemArgs args)
 {
     EditorGUI2.PathLabel(args.ItemRect, model.Name, args.Selected);
 }