1
0
mirror of synced 2025-02-20 20:51:35 +01:00

Add batch format editing for gx2 texture importer

This commit is contained in:
KillzXGaming 2019-07-07 10:46:40 -04:00
parent f0f0f02979
commit 5b5f7306ae
2 changed files with 14 additions and 1 deletions

Binary file not shown.

View File

@ -221,7 +221,20 @@ namespace FirstPlugin
bool DialogShown = false;
private void formatComboBox_SelectedIndexChanged(object sender, EventArgs e)
{
if (formatComboBox.SelectedIndex > -1 && SelectedTexSettings != null)
if (listViewCustom1.SelectedItems.Count > 1)
{
foreach (int index in listViewCustom1.SelectedIndices)
{
if (formatComboBox.SelectedItem is GX2.GX2SurfaceFormat)
{
settings[index].Format = (GX2.GX2SurfaceFormat)formatComboBox.SelectedItem;
listViewCustom1.Items[index].SubItems[1].Text = settings[index].Format.ToString();
}
}
SetupSettings();
}
else if (formatComboBox.SelectedIndex > -1 && SelectedTexSettings != null)
{
SetupSettings();
}