Fix dialog to remove sampler/attribute inputs

This commit is contained in:
KillzXGaming 2019-05-12 11:34:09 -04:00
parent 0b2dd29bae
commit 5c605ead3f
4 changed files with 2 additions and 2 deletions

Binary file not shown.

View file

@ -318,7 +318,7 @@ namespace FirstPlugin
prop.ArrayCount = ArrayCount;
prop.ImageSize = (uint)TextureTGLP.SheetDataList[SheetIndex].Length;
prop.Format = Format;
prop.Swizzle = (uint)(SheetIndex * 2);
prop.Swizzle = (uint)(SheetIndex * 2);
editor.Text = Text;
editor.LoadProperties(prop);

View file

@ -61,7 +61,7 @@ namespace FirstPlugin.Forms
var result = MessageBox.Show($"Are you sure you want to remove {listViewCustom1.SelectedItems[0].Text}? This could potentially break things!",
"Shader Option Editor", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2);
if (result == DialogResult.OK)
if (result == DialogResult.Yes)
{
int index = listViewCustom1.SelectedIndices[0];
listViewCustom1.Items.RemoveAt(index);