Example #1
0
        private void Menu_Export_Linked_VAB()
        {
            VAB vab = FindLinkedVAB();

            byte[] data = vab.Save();
            FileUtil.SaveFile(data, FileFilters.VAB, FileFilters.Any);
        }
Example #2
0
        private void Menu_Export_Linked_VH()
        {
            VH vh = FindLinkedVH();

            byte[] data = vh.Save();
            FileUtil.SaveFile(data, FileFilters.VH, FileFilters.Any);
        }
Example #3
0
 private void Menu_Export_COLLADA()
 {
     if (MessageBox.Show("Exporting to COLLADA is experimental.\nTexture information will not be exported.\n\nContinue anyway?", "Export as COLLADA", MessageBoxButtons.YesNo) != DialogResult.Yes)
     {
         return;
     }
     FileUtil.SaveFile(oldsceneryentry.ToCOLLADA(), FileFilters.COLLADA, FileFilters.Any);
 }
Example #4
0
        private void Menu_Export_Linked_VAB_DLS()
        {
            if (MessageBox.Show("Exporting to DLS is experimental.\n\nContinue anyway?", "Export Linked VAB as DLS", MessageBoxButtons.YesNo) != DialogResult.Yes)
            {
                return;
            }
            VAB vab = FindLinkedVAB();

            byte[] data = vab.ToDLS().Save();
            FileUtil.SaveFile(data, FileFilters.DLS, FileFilters.Any);
        }
Example #5
0
        private void Menu_Export_OBJ()
        {
            OldModelEntry modelentry = OldAnimationEntryController.EntryChunkController.NSFController.NSF.FindEID <OldModelEntry>(oldframe.ModelEID);

            if (modelentry == null)
            {
                throw new GUIException("The linked model entry could not be found.");
            }
            if (MessageBox.Show("Texture and color information will not be exported.\n\nContinue anyway?", "Export as OBJ", MessageBoxButtons.YesNo) != DialogResult.Yes)
            {
                return;
            }
            FileUtil.SaveFile(oldframe.ToOBJ(modelentry), FileFilters.OBJ, FileFilters.Any);
        }
Example #6
0
 private void Menu_Export_VH()
 {
     byte[] data = vh.Save();
     FileUtil.SaveFile(data, FileFilters.VH, FileFilters.Any);
 }
Example #7
0
 private void Menu_Export_Linked_VB()
 {
     SampleLine[] vb   = FindLinkedVB();
     byte[]       data = new SampleSet(vb).Save();
     FileUtil.SaveFile(data, FileFilters.VB, FileFilters.Any);
 }
Example #8
0
 private void Menu_Export_SEP()
 {
     byte[] data = oldmusicentry.SEP.Save();
     FileUtil.SaveFile(data, FileFilters.SEP, FileFilters.Any);
 }
Example #9
0
 private void ExportWave(int samplerate)
 {
     byte[] wave = WaveConv.ToWave(samples.ToPCM(), samplerate).Save();
     FileUtil.SaveFile(wave, FileFilters.Wave, FileFilters.Any);
 }
Example #10
0
 void tbbExport_Click(object sender, EventArgs e)
 {
     FileUtil.SaveFile(samples.Save(), FileFilters.Any);
 }
Example #11
0
 private void Menu_Export_SEQ_MIDI()
 {
     byte[] data = seq.ToMIDI();
     FileUtil.SaveFile(data, FileFilters.MIDI, FileFilters.Any);
 }
Example #12
0
 private void Menu_Export_SEQ()
 {
     byte[] data = seq.Save();
     FileUtil.SaveFile(data, FileFilters.SEQ, FileFilters.Any);
 }
Example #13
0
 void tbbExport_Click(object sender, EventArgs e)
 {
     FileUtil.SaveFile(data, FileFilters.Any);
 }