More stability fixes. The way the launcher loads values is a nightmare

This commit is contained in:
Bitl 2020-07-03 13:03:21 -07:00
parent cba4774347
commit 8c8369e312
4 changed files with 48 additions and 54 deletions

View File

@ -1907,6 +1907,7 @@ namespace NovetusLauncher
this.comboBox1.Items.AddRange(new object[] {
"Roblox",
"Finobe"});
this.comboBox1.SelectedItem = "Roblox";
this.comboBox1.Location = new System.Drawing.Point(3, 221);
this.comboBox1.Name = "comboBox1";
this.comboBox1.Size = new System.Drawing.Size(194, 21);
@ -1920,6 +1921,7 @@ namespace NovetusLauncher
this.comboBox2.Items.AddRange(new object[] {
"Roblox",
"Finobe"});
this.comboBox2.SelectedItem = "Roblox";
this.comboBox2.Location = new System.Drawing.Point(3, 221);
this.comboBox2.Name = "comboBox2";
this.comboBox2.Size = new System.Drawing.Size(194, 21);
@ -1933,6 +1935,7 @@ namespace NovetusLauncher
this.comboBox3.Items.AddRange(new object[] {
"Roblox",
"Finobe"});
this.comboBox3.SelectedItem = "Roblox";
this.comboBox3.Location = new System.Drawing.Point(3, 221);
this.comboBox3.Name = "comboBox3";
this.comboBox3.Size = new System.Drawing.Size(194, 21);

View File

@ -142,56 +142,44 @@ namespace NovetusLauncher
//clothing
if (GlobalVars.Custom_T_Shirt_Offline.Contains("http://"))
{
if (GlobalVars.Custom_T_Shirt_Offline.Contains("http://www.roblox.com/asset/?id="))
{
comboBox3.SelectedItem = "Roblox";
}
else if (GlobalVars.Custom_T_Shirt_Offline.Contains("http://finobe.com/asset/?id="))
if (GlobalVars.Custom_T_Shirt_Offline.Contains("http://finobe.com/asset/?id="))
{
textBox12.Text = GlobalVars.Custom_T_Shirt_Offline.Replace("http://finobe.com/asset/?id=", "");
comboBox3.SelectedItem = "Finobe";
}
textBox12.Text = GlobalVars.Custom_T_Shirt_Offline.Replace("http://www.roblox.com/asset/?id=", "").Replace("http://finobe.com/asset/?id=", "");
}
else
{
comboBox3.SelectedItem = "Roblox";
else if (GlobalVars.Custom_T_Shirt_Offline.Contains("http://www.roblox.com/asset/?id="))
{
textBox12.Text = GlobalVars.Custom_T_Shirt_Offline.Replace("http://www.roblox.com/asset/?id=", "");
comboBox3.SelectedItem = "Roblox";
}
}
if (GlobalVars.Custom_Shirt_Offline.Contains("http://"))
{
if (GlobalVars.Custom_Shirt_Offline.Contains("http://www.roblox.com/asset/?id="))
{
comboBox2.SelectedItem = "Roblox";
}
else if (GlobalVars.Custom_Shirt_Offline.Contains("http://finobe.com/asset/?id="))
if (GlobalVars.Custom_Shirt_Offline.Contains("http://finobe.com/asset/?id="))
{
textBox11.Text = GlobalVars.Custom_Shirt_Offline.Replace("http://finobe.com/asset/?id=", "");
comboBox2.SelectedItem = "Finobe";
}
textBox11.Text = GlobalVars.Custom_Shirt_Offline.Replace("http://www.roblox.com/asset/?id=", "").Replace("http://finobe.com/asset/?id=", "");
}
else
{
comboBox2.SelectedItem = "Roblox";
else if (GlobalVars.Custom_Shirt_Offline.Contains("http://www.roblox.com/asset/?id="))
{
textBox11.Text = GlobalVars.Custom_Shirt_Offline.Replace("http://www.roblox.com/asset/?id=", "");
comboBox2.SelectedItem = "Roblox";
}
}
if (GlobalVars.Custom_Pants_Offline.Contains("http://"))
{
if (GlobalVars.Custom_Pants_Offline.Contains("http://www.roblox.com/asset/?id="))
{
comboBox1.SelectedItem = "Roblox";
}
else if (GlobalVars.Custom_Pants_Offline.Contains("http://finobe.com/asset/?id="))
if (GlobalVars.Custom_Pants_Offline.Contains("http://finobe.com/asset/?id="))
{
textBox13.Text = GlobalVars.Custom_Pants_Offline.Replace("http://finobe.com/asset/?id=", "");
comboBox1.SelectedItem = "Finobe";
}
textBox13.Text = GlobalVars.Custom_Pants_Offline.Replace("http://www.roblox.com/asset/?id=", "").Replace("http://finobe.com/asset/?id=", "");
}
else
{
comboBox1.SelectedItem = "Roblox";
else if (GlobalVars.Custom_Pants_Offline.Contains("http://www.roblox.com/asset/?id="))
{
textBox13.Text = GlobalVars.Custom_Pants_Offline.Replace("http://www.roblox.com/asset/?id=", "");
comboBox1.SelectedItem = "Roblox";
}
}
//discord

