Beispiel #1
0
        private void OKButton_Click(object sender, EventArgs e)
        {
            //INPUT
            Properties.Settings.Default.PAKsPath = textBox2.Text; //SET
            string paKsPathAfter = Properties.Settings.Default.PAKsPath;

            if (_paKsPathBefore != paKsPathAfter)
            {
                MessageBox.Show(@"Please, restart FModel to apply your new input path", @"Fortnite .PAK Path Changed", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }

            //OUTPUT
            Properties.Settings.Default.ExtractOutput = textBox1.Text; //SET
            if (!Directory.Exists(Properties.Settings.Default.ExtractOutput))
            {
                Directory.CreateDirectory(Properties.Settings.Default.ExtractOutput);
            }
            string outputPathAfter = Properties.Settings.Default.ExtractOutput;

            if (_outputPathBefore != outputPathAfter)
            {
                MessageBox.Show(@"Please, restart FModel to apply your new output path", @"FModel Output Path Changed", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }

            //CHALLENGES
            Properties.Settings.Default.challengesWatermark = textBox6.Text;
            Properties.Settings.Default.isChallengesTheme   = checkBox2.Checked;
            Properties.Settings.Default.challengesOpacity   = trackBar3.Value;
            Properties.Settings.Default.challengesColors    = headerColor.R + "," + headerColor.G + "," + headerColor.B;

            Properties.Settings.Default.rarityDesign = comboBox2.SelectedItem.ToString();

            //WATERMARK
            Properties.Settings.Default.isWatermark = checkBox7.Checked;
            Properties.Settings.Default.wSize       = trackBar2.Value;
            Properties.Settings.Default.wOpacity    = trackBar1.Value;

            //FEATURED
            Properties.Settings.Default.loadFeaturedImage = checkBox8.Checked;

            //LOCRES
            Properties.Settings.Default.IconLanguage = comboBox1.SelectedItem.ToString();
            if (comboBox1.SelectedItem.ToString() != _oldLanguage)
            {
                LoadLocRes.LoadMySelectedLocRes(Properties.Settings.Default.IconLanguage);
            }

            Properties.Settings.Default.openSound = checkBox1.Checked;

            Properties.Settings.Default.Save(); //SAVE
            bmp.Dispose();
            Close();
        }
        private void optionsOKButton_Click(object sender, EventArgs e)
        {
            StringBuilder sb = new StringBuilder();

            RegisterSettings.updateModeListParameters = new List <string>();

            Properties.Settings.Default.UMFeatured   = checkBox8.Checked;
            Properties.Settings.Default.UMWatermark  = checkBox7.Checked;
            Properties.Settings.Default.rarityDesign = comboBox2.SelectedItem.ToString();

            Properties.Settings.Default.UMSize    = trackBar2.Value;
            Properties.Settings.Default.UMOpacity = trackBar1.Value;

            //PARAMETERS
            if (checkedListBox1.GetItemCheckState(0) == CheckState.Checked)
            {
                sb.Append("BRCosmetics,"); RegisterSettings.updateModeListParameters.Add("FortniteGame/Content/Athena/Items/Cosmetics/");
            }
            if (checkedListBox1.GetItemCheckState(1) == CheckState.Checked)
            {
                sb.Append("BRVariants,"); RegisterSettings.updateModeListParameters.Add("FortniteGame/Content/Athena/Items/CosmeticVariantTokens/");
            }
            if (checkedListBox1.GetItemCheckState(2) == CheckState.Checked)
            {
                sb.Append("BRBanners,"); RegisterSettings.updateModeListParameters.Add("FortniteGame/Content/Athena/Items/BannerToken/");
            }
            if (checkedListBox1.GetItemCheckState(3) == CheckState.Checked)
            {
                sb.Append("BRChallenges,"); RegisterSettings.updateModeListParameters.Add("FortniteGame/Content/Athena/Items/ChallengeBundles/");
            }
            if (checkedListBox1.GetItemCheckState(4) == CheckState.Checked)
            {
                sb.Append("BRConsumables,"); RegisterSettings.updateModeListParameters.Add("FortniteGame/Content/Athena/Items/Consumables/");
            }
            if (checkedListBox1.GetItemCheckState(5) == CheckState.Checked)
            {
                sb.Append("BRGadgets,"); RegisterSettings.updateModeListParameters.Add("FortniteGame/Content/Athena/Items/Gameplay/");
            }
            if (checkedListBox1.GetItemCheckState(6) == CheckState.Checked)
            {
                sb.Append("BRTraps,"); RegisterSettings.updateModeListParameters.Add("FortniteGame/Content/Athena/Items/Traps/");
            }
            if (checkedListBox1.GetItemCheckState(7) == CheckState.Checked)
            {
                sb.Append("BRWeapons,"); RegisterSettings.updateModeListParameters.Add("FortniteGame/Content/Athena/Items/Weapons/");
            }
            if (checkedListBox1.GetItemCheckState(8) == CheckState.Checked)
            {
                sb.Append("STWHeros,"); RegisterSettings.updateModeListParameters.Add("FortniteGame/Content/Heroes/");
            }
            if (checkedListBox1.GetItemCheckState(9) == CheckState.Checked)
            {
                sb.Append("STWDefenders,"); RegisterSettings.updateModeListParameters.Add("FortniteGame/Content/Items/Defenders/");
            }
            if (checkedListBox1.GetItemCheckState(10) == CheckState.Checked)
            {
                sb.Append("STWWorkers,"); RegisterSettings.updateModeListParameters.Add("FortniteGame/Content/Items/Workers/");
            }
            if (checkedListBox1.GetItemCheckState(11) == CheckState.Checked)
            {
                sb.Append("STWSchematics,"); RegisterSettings.updateModeListParameters.Add("FortniteGame/Content/Items/Schematics/");
            }
            if (checkedListBox1.GetItemCheckState(12) == CheckState.Checked)
            {
                sb.Append("STWTraps,"); RegisterSettings.updateModeListParameters.Add("FortniteGame/Content/Items/Traps/");
            }
            if (checkedListBox1.GetItemCheckState(13) == CheckState.Checked)
            {
                sb.Append("STWWeapons,"); RegisterSettings.updateModeListParameters.Add("FortniteGame/Content/Items/Weapons/");
            }
            if (checkedListBox1.GetItemCheckState(14) == CheckState.Checked)
            {
                sb.Append("STWIngredients,"); RegisterSettings.updateModeListParameters.Add("FortniteGame/Content/Items/Ingredients/");
            }
            if (checkedListBox1.GetItemCheckState(15) == CheckState.Checked)
            {
                sb.Append("STWResources,"); RegisterSettings.updateModeListParameters.Add("FortniteGame/Content/Items/PersistentResources/");
            }
            if (checkedListBox1.GetItemCheckState(16) == CheckState.Checked)
            {
                sb.Append("STWCardpacks,"); RegisterSettings.updateModeListParameters.Add("FortniteGame/Content/Items/CardPacks/");
            }
            if (checkedListBox1.GetItemCheckState(17) == CheckState.Checked)
            {
                sb.Append("Tokens,"); RegisterSettings.updateModeListParameters.Add("FortniteGame/Content/Items/Tokens/");
            }

            if (checkedListBox2.GetItemCheckState(0) == CheckState.Checked)
            {
                sb.Append("T2DAssets,"); RegisterSettings.updateModeListParameters.Add("FortniteGame/Content/2dAssets/");
            }
            if (checkedListBox2.GetItemCheckState(1) == CheckState.Checked)
            {
                sb.Append("TFeatured,"); RegisterSettings.updateModeListParameters.Add("FortniteGame/Content/UI/Foundation/Textures/BattleRoyale/FeaturedItems/");
            }
            if (checkedListBox2.GetItemCheckState(2) == CheckState.Checked)
            {
                sb.Append("TIcons,"); RegisterSettings.updateModeListParameters.Add("FortniteGame/Content/UI/Foundation/Textures/Icons/");
            }
            if (checkedListBox2.GetItemCheckState(3) == CheckState.Checked)
            {
                sb.Append("TBanners,"); RegisterSettings.updateModeListParameters.Add("FortniteGame/Content/UI/Foundation/Textures/Banner/");
            }
            if (checkedListBox2.GetItemCheckState(4) == CheckState.Checked)
            {
                sb.Append("TLoadingScreens,"); RegisterSettings.updateModeListParameters.Add("FortniteGame/Content/UI/Foundation/Textures/LoadingScreens/");
            }

            Properties.Settings.Default.UMParameters = sb.ToString();

            //LOCRES
            Properties.Settings.Default.IconLanguage = comboBox1.SelectedItem.ToString();
            if (comboBox1.SelectedItem.ToString() != _oldLanguage)
            {
                LoadLocRes.LoadMySelectedLocRes(Properties.Settings.Default.IconLanguage);
            }

            Properties.Settings.Default.Save();
            Close();
        }
Beispiel #3
0
        private void OKButton_Click(object sender, EventArgs e)
        {
            //INPUT
            Properties.Settings.Default.PAKsPath = textBox2.Text; //SET
            string paKsPathAfter = Properties.Settings.Default.PAKsPath;

            if (_paKsPathBefore != paKsPathAfter)
            {
                MessageBox.Show(@"Please, restart FModel to apply your new input path", @"Fortnite .PAK Path Changed", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }

            //OUTPUT
            Properties.Settings.Default.ExtractOutput = textBox1.Text; //SET
            if (!Directory.Exists(Properties.Settings.Default.ExtractOutput))
            {
                Directory.CreateDirectory(Properties.Settings.Default.ExtractOutput);
            }
            string outputPathAfter = Properties.Settings.Default.ExtractOutput;

            if (_outputPathBefore != outputPathAfter)
            {
                MessageBox.Show(@"Please, restart FModel to apply your new output path", @"FModel Output Path Changed", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }

            Properties.Settings.Default.eEmail    = textBox4.Text;
            Properties.Settings.Default.ePassword = textBox5.Text;

            Properties.Settings.Default.challengesDebug     = checkBox2.Checked;
            Properties.Settings.Default.challengesWatermark = textBox6.Text;

            //MERGER
            Properties.Settings.Default.mergerFileName  = textBox3.Text;
            Properties.Settings.Default.mergerImagesRow = Decimal.ToInt32(imgsPerRow.Value);

            //WATERMARK
            if (checkBox7.Checked)
            {
                Properties.Settings.Default.isWatermark = true;
            }
            if (checkBox7.Checked == false)
            {
                Properties.Settings.Default.isWatermark = false;
            }
            Properties.Settings.Default.wSize    = trackBar2.Value;
            Properties.Settings.Default.wOpacity = trackBar1.Value;

            //FEATURED
            if (checkBox8.Checked)
            {
                Properties.Settings.Default.loadFeaturedImage = true;
            }
            if (checkBox8.Checked == false)
            {
                Properties.Settings.Default.loadFeaturedImage = false;
            }

            //LOCRES
            Properties.Settings.Default.IconLanguage = comboBox1.SelectedItem.ToString();
            if (comboBox1.SelectedItem.ToString() != _oldLanguage)
            {
                LoadLocRes.LoadMySelectedLocRes(Properties.Settings.Default.IconLanguage);
            }

            Properties.Settings.Default.Save(); //SAVE
            Close();
        }