add more information to the asset list

This commit is contained in:
Perfare
2020-03-25 14:01:59 +08:00
parent 5c193c761a
commit fda821b441
8 changed files with 123 additions and 149 deletions

View File

@ -7,11 +7,11 @@ namespace AssetStudioGUI
{
public Object Asset;
public SerializedFile SourceFile;
public string Container = string.Empty;
public string TypeString;
public long m_PathID;
public long FullSize;
public ClassIDType Type;
public string TypeString;
public string Extension;
public string InfoText;
public string UniqueID;
public GameObjectTreeNode TreeNode;
@ -20,9 +20,21 @@ namespace AssetStudioGUI
{
Asset = asset;
SourceFile = asset.assetsFile;
FullSize = asset.byteSize;
Type = asset.type;
TypeString = Type.ToString();
m_PathID = asset.m_PathID;
FullSize = asset.byteSize;
}
public void SetSubItems()
{
SubItems.AddRange(new[]
{
Container, //Container
TypeString, //Type
m_PathID.ToString(), //PathID
FullSize.ToString(), //Size
});
}
}
}