Beispiel #1
0
 public void SetLang(Language_Editor lne)
 {
     lne.Text = GlobalLang[CurrentLanguage].Entries[136];
     lne.fileToolStripMenuItem.Text                 = GlobalLang[CurrentLanguage].Entries[137];
     lne.saveToolStripMenuItem.Text                 = GlobalLang[CurrentLanguage].Entries[138];
     lne.editToolStripMenuItem.Text                 = GlobalLang[CurrentLanguage].Entries[139];
     lne.copyLanguagToolStripMenuItem.Text          = GlobalLang[CurrentLanguage].Entries[140];  //140
     lne.deleteLanguageToolStripMenuItem.Text       = GlobalLang[CurrentLanguage].Entries[141];
     lne.renameLanguageToolStripMenuItem.Text       = GlobalLang[CurrentLanguage].Entries[142];
     lne.editEntryToolStripMenuItem.Text            = GlobalLang[CurrentLanguage].Entries[143];
     lne.setLanguageAsDefaultToolStripMenuItem.Text = GlobalLang[CurrentLanguage].Entries[144];
 }
Beispiel #2
0
        public void CreateDefaultLang()
        {
            Language          l    = new Language();
            Form1             f1   = new Form1();
            Form2             f2   = new Form2();
            DLCExplorer       dlc  = new DLCExplorer();
            TOCeditor         toc  = new TOCeditor();
            Conditionals      con  = new Conditionals();
            Language_Selector lng  = new Language_Selector();
            AFCExtract        afc  = new AFCExtract();
            BIKExtract        bik  = new BIKExtract();
            PropertyManager   prop = new PropertyManager();
            XBoxConverter     xbox = new XBoxConverter();
            Language_Editor   lne  = new Language_Editor();

            string[]   t   = new string[0];
            MainWindow tlk = new MainWindow();

            l.name    = "Default";
            l.Entries = new List <string>();
            #region Form1
            l.Entries.Add(f1.userToolsToolStripMenuItem.Text);                  //0
            l.Entries.Add(f1.dLCEditorToolStripMenuItem.Text);
            l.Entries.Add(f1.tLKEditorToolStripMenuItem.Text);

            l.Entries.Add(f1.tOCbinEditorToolStripMenuItem.Text);           //5
            l.Entries.Add(f1.decompressorToolStripMenuItem.Text);
            l.Entries.Add(f1.conditionalsToolStripMenuItem.Text);
            l.Entries.Add(f1.lanugageSelectorToolStripMenuItem.Text);
            //l.Entries.Add("Extractor");  // KFreon: Not sure what all this is for exactly, so just filling in bits

            l.Entries.Add(f1.aFCToWAVToolStripMenuItem.Text);                    //10
            l.Entries.Add(f1.moviestfcToBIKToolStripMenuItem.Text);
            l.Entries.Add(f1.propertyManagerToolStripMenuItem.Text);
            //l.Entries.Add(f1.xBoxConverterToolStripMenuItem.Text);
            l.Entries.Add(f1.optionsToolStripMenuItem.Text);

            l.Entries.Add(f1.selectToolLanguageToolStripMenuItem.Text);     //15
            #endregion
            #region Form2
            l.Entries.Add(f2.Text);
            l.Entries.Add(f2.fileOpenToolStripMenuItem.Text);
            #endregion
            #region DLC Explorer
            l.Entries.Add(dlc.Text);                                        //60
            l.Entries.Add(dlc.groupBoxSfar.Text);
            l.Entries.Add(dlc.labelNumOfFiles.Text);
            l.Entries.Add(dlc.labelTotalUncSize.Text);
            l.Entries.Add(dlc.labelTotalUncBytes.Text);

            l.Entries.Add(dlc.labelTotalComprSize.Text);                    //65
            l.Entries.Add(dlc.labelTotalComprBytes.Text);
            l.Entries.Add(dlc.labelComprRatio.Text);
            l.Entries.Add(dlc.labelFirstEntryOffset.Text);
            l.Entries.Add(dlc.labelFirstBlockOffset.Text);

            l.Entries.Add(dlc.labelFirstDataOffset.Text);                   //70
            l.Entries.Add(dlc.groupBoxFile.Text);
            l.Entries.Add(dlc.labelFullName.Text);
            l.Entries.Add(dlc.labelHash.Text);
            l.Entries.Add(dlc.labelFileSize.Text);

            l.Entries.Add(dlc.labelUncSizeBytes.Text);                      //75
            l.Entries.Add(dlc.labelComprSize.Text);
            l.Entries.Add(dlc.labelComprSizeBytes.Text);
            l.Entries.Add(dlc.labelEntry.Text);
            l.Entries.Add(dlc.labelBlockIndex.Text);

            l.Entries.Add(dlc.labelDataOffset.Text);                        //80
            l.Entries.Add(dlc.toolStripOpenFile.Text);
            l.Entries.Add(dlc.toolStripSaveFile.Text);
            l.Entries.Add(dlc.toolStripInfo.Text);
            l.Entries.Add(dlc.toolStripAbout.Text);
            #endregion
            #region TOC Editor
            l.Entries.Add(toc.Text);                                        //85
            l.Entries.Add(toc.fileToolStripMenuItem.Text);
            l.Entries.Add(toc.openToolStripMenuItem.Text);
            l.Entries.Add(toc.saveToolStripMenuItem.Text);
            l.Entries.Add(toc.searchToolStripMenuItem.Text);

            l.Entries.Add(toc.searchAgainToolStripMenuItem.Text);           //90
            l.Entries.Add(toc.editFilesizeToolStripMenuItem.Text);
            #endregion
            #region Conditionals
            l.Entries.Add(con.Text);
            l.Entries.Add(con.fileToolStripMenuItem.Text);
            l.Entries.Add(con.openToolStripMenuItem.Text);

            l.Entries.Add(con.saveToolStripMenuItem.Text);                  //95
            l.Entries.Add(con.mapToSVGToolStripMenuItem.Text);
            l.Entries.Add(con.editToolStripMenuItem.Text);
            #endregion
            #region Language Select
            l.Entries.Add(lng.Text);
            l.Entries.Add(lng.radioButton1.Text);

            l.Entries.Add(lng.radioButton2.Text);                           //100
            l.Entries.Add(lng.radioButton3.Text);
            l.Entries.Add(lng.radioButton4.Text);
            l.Entries.Add(lng.radioButton5.Text);
            l.Entries.Add(lng.radioButton6.Text);

            l.Entries.Add(lng.button1.Text);                                //105
            l.Entries.Add(lng.button2.Text);
            #endregion
            #region AFC
            l.Entries.Add(afc.Text);
            l.Entries.Add(afc.fileToolStripMenuItem.Text);
            l.Entries.Add(afc.openToolStripMenuItem.Text);

            l.Entries.Add(afc.extractToolStripMenuItem.Text);               //110
            l.Entries.Add(afc.selectedToolStripMenuItem.Text);
            l.Entries.Add(afc.allToolStripMenuItem.Text);
            #endregion
            #region BIK
            l.Entries.Add(bik.Text);
            l.Entries.Add(bik.fileToolStripMenuItem.Text);

            l.Entries.Add(bik.openToolStripMenuItem.Text);                  //115
            l.Entries.Add(bik.extractToolStripMenuItem.Text);
            l.Entries.Add(bik.selectedToolStripMenuItem.Text);
            l.Entries.Add(bik.allToolStripMenuItem.Text);
            #endregion
            #region PropertyMan
            l.Entries.Add(prop.Text);

            l.Entries.Add(prop.fileToolStripMenuItem.Text);                 //120
            l.Entries.Add(prop.newToolStripMenuItem.Text);
            l.Entries.Add(prop.loadDefinitonsToolStripMenuItem.Text);
            l.Entries.Add(prop.saveDefinitionsToolStripMenuItem.Text);
            l.Entries.Add(prop.loadDefaultToolStripMenuItem.Text);

            l.Entries.Add(prop.saveAsDefaultToolStripMenuItem.Text);        //125
            l.Entries.Add(prop.importFromFileToolStripMenuItem.Text);
            l.Entries.Add(prop.actionToolStripMenuItem.Text);
            l.Entries.Add(prop.addClassToolStripMenuItem.Text);
            l.Entries.Add(prop.addPropertyToolStripMenuItem.Text);

            l.Entries.Add(prop.deleteClassToolStripMenuItem.Text);          //130
            l.Entries.Add(prop.deletePropertyToolStripMenuItem.Text);
            #endregion
            #region xboxconverter
            l.Entries.Add(xbox.Text);
            l.Entries.Add(xbox.fileToolStripMenuItem.Text);
            l.Entries.Add(xbox.xXXPCCToolStripMenuItem.Text);

            l.Entries.Add(xbox.pCCXXXToolStripMenuItem.Text);               //135
            #endregion
            #region Language Editor
            l.Entries.Add(lne.Text);
            l.Entries.Add(lne.fileToolStripMenuItem.Text);
            l.Entries.Add(lne.saveToolStripMenuItem.Text);
            l.Entries.Add(lne.editToolStripMenuItem.Text);

            l.Entries.Add(lne.copyLanguagToolStripMenuItem.Text);           //140
            l.Entries.Add(lne.deleteLanguageToolStripMenuItem.Text);
            l.Entries.Add(lne.renameLanguageToolStripMenuItem.Text);
            l.Entries.Add(lne.editEntryToolStripMenuItem.Text);
            l.Entries.Add(lne.setLanguageAsDefaultToolStripMenuItem.Text);
            #endregion
            GlobalLang.Add(l);
        }
