private void DisplayTextureProperties(Textures.ITexture2D tex2D, Textures.IImageInfo info)
{
List<string> message = new List<string>();
message.Add("Texture Name: " + tex2D.texName);
message.Add("Format: " + tex2D.texFormat.ToString().Replace("DDS_", ""));
message.Add("Width: " + info.imgSize.width + ", Height: " + info.imgSize.height);
int mipcount = tex2D.imgList.Where(t => t.offset != -1).Count();
message.Add("Mipmaps: " + (mipcount > 1 ? "Yes (" + mipcount + ")" : "No (1)"));
//message.Add("LODGroup: " + (tex2D.hasChanged ? "TEXTUREGROUP_Shadowmap" : ((String.IsNullOrEmpty(tex2D.LODGroup) ? "None (Uses World)" : tex2D.LODGroup))));
// Heff: Were ALL modified textures assigned the shadowmap texture group?
message.Add("LODGroup: " + (string.IsNullOrEmpty(tex2D.LODGroup) ? "None (Uses World)" : tex2D.LODGroup));
message.Add("Texmod Hash: " + Textures.Methods.FormatTexmodHashAsString(tex2D.Hash));
if (WhichGame != 1)
message.Add("Texture Cache File: " + (info.storageType == 0 ? "PCC Stored" : tex2D.arcName + ".tfc"));
PropertiesRTB.Text = string.Join(Environment.NewLine, message);
}