Esempio n. 1
0
        private void exportToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (activeBntx != null)
            {
                TextureData tex = GetSelectedBntxTexture();

                SaveFileDialog sfd = new SaveFileDialog();
                sfd.Filter = tex.ExportFilter;

                if (sfd.ShowDialog() == DialogResult.OK)
                {
                    tex.Export(sfd.FileName);
                }
            }
            if (activeFtexContainer != null)
            {
                FTEX tex = GetSelectedFtexTexture();

                SaveFileDialog sfd = new SaveFileDialog();
                sfd.Filter = tex.ExportFilter;

                if (sfd.ShowDialog() == DialogResult.OK)
                {
                    tex.Export(sfd.FileName);
                }
            }
        }