Fix adding new textures to BFRES
This commit is contained in:
parent
b48c09beea
commit
66d3d50090
@ -375,9 +375,6 @@ namespace FirstPlugin.Forms
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void btnAdd_Click(object sender, EventArgs e)
|
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();
|
var tex = new MatTexture();
|
||||||
tex.SamplerName = GetSamplerName("_a0");
|
tex.SamplerName = GetSamplerName("_a0");
|
||||||
@ -420,7 +417,6 @@ namespace FirstPlugin.Forms
|
|||||||
item.SubItems.Add(tex.FragShaderSampler);
|
item.SubItems.Add(tex.FragShaderSampler);
|
||||||
textureRefListView.Items.Add(item);
|
textureRefListView.Items.Add(item);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
private void btnRemove_Click(object sender, EventArgs e)
|
private void btnRemove_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
@ -428,7 +424,7 @@ namespace FirstPlugin.Forms
|
|||||||
{
|
{
|
||||||
string FirstSelecteItem = textureRefListView.SelectedItems[0].Text;
|
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)
|
if (result == DialogResult.Yes)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user