예제 #1
0
        /// called on export button press. Exports all config files for this music generator configuration.
        public void ExportFile()
        {
            if (mMusicGenerator.mState < eGeneratorState.editing)
            {
                if (mExportFileName.textComponent.text == "")
                {
                    return;
                }
                Debug.Log("exporting configuration " + mExportFileName.textComponent.text);

                MusicFileConfig.SaveConfiguration(mExportFileName.textComponent.text);
                if (mGeneratorUIPanel.mPresetFileNames.Contains(mExportFileName.textComponent.text) == false)
                {
                    mGeneratorUIPanel.mPresetFileNames.Add(mExportFileName.textComponent.text);
                    AddPresetOption(mExportFileName.textComponent.text);
                }

                mGeneratorUIPanel.UpdateEffectsSliders();
            }
            else
            {
                mMeasureEditor.SaveClip(mExportFileName.textComponent.text);
            }
        }