Example #1
0
        //----- method -----

        protected override object GetValue(TextureColumn column, TextureInfo textureInfo)
        {
            switch (column)
            {
            case TextureColumn.Warning:
                return(null);

            case TextureColumn.TextureName:
                return(textureInfo.GetTextureName());

            case TextureColumn.TextureType:
                return(textureInfo.TextureImporter.textureType.ToString());

            case TextureColumn.NonPowerOfTwo:
                return(textureInfo.TextureImporter.npotScale.ToString());

            case TextureColumn.GenerateMipMap:
                return(textureInfo.TextureImporter.mipmapEnabled);

            case TextureColumn.AlphaIsTransparency:
                return(textureInfo.TextureImporter.alphaIsTransparency);

            case TextureColumn.ReadWrite:
                return(textureInfo.TextureImporter.isReadable);

            case TextureColumn.TextureSize:
                return(textureInfo.GetTextureSizeText());

            case TextureColumn.FileSize:
                return(textureInfo.GetFileSizeText());

            default:
                return("---");
            }
        }
Example #2
0
        //----- method -----

        protected override object GetValue(CompressColumn column, TextureInfo textureInfo)
        {
            switch (column)
            {
            case CompressColumn.Warning:
                return(null);

            case CompressColumn.TextureName:
                return(textureInfo.GetTextureName());

            case CompressColumn.TextureSize:
                return(textureInfo.GetTextureSizeText());

            case CompressColumn.Overridden:
                return(textureInfo.GetCompressOverridden(Platform));

            case CompressColumn.Format:
                return(textureInfo.GetFormatText(Platform));

            case CompressColumn.MaxSize:
                return(textureInfo.GetMaxTextureSize(Platform).ToString());

            case CompressColumn.MemorySize:
                return(textureInfo.GetMemorySizeText());

            case CompressColumn.FileSize:
                return(textureInfo.GetFileSizeText());

            default:
                return("---");
            }
        }