View File

@ -1684,6 +1684,7 @@ namespace NovetusLauncher
this.comboBox3.Items.AddRange(new object[] {
"Roblox",
"Finobe"});
this.comboBox3.SelectedItem = "Roblox";
this.comboBox3.Location = new System.Drawing.Point(6, 162);
this.comboBox3.Name = "comboBox3";
this.comboBox3.Size = new System.Drawing.Size(194, 21);
@ -1697,6 +1698,7 @@ namespace NovetusLauncher
this.comboBox1.Items.AddRange(new object[] {
"Roblox",
"Finobe"});
this.comboBox1.SelectedItem = "Roblox";
this.comboBox1.Location = new System.Drawing.Point(6, 162);
this.comboBox1.Name = "comboBox1";
this.comboBox1.Size = new System.Drawing.Size(194, 21);
@ -1710,6 +1712,7 @@ namespace NovetusLauncher
this.comboBox2.Items.AddRange(new object[] {
"Roblox",
"Finobe"});
this.comboBox2.SelectedItem = "Roblox";
this.comboBox2.Location = new System.Drawing.Point(6, 162);
this.comboBox2.Name = "comboBox2";
this.comboBox2.Size = new System.Drawing.Size(194, 21);

View File

@ -140,44 +140,44 @@ namespace NovetusLauncher
//clothing
if (GlobalVars.Custom_T_Shirt_Offline.Contains("http://"))
{
if (GlobalVars.Custom_T_Shirt_Offline.Contains("http://www.roblox.com/asset/?id="))
{
comboBox2.SelectedItem = "Roblox";
}
else if (GlobalVars.Custom_T_Shirt_Offline.Contains("http://finobe.com/asset/?id="))
if (GlobalVars.Custom_T_Shirt_Offline.Contains("http://finobe.com/asset/?id="))
{
textBox11.Text = GlobalVars.Custom_T_Shirt_Offline.Replace("http://finobe.com/asset/?id=", "");
comboBox2.SelectedItem = "Finobe";
}
textBox11.Text = GlobalVars.Custom_T_Shirt_Offline.Replace("http://www.roblox.com/asset/?id=", "").Replace("http://finobe.com/asset/?id=", "");
else if (GlobalVars.Custom_T_Shirt_Offline.Contains("http://www.roblox.com/asset/?id="))
{
textBox12.Text = GlobalVars.Custom_T_Shirt_Offline.Replace("http://www.roblox.com/asset/?id=", "");
comboBox2.SelectedItem = "Roblox";
}
}
if (GlobalVars.Custom_Shirt_Offline.Contains("http://"))
{
if (GlobalVars.Custom_Shirt_Offline.Contains("http://www.roblox.com/asset/?id="))
{
comboBox1.SelectedItem = "Roblox";
}
else if (GlobalVars.Custom_Shirt_Offline.Contains("http://finobe.com/asset/?id="))
if (GlobalVars.Custom_Shirt_Offline.Contains("http://finobe.com/asset/?id="))
{
textBox12.Text = GlobalVars.Custom_Shirt_Offline.Replace("http://finobe.com/asset/?id=", "");
comboBox1.SelectedItem = "Finobe";
}
textBox12.Text = GlobalVars.Custom_Shirt_Offline.Replace("http://www.roblox.com/asset/?id=", "").Replace("http://finobe.com/asset/?id=", "");
else if (GlobalVars.Custom_Shirt_Offline.Contains("http://www.roblox.com/asset/?id="))
{
textBox12.Text = GlobalVars.Custom_Shirt_Offline.Replace("http://www.roblox.com/asset/?id=", "");
comboBox1.SelectedItem = "Roblox";
}
}
if (GlobalVars.Custom_Pants_Offline.Contains("http://"))
{
if (GlobalVars.Custom_Pants_Offline.Contains("http://www.roblox.com/asset/?id="))
{
comboBox3.SelectedItem = "Roblox";
}
else if (GlobalVars.Custom_Pants_Offline.Contains("http://finobe.com/asset/?id="))
if (GlobalVars.Custom_Pants_Offline.Contains("http://finobe.com/asset/?id="))
{
textBox13.Text = GlobalVars.Custom_Pants_Offline.Replace("http://finobe.com/asset/?id=", "");
comboBox3.SelectedItem = "Finobe";
}
textBox13.Text = GlobalVars.Custom_Pants_Offline.Replace("http://www.roblox.com/asset/?id=", "").Replace("http://finobe.com/asset/?id=", "");
else if (GlobalVars.Custom_Pants_Offline.Contains("http://www.roblox.com/asset/?id="))
{
textBox13.Text = GlobalVars.Custom_Pants_Offline.Replace("http://www.roblox.com/asset/?id=", "");
comboBox3.SelectedItem = "Roblox";
}
}
//discord