コード例 #1
0
 private FormKnownTypes(SaveGameEditor sge, CatDatExtractor cde, string standardErrorText)
 {
     InitializeComponent();
     this.sge          = sge;
     this.cde          = cde;
     StandardErrorText = standardErrorText;
 }
コード例 #2
0
 private FormFactions(SaveGameEditor sge, string standardErrorText, CatDatExtractor cde)
 {
     InitializeComponent();
     this.sge          = sge;
     StandardErrorText = standardErrorText;
     this.cde          = cde;
 }
コード例 #3
0
        public static FormKnownTypes Instance(SaveGameEditor sge, CatDatExtractor cde, string standardErrorText)
        {
            lock (LockInstance)
            {
                if (instance == null)
                {
                    instance = new FormKnownTypes(sge, cde, standardErrorText);
                }

                return(instance);
            }
        }
コード例 #4
0
        public static FormCatDatExport Instance(CatDatExtractor cde = null)
        {
            lock (lockInstance)
            {
                if (instance == null)
                {
                    instance = new FormCatDatExport(cde);
                }

                return(instance);
            }
        }
コード例 #5
0
        public static FormShipEditorCargo Instance(ShipData ship, CatDatExtractor cde)
        {
            lock (LockInstance)
            {
                if (instance == null)
                {
                    instance = new FormShipEditorCargo(ship, cde);
                }

                return(instance);
            }
        }
コード例 #6
0
        private FormCatDatExport(CatDatExtractor cde)
        {
            InitializeComponent();

            this.cde = cde;
            cde.GetTreeView(treeView1.Nodes);
            comboBoxCatFilter.Items.Add("All");
            comboBoxCatFilter.Items.AddRange(cde.CatFiles.ToArray());
            comboBoxCatFilter.SelectedIndex = 0;
            ExtracionThread                 = new Thread(AscyncExtract);
            SetProcessStatusDelegate        = new SetProcessStatus(SetProcessStatusMethod);
            groupBoxSearchInPreview.Enabled = false;
        }
コード例 #7
0
 private FormPlayerSkunk(SaveGameEditor sge, CatDatExtractor cde, string standardErrorText)
 {
     InitializeComponent();
     this.sge          = sge;
     this.cde          = cde;
     StandardErrorText = standardErrorText;
     comboBoxSkunkScanner.TextChanged   -= comboBoxSkunkScanner_TextChanged;
     comboBoxSkunkEngine.TextChanged    -= comboBoxSkunkEngine_TextChanged;
     comboBoxSkunkShield1.TextChanged   -= comboBoxSkunkShield1_TextChanged;
     comboBoxSkunkShield2.TextChanged   -= comboBoxSkunkShield2_TextChanged;
     comboBoxSkunkSoftware1.TextChanged -= comboBoxSkunkSoftware1_TextChanged;
     comboBoxSkunkSoftware2.TextChanged -= comboBoxSkunkSoftware2_TextChanged;
 }
コード例 #8
0
 public SaveGameEditor(string savePath, CatDatExtractor cde)
 {
     try
     {
         this.cde = cde;
         LoadNewSaveGame(savePath);
     }
     catch (Exception ex)
     {
         if (string.IsNullOrEmpty(savePath))
         {
             savePath = "";
         }
         throw new Exception("Unable to create SaveGameEditor for path " + savePath, ex);
     }
 }
コード例 #9
0
 private void LoadCatDatExtractor()
 {
     if (CatDatExtractorForm == null)
     {
         cde = new CatDatExtractor(XRebirthPath);
         CatDatExtractorForm          = FormCatDatExport.Instance(cde);
         CatDatExtractorForm.TopLevel = false;
         tabPageCatDatExtractor.Controls.Add(CatDatExtractorForm);
         CatDatExtractorForm.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
         CatDatExtractorForm.Dock            = DockStyle.Fill;
         CatDatExtractorForm.Show();
         ChangeFormState();
     }
     else
     {
         Logger.Warning("FormCatDatExtractor already loaded.");
     }
 }
コード例 #10
0
        public static FormFactions Instance(SaveGameEditor sge, string standardErrorText, CatDatExtractor cde)
        {
            lock (LockInstance)
            {
                if (instance == null)
                {
                    instance = new FormFactions(sge, standardErrorText, cde);
                }

                return(instance);
            }
        }
コード例 #11
0
 private FormShipEditorCargo(ShipData ship, CatDatExtractor cde)
 {
     InitializeComponent();
     Ship     = ship;
     this.cde = cde;
 }