private void TextureBoxClickedOn(object sender, EventArgs e) { BNTXMaterialTextureEditor edit = new BNTXMaterialTextureEditor(); edit.Show(); if (BFRES.IsSwitchBFRES) { edit.LoadTexture(poly, BNTX.textured[mat.textures[0].Name]); } else { edit.LoadTexture(poly, null, BFRES.FTEXtextures[mat.textures[0].Name]); } }
private void button2_Click(object sender, EventArgs e) { if (BFRES.IsSwitchBFRES) { foreach (BNTX bntx in Runtime.BNTXList) { if (bntx.glTexByName.ContainsKey(SelectedTexture)) { BNTXMaterialTextureEditor edit = new BNTXMaterialTextureEditor(); edit.LoadTexture(poly, bntx.glTexByName[SelectedTexture], SelectedTexture); edit.Show(); } } } }