From d72b0b10d460d216455440309983a6ec816eea18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=95=E5=86=A0=E5=B3=B0?= Date: Mon, 20 Jan 2025 19:14:45 +0800 Subject: [PATCH] update asset bundle reporter --- .../VisualViewers/ReporterAssetListViewer.cs | 14 +++++--------- .../VisualViewers/ReporterBundleListViewer.cs | 16 ++++++---------- 2 files changed, 11 insertions(+), 19 deletions(-) diff --git a/Assets/YooAsset/Editor/AssetBundleReporter/VisualViewers/ReporterAssetListViewer.cs b/Assets/YooAsset/Editor/AssetBundleReporter/VisualViewers/ReporterAssetListViewer.cs index 2c7cc417..1770f4b6 100644 --- a/Assets/YooAsset/Editor/AssetBundleReporter/VisualViewers/ReporterAssetListViewer.cs +++ b/Assets/YooAsset/Editor/AssetBundleReporter/VisualViewers/ReporterAssetListViewer.cs @@ -69,7 +69,7 @@ namespace YooAsset.Editor columnStyle.Stretchable = true; columnStyle.Searchable = true; columnStyle.Sortable = true; - var column = new TableColumn("AssetPath", "AssetPath", columnStyle); + var column = new TableColumn("AssetPath", "Asset Path", columnStyle); column.MakeCell = () => { var label = new Label(); @@ -96,7 +96,7 @@ namespace YooAsset.Editor columnStyle.Stretchable = true; columnStyle.Searchable = true; columnStyle.Sortable = true; - var column = new TableColumn("MainBundle", "MainBundle", columnStyle); + var column = new TableColumn("MainBundle", "Main Bundle", columnStyle); column.MakeCell = () => { var label = new Label(); @@ -125,7 +125,7 @@ namespace YooAsset.Editor columnStyle.Stretchable = true; columnStyle.Searchable = true; columnStyle.Sortable = true; - var column = new TableColumn("DependBundles", "DependBundles", columnStyle); + var column = new TableColumn("DependBundles", "Depend Bundles", columnStyle); column.MakeCell = () => { var label = new Label(); @@ -152,7 +152,7 @@ namespace YooAsset.Editor columnStyle.Stretchable = false; columnStyle.Searchable = false; columnStyle.Sortable = true; - var column = new TableColumn("FileSize", "FileSize", columnStyle); + var column = new TableColumn("FileSize", "File Size", columnStyle); column.MakeCell = () => { var label = new Label(); @@ -180,7 +180,7 @@ namespace YooAsset.Editor columnStyle.Stretchable = false; columnStyle.Searchable = false; columnStyle.Sortable = false; - var column = new TableColumn("FileHash", "FileHash", columnStyle); + var column = new TableColumn("FileHash", "File Hash", columnStyle); column.MakeCell = () => { var label = new Label(); @@ -277,10 +277,6 @@ namespace YooAsset.Editor } _dependTableView.itemsSource = sourceDatas; _dependTableView.RebuildView(); - - // 刷新标题 - string headerTitle = $"DependBundles ({mainBundle.DependBundles.Count})"; - _dependTableView.SetHeaderTitle("DependBundles", headerTitle); } private void OnClickAssetTableView(PointerDownEvent evt, ITableData data) { diff --git a/Assets/YooAsset/Editor/AssetBundleReporter/VisualViewers/ReporterBundleListViewer.cs b/Assets/YooAsset/Editor/AssetBundleReporter/VisualViewers/ReporterBundleListViewer.cs index 8515cec6..e88ff0b6 100644 --- a/Assets/YooAsset/Editor/AssetBundleReporter/VisualViewers/ReporterBundleListViewer.cs +++ b/Assets/YooAsset/Editor/AssetBundleReporter/VisualViewers/ReporterBundleListViewer.cs @@ -69,7 +69,7 @@ namespace YooAsset.Editor columnStyle.Stretchable = true; columnStyle.Searchable = true; columnStyle.Sortable = true; - var column = new TableColumn("BundleName", "BundleName", columnStyle); + var column = new TableColumn("BundleName", "Bundle Name", columnStyle); column.MakeCell = () => { var label = new Label(); @@ -96,7 +96,7 @@ namespace YooAsset.Editor columnStyle.Stretchable = false; columnStyle.Searchable = true; columnStyle.Sortable = true; - var column = new TableColumn("FileSize", "FileSize", columnStyle); + var column = new TableColumn("FileSize", "File Size", columnStyle); column.MakeCell = () => { var label = new Label(); @@ -124,7 +124,7 @@ namespace YooAsset.Editor columnStyle.Stretchable = false; columnStyle.Searchable = false; columnStyle.Sortable = false; - var column = new TableColumn("FileHash", "FileHash", columnStyle); + var column = new TableColumn("FileHash", "File Hash", columnStyle); column.MakeCell = () => { var label = new Label(); @@ -208,7 +208,7 @@ namespace YooAsset.Editor columnStyle.Stretchable = true; columnStyle.Searchable = true; columnStyle.Sortable = true; - var column = new TableColumn("IncludeAssets", "IncludeAssets", columnStyle); + var column = new TableColumn("IncludeAssets", "Include Assets", columnStyle); column.MakeCell = () => { var label = new Label(); @@ -235,7 +235,7 @@ namespace YooAsset.Editor columnStyle.Stretchable = false; columnStyle.Searchable = false; columnStyle.Sortable = false; - var column = new TableColumn("AssetSource", "AssetSource", columnStyle); + var column = new TableColumn("AssetSource", "Asset Source", columnStyle); column.MakeCell = () => { var label = new Label(); @@ -262,7 +262,7 @@ namespace YooAsset.Editor columnStyle.Stretchable = false; columnStyle.Searchable = false; columnStyle.Sortable = false; - var column = new TableColumn("AssetGUID", "AssetGUID", columnStyle); + var column = new TableColumn("AssetGUID", "Asset GUID", columnStyle); column.MakeCell = () => { var label = new Label(); @@ -379,10 +379,6 @@ namespace YooAsset.Editor _includeTableView.itemsSource = sourceDatas; _includeTableView.RebuildView(); - - // 刷新标题 - string headerTitle = $"IncludeAssets ({sourceDatas.Count})"; - _includeTableView.SetHeaderTitle("IncludeAssets", headerTitle); } private void OnClickBundleTableView(PointerDownEvent evt, ITableData data) {