Beispiel #3
0
        public void CreateDefaultLang()
        {
            Language l = new Language();
            Form1 f1 = new Form1();
            Form2 f2 = new Form2();
            DLCExplorer dlc = new DLCExplorer();
            TOCeditor toc = new TOCeditor();
            Conditionals con = new Conditionals();
            Language_Selector lng = new Language_Selector();
            AFCExtract afc = new AFCExtract();
            BIKExtract bik = new BIKExtract();
            PropertyManager prop = new PropertyManager();
            XBoxConverter xbox = new XBoxConverter();
            Language_Editor lne = new Language_Editor();
            string[] t = new string[0];
            MainWindow tlk = new MainWindow();
            l.name = "Default";
            l.Entries = new List<string>();
#region Form1
            l.Entries.Add(f1.userToolsToolStripMenuItem.Text);                  //0
            l.Entries.Add(f1.dLCEditorToolStripMenuItem.Text);
            l.Entries.Add(f1.tLKEditorToolStripMenuItem.Text);

            l.Entries.Add(f1.tOCbinEditorToolStripMenuItem.Text);           //5
            l.Entries.Add(f1.decompressorToolStripMenuItem.Text);
            l.Entries.Add(f1.conditionalsToolStripMenuItem.Text);
            l.Entries.Add(f1.lanugageSelectorToolStripMenuItem.Text);
            //l.Entries.Add("Extractor");  // KFreon: Not sure what all this is for exactly, so just filling in bits

            l.Entries.Add(f1.aFCToWAVToolStripMenuItem.Text);                    //10
            l.Entries.Add(f1.moviestfcToBIKToolStripMenuItem.Text);
            l.Entries.Add(f1.propertyManagerToolStripMenuItem.Text);
            //l.Entries.Add(f1.xBoxConverterToolStripMenuItem.Text);
            l.Entries.Add(f1.optionsToolStripMenuItem.Text);

            l.Entries.Add(f1.selectToolLanguageToolStripMenuItem.Text);     //15
#endregion
#region Form2
            l.Entries.Add(f2.Text);
            l.Entries.Add(f2.fileOpenToolStripMenuItem.Text);
#endregion
#region DLC Explorer
            l.Entries.Add(dlc.Text);                                        //60
            l.Entries.Add(dlc.groupBoxSfar.Text);
            l.Entries.Add(dlc.labelNumOfFiles.Text);
            l.Entries.Add(dlc.labelTotalUncSize.Text);
            l.Entries.Add(dlc.labelTotalUncBytes.Text);

            l.Entries.Add(dlc.labelTotalComprSize.Text);                    //65
            l.Entries.Add(dlc.labelTotalComprBytes.Text);
            l.Entries.Add(dlc.labelComprRatio.Text);
            l.Entries.Add(dlc.labelFirstEntryOffset.Text);
            l.Entries.Add(dlc.labelFirstBlockOffset.Text);

            l.Entries.Add(dlc.labelFirstDataOffset.Text);                   //70
            l.Entries.Add(dlc.groupBoxFile.Text);
            l.Entries.Add(dlc.labelFullName.Text);
            l.Entries.Add(dlc.labelHash.Text);
            l.Entries.Add(dlc.labelFileSize.Text);

            l.Entries.Add(dlc.labelUncSizeBytes.Text);                      //75
            l.Entries.Add(dlc.labelComprSize.Text);
            l.Entries.Add(dlc.labelComprSizeBytes.Text);
            l.Entries.Add(dlc.labelEntry.Text);
            l.Entries.Add(dlc.labelBlockIndex.Text);

            l.Entries.Add(dlc.labelDataOffset.Text);                        //80
            l.Entries.Add(dlc.toolStripOpenFile.Text);
            l.Entries.Add(dlc.toolStripSaveFile.Text);
            l.Entries.Add(dlc.toolStripInfo.Text);
            l.Entries.Add(dlc.toolStripAbout.Text);
#endregion
#region TOC Editor
            l.Entries.Add(toc.Text);                                        //85
            l.Entries.Add(toc.fileToolStripMenuItem.Text);
            l.Entries.Add(toc.openToolStripMenuItem.Text);
            l.Entries.Add(toc.saveToolStripMenuItem.Text);
            l.Entries.Add(toc.searchToolStripMenuItem.Text);

            l.Entries.Add(toc.searchAgainToolStripMenuItem.Text);           //90
            l.Entries.Add(toc.editFilesizeToolStripMenuItem.Text);
#endregion
#region Conditionals
            l.Entries.Add(con.Text);
            l.Entries.Add(con.fileToolStripMenuItem.Text);
            l.Entries.Add(con.openToolStripMenuItem.Text);

            l.Entries.Add(con.saveToolStripMenuItem.Text);                  //95
            l.Entries.Add(con.mapToSVGToolStripMenuItem.Text);
            l.Entries.Add(con.editToolStripMenuItem.Text);
#endregion
#region Language Select
            l.Entries.Add(lng.Text);
            l.Entries.Add(lng.radioButton1.Text);

            l.Entries.Add(lng.radioButton2.Text);                           //100
            l.Entries.Add(lng.radioButton3.Text);
            l.Entries.Add(lng.radioButton4.Text);
            l.Entries.Add(lng.radioButton5.Text);
            l.Entries.Add(lng.radioButton6.Text);

            l.Entries.Add(lng.button1.Text);                                //105
            l.Entries.Add(lng.button2.Text);
#endregion
#region AFC
            l.Entries.Add(afc.Text);
            l.Entries.Add(afc.fileToolStripMenuItem.Text);
            l.Entries.Add(afc.openToolStripMenuItem.Text);

            l.Entries.Add(afc.extractToolStripMenuItem.Text);               //110
            l.Entries.Add(afc.selectedToolStripMenuItem.Text);
            l.Entries.Add(afc.allToolStripMenuItem.Text);
#endregion
#region BIK
            l.Entries.Add(bik.Text);
            l.Entries.Add(bik.fileToolStripMenuItem.Text);

            l.Entries.Add(bik.openToolStripMenuItem.Text);                  //115
            l.Entries.Add(bik.extractToolStripMenuItem.Text);
            l.Entries.Add(bik.selectedToolStripMenuItem.Text);
            l.Entries.Add(bik.allToolStripMenuItem.Text);
#endregion
#region PropertyMan
            l.Entries.Add(prop.Text);

            l.Entries.Add(prop.fileToolStripMenuItem.Text);                 //120
            l.Entries.Add(prop.newToolStripMenuItem.Text);
            l.Entries.Add(prop.loadDefinitonsToolStripMenuItem.Text);
            l.Entries.Add(prop.saveDefinitionsToolStripMenuItem.Text);
            l.Entries.Add(prop.loadDefaultToolStripMenuItem.Text);

            l.Entries.Add(prop.saveAsDefaultToolStripMenuItem.Text);        //125
            l.Entries.Add(prop.importFromFileToolStripMenuItem.Text);
            l.Entries.Add(prop.actionToolStripMenuItem.Text);
            l.Entries.Add(prop.addClassToolStripMenuItem.Text);
            l.Entries.Add(prop.addPropertyToolStripMenuItem.Text);

            l.Entries.Add(prop.deleteClassToolStripMenuItem.Text);          //130
            l.Entries.Add(prop.deletePropertyToolStripMenuItem.Text);
#endregion
#region xboxconverter
            l.Entries.Add(xbox.Text);
            l.Entries.Add(xbox.fileToolStripMenuItem.Text);
            l.Entries.Add(xbox.xXXPCCToolStripMenuItem.Text);

            l.Entries.Add(xbox.pCCXXXToolStripMenuItem.Text);               //135
#endregion
#region Language Editor
            l.Entries.Add(lne.Text);
            l.Entries.Add(lne.fileToolStripMenuItem.Text);
            l.Entries.Add(lne.saveToolStripMenuItem.Text);
            l.Entries.Add(lne.editToolStripMenuItem.Text);

            l.Entries.Add(lne.copyLanguagToolStripMenuItem.Text);           //140
            l.Entries.Add(lne.deleteLanguageToolStripMenuItem.Text);
            l.Entries.Add(lne.renameLanguageToolStripMenuItem.Text);
            l.Entries.Add(lne.editEntryToolStripMenuItem.Text);
            l.Entries.Add(lne.setLanguageAsDefaultToolStripMenuItem.Text);
#endregion
            GlobalLang.Add(l);
        }
Beispiel #4
0
 public void SetLang(Language_Editor lne)
 {
     lne.Text = GlobalLang[CurrentLanguage].Entries[136];
     lne.fileToolStripMenuItem.Text = GlobalLang[CurrentLanguage].Entries[137];
     lne.saveToolStripMenuItem.Text = GlobalLang[CurrentLanguage].Entries[138];
     lne.editToolStripMenuItem.Text = GlobalLang[CurrentLanguage].Entries[139];
     lne.copyLanguagToolStripMenuItem.Text = GlobalLang[CurrentLanguage].Entries[140];           //140
     lne.deleteLanguageToolStripMenuItem.Text = GlobalLang[CurrentLanguage].Entries[141];
     lne.renameLanguageToolStripMenuItem.Text = GlobalLang[CurrentLanguage].Entries[142];
     lne.editEntryToolStripMenuItem.Text = GlobalLang[CurrentLanguage].Entries[143];
     lne.setLanguageAsDefaultToolStripMenuItem.Text = GlobalLang[CurrentLanguage].Entries[144];
 }