private void LowResButton_Click(object sender, EventArgs e)
{
if (WhichGame == 1 && MainListView.SelectedIndices.Count != 0 && MainListView.SelectedIndices[0] >= 0)
{
MainProgressBar.Value = 0;
int index = GetSelectedTexInd();
TreeTexInfo tex = Tree.GetTex(index);
Textures.ITexture2D tex2D = tex.Textures[0];
// KFreon: Single Image check
if (tex2D.imgList.Count <= 1)
{
StatusUpdater.UpdateText("Don't need to fix a single level texture. Don't even worry about it");
OutputBoxPrintLn("Texture: " + tex.TexName + " is single level. No fix required or applied.");
return;
}
tex2D.LowResFix();
UpdateModifiedTex(tex2D, tex, index);
StatusUpdater.UpdateText("Low res patch applied!");
OutputBoxPrintLn("Low res patch applied to " + tex.TexName);
MainProgressBar.Value = MainProgressBar.Maximum;
}
}