mirror of
https://github.com/tuyoogame/YooAsset.git
synced 2026-05-17 21:30:13 +00:00
update UIElements
This commit is contained in:
@@ -64,8 +64,7 @@ namespace YooAsset.Editor
|
||||
{
|
||||
// PackageName
|
||||
{
|
||||
var columnStyle = new ColumnStyle();
|
||||
columnStyle.Width = 150;
|
||||
var columnStyle = new ColumnStyle(200);
|
||||
columnStyle.Stretchable = false;
|
||||
columnStyle.Searchable = false;
|
||||
columnStyle.Sortable = true;
|
||||
@@ -74,11 +73,6 @@ namespace YooAsset.Editor
|
||||
{
|
||||
var label = new Label();
|
||||
label.style.unityTextAlign = TextAnchor.MiddleLeft;
|
||||
label.style.marginLeft = 3f;
|
||||
label.style.flexGrow = columnStyle.Stretchable ? 1f : 0f;
|
||||
label.style.width = columnStyle.Width;
|
||||
label.style.maxWidth = columnStyle.MaxWidth;
|
||||
label.style.minWidth = columnStyle.MinWidth;
|
||||
return label;
|
||||
};
|
||||
column.BindCell = (VisualElement element, ITableData data, ITableCell cell) =>
|
||||
@@ -91,8 +85,7 @@ namespace YooAsset.Editor
|
||||
|
||||
// AssetPath
|
||||
{
|
||||
var columnStyle = new ColumnStyle();
|
||||
columnStyle.Width = 300;
|
||||
var columnStyle = new ColumnStyle(600, 500, 1000);
|
||||
columnStyle.Stretchable = true;
|
||||
columnStyle.Searchable = true;
|
||||
columnStyle.Sortable = true;
|
||||
@@ -101,11 +94,6 @@ namespace YooAsset.Editor
|
||||
{
|
||||
var label = new Label();
|
||||
label.style.unityTextAlign = TextAnchor.MiddleLeft;
|
||||
label.style.marginLeft = 3f;
|
||||
label.style.flexGrow = columnStyle.Stretchable ? 1f : 0f;
|
||||
label.style.width = columnStyle.Width;
|
||||
label.style.maxWidth = columnStyle.MaxWidth;
|
||||
label.style.minWidth = columnStyle.MinWidth;
|
||||
return label;
|
||||
};
|
||||
column.BindCell = (VisualElement element, ITableData data, ITableCell cell) =>
|
||||
@@ -118,8 +106,7 @@ namespace YooAsset.Editor
|
||||
|
||||
// SpawnScene
|
||||
{
|
||||
var columnStyle = new ColumnStyle();
|
||||
columnStyle.Width = 150;
|
||||
var columnStyle = new ColumnStyle(150);
|
||||
columnStyle.Stretchable = false;
|
||||
columnStyle.Searchable = false;
|
||||
columnStyle.Sortable = true;
|
||||
@@ -128,11 +115,6 @@ namespace YooAsset.Editor
|
||||
{
|
||||
var label = new Label();
|
||||
label.style.unityTextAlign = TextAnchor.MiddleLeft;
|
||||
label.style.marginLeft = 3f;
|
||||
label.style.flexGrow = columnStyle.Stretchable ? 1f : 0f;
|
||||
label.style.width = columnStyle.Width;
|
||||
label.style.maxWidth = columnStyle.MaxWidth;
|
||||
label.style.minWidth = columnStyle.MinWidth;
|
||||
return label;
|
||||
};
|
||||
column.BindCell = (VisualElement element, ITableData data, ITableCell cell) =>
|
||||
@@ -145,8 +127,7 @@ namespace YooAsset.Editor
|
||||
|
||||
// SpawnTime
|
||||
{
|
||||
var columnStyle = new ColumnStyle();
|
||||
columnStyle.Width = 100;
|
||||
var columnStyle = new ColumnStyle(100);
|
||||
columnStyle.Stretchable = false;
|
||||
columnStyle.Searchable = false;
|
||||
columnStyle.Sortable = true;
|
||||
@@ -155,11 +136,6 @@ namespace YooAsset.Editor
|
||||
{
|
||||
var label = new Label();
|
||||
label.style.unityTextAlign = TextAnchor.MiddleLeft;
|
||||
label.style.marginLeft = 3f;
|
||||
label.style.flexGrow = columnStyle.Stretchable ? 1f : 0f;
|
||||
label.style.width = columnStyle.Width;
|
||||
label.style.maxWidth = columnStyle.MaxWidth;
|
||||
label.style.minWidth = columnStyle.MinWidth;
|
||||
return label;
|
||||
};
|
||||
column.BindCell = (VisualElement element, ITableData data, ITableCell cell) =>
|
||||
@@ -172,8 +148,7 @@ namespace YooAsset.Editor
|
||||
|
||||
// LoadingTime
|
||||
{
|
||||
var columnStyle = new ColumnStyle();
|
||||
columnStyle.Width = 100;
|
||||
var columnStyle = new ColumnStyle(100);
|
||||
columnStyle.Stretchable = false;
|
||||
columnStyle.Searchable = false;
|
||||
columnStyle.Sortable = true;
|
||||
@@ -182,11 +157,6 @@ namespace YooAsset.Editor
|
||||
{
|
||||
var label = new Label();
|
||||
label.style.unityTextAlign = TextAnchor.MiddleLeft;
|
||||
label.style.marginLeft = 3f;
|
||||
label.style.flexGrow = columnStyle.Stretchable ? 1f : 0f;
|
||||
label.style.width = columnStyle.Width;
|
||||
label.style.maxWidth = columnStyle.MaxWidth;
|
||||
label.style.minWidth = columnStyle.MinWidth;
|
||||
return label;
|
||||
};
|
||||
column.BindCell = (VisualElement element, ITableData data, ITableCell cell) =>
|
||||
@@ -199,8 +169,7 @@ namespace YooAsset.Editor
|
||||
|
||||
// RefCount
|
||||
{
|
||||
var columnStyle = new ColumnStyle();
|
||||
columnStyle.Width = 100;
|
||||
var columnStyle = new ColumnStyle(100);
|
||||
columnStyle.Stretchable = false;
|
||||
columnStyle.Searchable = false;
|
||||
columnStyle.Sortable = true;
|
||||
@@ -209,11 +178,6 @@ namespace YooAsset.Editor
|
||||
{
|
||||
var label = new Label();
|
||||
label.style.unityTextAlign = TextAnchor.MiddleLeft;
|
||||
label.style.marginLeft = 3f;
|
||||
label.style.flexGrow = columnStyle.Stretchable ? 1f : 0f;
|
||||
label.style.width = columnStyle.Width;
|
||||
label.style.maxWidth = columnStyle.MaxWidth;
|
||||
label.style.minWidth = columnStyle.MinWidth;
|
||||
return label;
|
||||
};
|
||||
column.BindCell = (VisualElement element, ITableData data, ITableCell cell) =>
|
||||
@@ -226,8 +190,7 @@ namespace YooAsset.Editor
|
||||
|
||||
// Status
|
||||
{
|
||||
var columnStyle = new ColumnStyle();
|
||||
columnStyle.Width = 100;
|
||||
var columnStyle = new ColumnStyle(100);
|
||||
columnStyle.Stretchable = false;
|
||||
columnStyle.Searchable = false;
|
||||
columnStyle.Sortable = true;
|
||||
@@ -236,11 +199,6 @@ namespace YooAsset.Editor
|
||||
{
|
||||
var label = new Label();
|
||||
label.style.unityTextAlign = TextAnchor.MiddleLeft;
|
||||
label.style.marginLeft = 3f;
|
||||
label.style.flexGrow = columnStyle.Stretchable ? 1f : 0f;
|
||||
label.style.width = columnStyle.Width;
|
||||
label.style.maxWidth = columnStyle.MaxWidth;
|
||||
label.style.minWidth = columnStyle.MinWidth;
|
||||
return label;
|
||||
};
|
||||
column.BindCell = (VisualElement element, ITableData data, ITableCell cell) =>
|
||||
@@ -263,8 +221,7 @@ namespace YooAsset.Editor
|
||||
{
|
||||
//DependBundles
|
||||
{
|
||||
var columnStyle = new ColumnStyle();
|
||||
columnStyle.Width = 300;
|
||||
var columnStyle = new ColumnStyle(600, 500, 1000);
|
||||
columnStyle.Stretchable = true;
|
||||
columnStyle.Searchable = true;
|
||||
columnStyle.Sortable = true;
|
||||
@@ -273,11 +230,6 @@ namespace YooAsset.Editor
|
||||
{
|
||||
var label = new Label();
|
||||
label.style.unityTextAlign = TextAnchor.MiddleLeft;
|
||||
label.style.marginLeft = 3f;
|
||||
label.style.flexGrow = columnStyle.Stretchable ? 1f : 0f;
|
||||
label.style.width = columnStyle.Width;
|
||||
label.style.maxWidth = columnStyle.MaxWidth;
|
||||
label.style.minWidth = columnStyle.MinWidth;
|
||||
return label;
|
||||
};
|
||||
column.BindCell = (VisualElement element, ITableData data, ITableCell cell) =>
|
||||
@@ -290,8 +242,7 @@ namespace YooAsset.Editor
|
||||
|
||||
// RefCount
|
||||
{
|
||||
var columnStyle = new ColumnStyle();
|
||||
columnStyle.Width = 100;
|
||||
var columnStyle = new ColumnStyle(100);
|
||||
columnStyle.Stretchable = false;
|
||||
columnStyle.Searchable = false;
|
||||
columnStyle.Sortable = true;
|
||||
@@ -300,11 +251,6 @@ namespace YooAsset.Editor
|
||||
{
|
||||
var label = new Label();
|
||||
label.style.unityTextAlign = TextAnchor.MiddleLeft;
|
||||
label.style.marginLeft = 3f;
|
||||
label.style.flexGrow = columnStyle.Stretchable ? 1f : 0f;
|
||||
label.style.width = columnStyle.Width;
|
||||
label.style.maxWidth = columnStyle.MaxWidth;
|
||||
label.style.minWidth = columnStyle.MinWidth;
|
||||
return label;
|
||||
};
|
||||
column.BindCell = (VisualElement element, ITableData data, ITableCell cell) =>
|
||||
@@ -317,8 +263,7 @@ namespace YooAsset.Editor
|
||||
|
||||
// Status
|
||||
{
|
||||
var columnStyle = new ColumnStyle();
|
||||
columnStyle.Width = 100;
|
||||
var columnStyle = new ColumnStyle(100);
|
||||
columnStyle.Stretchable = false;
|
||||
columnStyle.Searchable = false;
|
||||
columnStyle.Sortable = true;
|
||||
@@ -327,11 +272,6 @@ namespace YooAsset.Editor
|
||||
{
|
||||
var label = new Label();
|
||||
label.style.unityTextAlign = TextAnchor.MiddleLeft;
|
||||
label.style.marginLeft = 3f;
|
||||
label.style.flexGrow = columnStyle.Stretchable ? 1f : 0f;
|
||||
label.style.width = columnStyle.Width;
|
||||
label.style.maxWidth = columnStyle.MaxWidth;
|
||||
label.style.minWidth = columnStyle.MinWidth;
|
||||
return label;
|
||||
};
|
||||
column.BindCell = (VisualElement element, ITableData data, ITableCell cell) =>
|
||||
|
||||
Reference in New Issue
Block a user