Example #1
0
 // Token: 0x060001A7 RID: 423 RVA: 0x0000C708 File Offset: 0x0000A908
 protected override void OnDrawItem(GUIListViewDrawItemArgs args)
 {
     FindAssetUsage.AssetProxy assetProxy = args.Model as FindAssetUsage.AssetProxy;
     if (assetProxy == null)
     {
         return;
     }
     if (args.Column.IsPrimaryColumn)
     {
         Texture texture = null;
         if (assetProxy.Asset != null)
         {
             texture = AssetPreview.GetMiniTypeThumbnail(assetProxy.Asset.GetType());
         }
         else if (assetProxy.AssetType != null)
         {
             texture = AssetPreview.GetMiniTypeThumbnail(assetProxy.AssetType);
         }
         else if (!string.IsNullOrEmpty(assetProxy.AssetPath))
         {
             texture = AssetPreview.GetMiniTypeThumbnail(AssetDatabase2.GetAssetType(assetProxy.AssetPath));
         }
         if (texture == null)
         {
             texture = AssetPreview.GetMiniTypeThumbnail(typeof(TextAsset));
         }
         GUIListView.DrawItemImageHelper(ref args.ItemRect, texture, new Vector2(16f, 16f));
     }
     args.ItemRect.y      = args.ItemRect.y + 3f;
     args.ItemRect.height = args.ItemRect.height - 3f;
     FindAssetUsageWindow.Listbox.Column column = args.Column as FindAssetUsageWindow.Listbox.Column;
     column.DrawFunc(assetProxy, args);
 }
 // Token: 0x060000B3 RID: 179 RVA: 0x00007BF0 File Offset: 0x00005DF0
 protected override void OnDrawItem(GUIListViewDrawItemArgs args)
 {
     AssetBundleManifestUI.Listbox.Model model = (AssetBundleManifestUI.Listbox.Model)args.Model;
     if (model == null)
     {
         return;
     }
     AssetBundleManifestUI.Listbox.Column column = args.Column as AssetBundleManifestUI.Listbox.Column;
     if (column == null)
     {
         return;
     }
     if (column.IsPrimaryColumn)
     {
         GUIListView.DrawItemImageHelper(ref args.ItemRect, Images.AssetBundle16x16, Vector2.one * 16f);
     }
     column.Drawer(model, args);
 }
Example #3
0
 // Token: 0x060001B6 RID: 438 RVA: 0x0000CC1C File Offset: 0x0000AE1C
 protected void OnDrawFindingsCount(FindAssetUsage.AssetProxy m, GUIListViewDrawItemArgs args)
 {
     FindAssetUsage.ResultEntry resultEntry = m as FindAssetUsage.ResultEntry;
     GUI.Label(args.ItemRect, resultEntry.Findings.Count.ToString(), args.Selected ? EditorStyles.whiteLabel : EditorStyles.label);
 }
Example #4
0
 // Token: 0x0600019D RID: 413 RVA: 0x0000C56D File Offset: 0x0000A76D
 protected void OnDrawAssetPath(FindAssetUsage.AssetProxy model, GUIListViewDrawItemArgs args)
 {
     EditorGUI2.PathLabel(args.ItemRect, model.AssetPath ?? "<no path available>", args.Selected);
 }
Example #5
0
 // Token: 0x0600019B RID: 411 RVA: 0x0000C524 File Offset: 0x0000A724
 protected void OnDrawAssetName(FindAssetUsage.AssetProxy model, GUIListViewDrawItemArgs args)
 {
     EditorGUI2.PathLabel(args.ItemRect, model.Name, args.Selected);
 }
 // 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);
 }
 // Token: 0x060000B6 RID: 182 RVA: 0x00007C9C File Offset: 0x00005E9C
 private void OnDrawSize(AssetBundleManifestUI.Listbox.Model model, GUIListViewDrawItemArgs args)
 {
     args.ItemRect.y = args.ItemRect.y + 3f;
     EditorGUI2.Label(args.ItemRect, EditorUtility2.FormatBytes(model.Size), args.Selected);
 }