mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-16 01:37:55 +00:00
Fix dialog to remove sampler/attribute inputs
This commit is contained in:
parent
0b2dd29bae
commit
5c605ead3f
4 changed files with 2 additions and 2 deletions
Binary file not shown.
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Binary file not shown.
Loading…
Reference in a new issue