fixed issues with the rewrite.

This commit is contained in:
Bitl 2020-07-04 16:35:51 -07:00
parent 0e5e042f77
commit de21d5ef6a
6 changed files with 14 additions and 37 deletions

View File

@ -370,19 +370,6 @@ namespace NovetusLauncher
this.tabPage2.ToolTipText = "Start a server for other players to play";
this.tabPage2.UseVisualStyleBackColor = true;
//
// checkBox8
//
/*
this.checkBox8.AutoSize = true;
this.checkBox8.Location = new System.Drawing.Point(326, 182);
this.checkBox8.Name = "checkBox8";
this.checkBox8.Size = new System.Drawing.Size(188, 17);
this.checkBox8.TabIndex = 61;
this.checkBox8.Text = "Toggle UDP Hole Punching (WIP)";
this.checkBox8.UseVisualStyleBackColor = true;
this.checkBox8.CheckedChanged += new System.EventHandler(this.checkBox8_CheckedChanged);
this.checkBox8.Click += new System.EventHandler(this.CheckBox4Click);*/
//
// label19
//
this.label19.AutoSize = true;

View File

@ -1437,7 +1437,7 @@ namespace NovetusLauncher
private void checkBox2_CheckedChanged(object sender, EventArgs e)
{
checkBox2.Checked = GlobalVars.DiscordPresence;
GlobalVars.DiscordPresence = checkBox2.Checked;
MessageBox.Show("Restart the launcher to apply changes.");
}
@ -1523,17 +1523,17 @@ namespace NovetusLauncher
private void checkBox5_CheckedChanged(object sender, EventArgs e)
{
GlobalVars.ReShade = checkBox5.Checked;
checkBox5.Checked = GlobalVars.ReShade;
}
private void checkBox6_CheckedChanged(object sender, EventArgs e)
{
GlobalVars.ReShadeFPSDisplay = checkBox6.Checked;
checkBox6.Checked = GlobalVars.ReShadeFPSDisplay;
}
private void checkBox7_CheckedChanged(object sender, EventArgs e)
{
GlobalVars.ReShadePerformanceMode = checkBox7.Checked;
checkBox7.Checked = GlobalVars.ReShadePerformanceMode;
}
private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)

View File

@ -372,16 +372,6 @@ namespace NovetusLauncher
//
// checkBox8
//
/*
this.checkBox8.AutoSize = true;
this.checkBox8.Location = new System.Drawing.Point(296, 182);
this.checkBox8.Name = "checkBox8";
this.checkBox8.Size = new System.Drawing.Size(126, 30);
this.checkBox8.TabIndex = 61;
this.checkBox8.Text = "Toggle UDP\r\nHole Punching (WIP)";
this.checkBox8.UseVisualStyleBackColor = true;
this.checkBox8.CheckedChanged += new System.EventHandler(this.checkBox8_CheckedChanged);
this.checkBox8.Click += new System.EventHandler(this.CheckBox4Click);*/
//
// label19
//

View File

@ -1402,7 +1402,7 @@ namespace NovetusLauncher
private void checkBox2_CheckedChanged(object sender, EventArgs e)
{
checkBox2.Checked = GlobalVars.DiscordPresence;
GlobalVars.DiscordPresence = checkBox2.Checked;
MessageBox.Show("Restart the launcher to apply changes.");
}

View File

@ -57,17 +57,17 @@ namespace NovetusLauncher
private void checkBox5_CheckedChanged(object sender, EventArgs e)
{
GlobalVars.ReShade = checkBox5.Checked;
checkBox5.Checked = GlobalVars.ReShade;
}
private void checkBox6_CheckedChanged(object sender, EventArgs e)
{
GlobalVars.ReShadeFPSDisplay = checkBox6.Checked;
checkBox6.Checked = GlobalVars.ReShadeFPSDisplay;
}
private void checkBox7_CheckedChanged(object sender, EventArgs e)
{
GlobalVars.ReShadePerformanceMode = checkBox7.Checked;
checkBox7.Checked = GlobalVars.ReShadePerformanceMode;
}
private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)

View File

@ -37,12 +37,12 @@ namespace NovetusLauncher
void CheckBox1CheckedChanged(object sender, EventArgs e)
{
checkBox1.Checked = loadedClientInfo.UsesPlayerName;
loadedClientInfo.UsesPlayerName = checkBox1.Checked;
}
void CheckBox2CheckedChanged(object sender, EventArgs e)
{
checkBox2.Checked = loadedClientInfo.UsesID;
loadedClientInfo.UsesID = checkBox2.Checked;
}
void TextBox1TextChanged(object sender, EventArgs e)
@ -67,7 +67,7 @@ namespace NovetusLauncher
void CheckBox3CheckedChanged(object sender, EventArgs e)
{
checkBox3.Checked = loadedClientInfo.LegacyMode;
loadedClientInfo.LegacyMode = checkBox3.Checked;
}
void TextBox2TextChanged(object sender, EventArgs e)
@ -140,17 +140,17 @@ namespace NovetusLauncher
void CheckBox6CheckedChanged(object sender, EventArgs e)
{
checkBox6.Checked = loadedClientInfo.Fix2007;
loadedClientInfo.Fix2007 = checkBox6.Checked;
}
void CheckBox7CheckedChanged(object sender, EventArgs e)
{
checkBox7.Checked = loadedClientInfo.AlreadyHasSecurity;
loadedClientInfo.AlreadyHasSecurity = checkBox7.Checked;
}
void checkBox5_CheckedChanged(object sender, EventArgs e)
{
checkBox5.Checked = loadedClientInfo.NoGraphicsOptions;
loadedClientInfo.NoGraphicsOptions = checkBox5.Checked;
}
void NewToolStripMenuItemClick(object sender, EventArgs e)