예제 #1
0
 private void save()
 {
     p.Export(p.Filepath);
     notSaved = false;
     if (Text.EndsWith("*"))
     {
         Text = Text.Substring(0, Text.Length - 1);
     }
 }
예제 #2
0
 private void saveToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (IDEMode == IDE_MODE.Project)
     {
         if (Manager.Projects.Count > 0)
         {
             foreach (var proj in Manager.Projects.Values)
             {
                 proj.Save();
             }
         }
     }
     else if (IDEMode == IDE_MODE.Fighter)
     {
         foreach (var keypair in ScriptFiles)
         {
             keypair.Value.Export(Path.GetFileName(keypair.Key));
         }
         MotionTable.Export(
             Path.Combine(Path.GetDirectoryName(ScriptFiles.Keys[0]), "motion.mtable"));
     }
     else if (IDEMode == IDE_MODE.File)
     {
         if (ScriptFiles.Count > 0)
         {
             ScriptFiles.Values[0].Export(ScriptFiles.Keys[0]);
         }
         else if (ParamFile != null)
         {
             ParamFile.Export(ParamFile.Filepath);
         }
     }
 }
예제 #3
0
        public void Save(string fileName)
        {
            // TODO: Update all the light values.
            SaveFresnelLight();
            SaveCharDiffuseLights();
            for (int i = 0; i < 16; i++)
            {
                SaveFogColor(i);
            }
            // The first 4 lights are character lights.
            for (int i = 4; i < stageDiffuseLights.Length; i++)
            {
                SaveDirectionalLight(i);
            }

            paramFile.Export(fileName);
        }
예제 #4
0
        private void saveAsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (IDEMode == IDE_MODE.Project)
            {
                if (fsDlg.ShowDialog() == DialogResult.OK)
                {
                    throw new NotImplementedException("Saving workspaces not yet supported");

                    //if (Manager.Projects.Count > 0)
                    //    foreach (var proj in Manager.Projects.Values)
                    //        proj.Save();
                }
            }
            else if (IDEMode == IDE_MODE.Fighter)
            {
                if (fsDlg.ShowDialog() == DialogResult.OK)
                {
                    foreach (var keypair in ScriptFiles)
                    {
                        keypair.Value.Export(Path.Combine(fsDlg.SelectedPath, Path.GetFileName(keypair.Key)));
                    }
                    MotionTable.Export(Path.Combine(fsDlg.SelectedPath, "motion.mtable"));
                }
            }
            else if (IDEMode == IDE_MODE.File)
            {
                if (ScriptFiles.Count > 0)
                {
                    sfDlg.FileName = Path.GetFileNameWithoutExtension(ScriptFiles.Keys[0]);
                    if (sfDlg.ShowDialog() == DialogResult.OK)
                    {
                        ScriptFiles.Values[0].Export(sfDlg.FileName);
                    }
                }
                else if (ParamFile != null)
                {
                    sfDlg.FileName = Path.GetFileNameWithoutExtension(ParamFile.Filepath);
                    if (sfDlg.ShowDialog() == DialogResult.OK)
                    {
                        ParamFile.Export(sfDlg.FileName);
                    }
                }
            }
        }
예제 #5
0
 public override void Save()
 {
     p.Export(p.Filepath);
     Edited = false;
 }