mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-22 04:23:09 +00:00
Fix adding new textures to BFRES
This commit is contained in:
parent
b48c09beea
commit
66d3d50090
1 changed files with 39 additions and 43 deletions
|
@ -375,9 +375,6 @@ namespace FirstPlugin.Forms
|
|||
}
|
||||
|
||||
private void btnAdd_Click(object sender, EventArgs e)
|
||||
{
|
||||
var result = MessageBox.Show("NOTE! Texture maps are adjusted by shader options which link by shaders. These are not possible to edit yet, do you want to continue?", "Material Editor", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Exclamation);
|
||||
if (result == DialogResult.OK)
|
||||
{
|
||||
var tex = new MatTexture();
|
||||
tex.SamplerName = GetSamplerName("_a0");
|
||||
|
@ -420,7 +417,6 @@ namespace FirstPlugin.Forms
|
|||
item.SubItems.Add(tex.FragShaderSampler);
|
||||
textureRefListView.Items.Add(item);
|
||||
}
|
||||
}
|
||||
|
||||
private void btnRemove_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
@ -428,7 +424,7 @@ namespace FirstPlugin.Forms
|
|||
{
|
||||
string FirstSelecteItem = textureRefListView.SelectedItems[0].Text;
|
||||
|
||||
var result = MessageBox.Show("NOTE! Texture maps are adjusted by shader options which link by shaders. These are not possible to edit yet, do you want to continue?", "Material Editor", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Exclamation);
|
||||
var result = MessageBox.Show("NOTE! Removing texture maps could cause issues with shaders, do you want to continue?", "Material Editor", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Exclamation);
|
||||
|
||||
if (result == DialogResult.Yes)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue