Exemple #1
0
        private void SaveFileJson(string FileName)
        {
            GenericStageInjectionCommon.Shared.Config c = new GenericStageInjectionCommon.Shared.Config
            {
                StartPositions = new List <PositionStart>(),
                EndPositions   = new List <PositionEnd>(),
                BragPositions  = new List <PositionEnd>()
            };

            foreach (StartPositionEntry s in StartPositions)
            {
                c.StartPositions.Add(s.Position);
            }

            foreach (EndPositionEntry s in EndPositions)
            {
                c.EndPositions.Add(s.Position);
            }

            foreach (EndPositionEntry s in BragPositions)
            {
                c.BragPositions.Add(s.Position);
            }

            c.StageId = currentID;

            GenericStageInjectionCommon.Shared.Config.WriteConfigEntries(FileName, c);

            SplineEditor.buttonSave.Enabled = true;

            SplineEditor.Save(FileName);
        }
Exemple #2
0
        public void New()
        {
            OpenConfigFileName   = null;
            LabelFileLoaded.Text = "No file loaded";
            CleanFile();

            Program.MainForm.EnableSplineEditor();
            SplineEditor.SplineEditorNewConfig();
        }
        public void New()
        {
            OpenConfigFileName   = null;
            LabelFileLoaded.Text = "No file loaded";
            CleanFile();

            SplineEditor.SplineEditorNewConfig();
            RankEditor.RankEditorNewConfig();
            EnableSplineEditor();
            EnableRankEditor();
            EnableEXEExtractor();
        }