Exemplo n.º 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);
            }
        }
Exemplo n.º 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);
                }
            }
        }
Exemplo n.º 3
0
        private void cbPartners_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (partners.Count > 0)
            {
                currentPartner = partners[cbPartners.SelectedIndex];

                //Character Tab
                txtID.Text     = currentPartner.id.ToString();
                txtChar1.Text  = currentPartner.character.unk1.ToString();
                txtChar2.Text  = currentPartner.character.unk2.ToString();
                txtChar3.Text  = currentPartner.character.unk3.ToString();
                txtChar4.Text  = currentPartner.character.unk4.ToString();
                txtChar5.Text  = currentPartner.character.unk5.ToString();
                txtChar6.Text  = currentPartner.character.unk6.ToString();
                txtChar7.Text  = currentPartner.character.unk7.ToString();
                txtChar8.Text  = currentPartner.character.unk8.ToString();
                txtChar9.Text  = currentPartner.character.unk9.ToString();
                txtChar10.Text = currentPartner.character.unk10.ToString();
                txtChar11.Text = currentPartner.character.unk11.ToString();
                txtChar12.Text = currentPartner.character.unk12.ToString();
                txtChar13.Text = currentPartner.character.unk13.ToString();

                //Part Colors Tab
                cbPartColors.SelectedIndex = -1;
                cbPartColors.Items.Clear();
                for (int i = 0; i < currentPartner.color.Count; i++)
                {
                    cbPartColors.Items.Add(i);
                }

                txtPrtColor1.Text = "";
                txtPrtColor2.Text = "";
                txtPrtColor3.Text = "";
                txtPrtColor4.Text = "";
                txtPrtColor5.Text = "";

                //Custom Costume
                txtCostume1.Text  = currentPartner.costume.unk1.ToString();
                txtCostume2.Text  = currentPartner.costume.unk2.ToString();
                txtCostume3.Text  = currentPartner.costume.unk3.ToString();
                txtCostume4.Text  = currentPartner.costume.unk4.ToString();
                txtCostume5.Text  = currentPartner.costume.unk5.ToString();
                chkEnable.Checked = currentPartner.CostumeEnabled;

                //Skills
                cbType.SelectedIndex  = -1;
                cbSkill.SelectedIndex = -1;
                cbSkill.Items.Clear();
                txtSkill1.Text = "";
                txtSkill2.Text = "";
                txtSkill3.Text = "";
                txtSkill4.Text = "";
                txtSkill5.Text = "";
                txtSkill6.Text = "";

                //Parameters
                cbParam.SelectedIndex = -1;
                cbParam.Items.Clear();
                for (int i = 0; i < currentPartner.parameters.Count; i++)
                {
                    cbParam.Items.Add(i);
                }
                txtParam1.Text = "";
                txtParam2.Text = "";
                txtParam3.Text = "";
                txtParam4.Text = "";
                txtParam5.Text = "";

                //Super Soul
                cbSuperSoul.SelectedIndex = -1;
                cbSuperSoul.Items.Clear();
                for (int i = 0; i < currentPartner.talisman.Count; i++)
                {
                    cbSuperSoul.Items.Add(i);
                }
                txtSS1.Text = "";
                txtSS2.Text = "";
                txtSS3.Text = "";
                txtSS4.Text = "";
                txtSS5.Text = "";
            }
        }