Esempio n. 1
0
        private void Init()
        {
            WidthTxtBox.Text  = TextTool.GetNumbers("ResolutionSizeX=").ToString();
            HeightTxtBox.Text = TextTool.GetNumbers("ResolutionSizeY=").ToString();
            mFPSTxtBox.Text   = TextTool.GetNumbers("FrameRateLimit=").ToString();

            Global.fsMode = (Global.FullScreenMode)TextTool.GetNumbers("FullscreenMode=");

            if (Global.fsMode == 0)
            {
                FullscreenchckBox.Checked = true;
            }

            int.TryParse(WidthTxtBox.Text, out Global.ResX);
            int.TryParse(HeightTxtBox.Text, out Global.ResY);
            int.TryParse(mFPSTxtBox.Text, out Global.M_FPS);
        }
Esempio n. 2
0
        private void ApplyBtn_Click(object sender, EventArgs e)
        {
            if (WidthTxtBox.Text != "" && HeightTxtBox.Text != "" && mFPSTxtBox.Text != "" && userWidth > 0 && userHeight > 0 && userM_FPS >= 30)
            {
                if (FullscreenchckBox.Checked == true)
                {
                    TextTool.ApplySettings(WidthTxtBox.Text, HeightTxtBox.Text, (Global.FullScreenMode) 0, mFPSTxtBox.Text);
                }
                else
                {
                    TextTool.ApplySettings(WidthTxtBox.Text, HeightTxtBox.Text, (Global.FullScreenMode) 1, mFPSTxtBox.Text);
                }

                MessageBox.Show("Les paramètres on été appliqués avec succès", "Fortnite Config Tool", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            else
            {
                MessageBox.Show(Resources.ErrorText, "Erreur!", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }

            Init();
        }