Пример #1
0
        private void loadToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FolderBrowserDialog browseFolder = new FolderBrowserDialog();

            browseFolder.Description = "Find chara_custom Folder";
            if (browseFolder.ShowDialog() == DialogResult.Cancel)
            {
                return;
            }

            partners      = new List <Partner_Data>();
            PartnerFolder = browseFolder.SelectedPath + "\\";
            List <ODF_Char> Characters = ODF.Read(PartnerFolder + "OriginalCharacterDefaultTable.odf");
            List <OCC_Char> Colors     = OCC.Read(PartnerFolder + "MenuColorPartsCustomList.occ");
            List <OCO_Char> Costumes   = OCO.Read(PartnerFolder + "MenuCostumeCustomList.oco");
            List <OCS_Char> Skills     = OCS.Read(PartnerFolder + "MenuSkillCustomList.ocs");
            List <OCP_Char> Parameters = OCP.Read(PartnerFolder + "MenuParamaterCustomList.ocp");
            List <OCT_Char> Talismans  = OCT.Read(PartnerFolder + "MenuTalismanCustomList.oct");

            for (int i = 0; i < Characters.Count; i++)
            {
                Partner_Data p = new Partner_Data();
                p.id             = Characters[i].id;
                p.character      = Characters[i].data;
                p.color          = Colors[i].data;
                p.CostumeEnabled = Costumes[i].enabled;
                p.costume        = Costumes[i].data;
                p.type0          = Skills[i].type0;
                p.type1          = Skills[i].type1;
                p.type2          = Skills[i].type2;
                p.type3          = Skills[i].type3;
                p.parameters     = Parameters[i].data;
                p.talisman       = Talismans[i].data;
                partners.Add(p);
            }

            cbPartners.Items.Clear();
            for (int i = 0; i < partners.Count; i++)
            {
                cbPartners.Items.Add(partners[i].id);
            }
        }
Пример #2
0
        private void Form1_Load(object sender, EventArgs e)
        {
            s.Read();
            if (Directory.Exists(s.XENOFolder + "data\\system\\chara_custom"))
            {
                partners      = new List <Partner_Data>();
                PartnerFolder = s.XENOFolder + "data\\system\\chara_custom\\";
                List <ODF_Char> Characters = ODF.Read(PartnerFolder + "OriginalCharacterDefaultTable.odf");
                List <OCC_Char> Colors     = OCC.Read(PartnerFolder + "MenuColorPartsCustomList.occ");
                List <OCO_Char> Costumes   = OCO.Read(PartnerFolder + "MenuCostumeCustomList.oco");
                List <OCS_Char> Skills     = OCS.Read(PartnerFolder + "MenuSkillCustomList.ocs");
                List <OCP_Char> Parameters = OCP.Read(PartnerFolder + "MenuParamaterCustomList.ocp");
                List <OCT_Char> Talismans  = OCT.Read(PartnerFolder + "MenuTalismanCustomList.oct");

                for (int i = 0; i < Characters.Count; i++)
                {
                    Partner_Data p = new Partner_Data();
                    p.id             = Characters[i].id;
                    p.character      = Characters[i].data;
                    p.color          = Colors[i].data;
                    p.CostumeEnabled = Costumes[i].enabled;
                    p.costume        = Costumes[i].data;
                    p.type0          = Skills[i].type0;
                    p.type1          = Skills[i].type1;
                    p.type2          = Skills[i].type2;
                    p.type3          = Skills[i].type3;
                    p.parameters     = Parameters[i].data;
                    p.talisman       = Talismans[i].data;
                    partners.Add(p);
                }

                cbPartners.Items.Clear();
                for (int i = 0; i < partners.Count; i++)
                {
                    cbPartners.Items.Add(partners[i].id);
                }
            }
        }