Reset button fixes.

This commit is contained in:
Bitl 2020-07-03 13:12:09 -07:00
parent 8c8369e312
commit 813119147d
2 changed files with 18 additions and 6 deletions

View File

@ -873,6 +873,8 @@ namespace NovetusLauncher
{ {
if (Directory.Exists(GlobalVars.tshirtdir)) if (Directory.Exists(GlobalVars.tshirtdir))
{ {
textBox12.Text = "";
comboBox3.SelectedItem = "Roblox";
listBox5.SelectedItem = "NoTShirt.rbxm"; listBox5.SelectedItem = "NoTShirt.rbxm";
GlobalVars.Custom_T_Shirt_Offline = listBox5.SelectedItem.ToString(); GlobalVars.Custom_T_Shirt_Offline = listBox5.SelectedItem.ToString();
Image icon1 = LauncherFuncs.LoadImage(GlobalVars.tshirtdir + "\\" + GlobalVars.Custom_T_Shirt_Offline.Replace(".rbxm", "") + ".png"); Image icon1 = LauncherFuncs.LoadImage(GlobalVars.tshirtdir + "\\" + GlobalVars.Custom_T_Shirt_Offline.Replace(".rbxm", "") + ".png");
@ -936,6 +938,8 @@ namespace NovetusLauncher
{ {
if (Directory.Exists(GlobalVars.shirtdir)) if (Directory.Exists(GlobalVars.shirtdir))
{ {
textBox11.Text = "";
comboBox2.SelectedItem = "Roblox";
listBox6.SelectedItem = "NoShirt.rbxm"; listBox6.SelectedItem = "NoShirt.rbxm";
GlobalVars.Custom_Shirt_Offline = listBox6.SelectedItem.ToString(); GlobalVars.Custom_Shirt_Offline = listBox6.SelectedItem.ToString();
Image icon1 = LauncherFuncs.LoadImage(GlobalVars.shirtdir + "\\" + GlobalVars.Custom_Shirt_Offline.Replace(".rbxm", "") + ".png"); Image icon1 = LauncherFuncs.LoadImage(GlobalVars.shirtdir + "\\" + GlobalVars.Custom_Shirt_Offline.Replace(".rbxm", "") + ".png");
@ -999,6 +1003,8 @@ namespace NovetusLauncher
{ {
if (Directory.Exists(GlobalVars.pantsdir)) if (Directory.Exists(GlobalVars.pantsdir))
{ {
textBox13.Text = "";
comboBox1.SelectedItem = "Roblox";
listBox7.SelectedItem = "NoPants.rbxm"; listBox7.SelectedItem = "NoPants.rbxm";
GlobalVars.Custom_Pants_Offline = listBox7.SelectedItem.ToString(); GlobalVars.Custom_Pants_Offline = listBox7.SelectedItem.ToString();
Image icon1 = LauncherFuncs.LoadImage(GlobalVars.pantsdir + "\\" + GlobalVars.Custom_Pants_Offline.Replace(".rbxm", "") + ".png"); Image icon1 = LauncherFuncs.LoadImage(GlobalVars.pantsdir + "\\" + GlobalVars.Custom_Pants_Offline.Replace(".rbxm", "") + ".png");

View File

@ -865,6 +865,8 @@ namespace NovetusLauncher
{ {
if (Directory.Exists(GlobalVars.tshirtdir)) if (Directory.Exists(GlobalVars.tshirtdir))
{ {
textBox11.Text = "";
comboBox2.SelectedItem = "Roblox";
listBox5.SelectedItem = "NoTShirt.rbxm"; listBox5.SelectedItem = "NoTShirt.rbxm";
GlobalVars.Custom_T_Shirt_Offline = listBox5.SelectedItem.ToString(); GlobalVars.Custom_T_Shirt_Offline = listBox5.SelectedItem.ToString();
Image icon1 = LauncherFuncs.LoadImage(GlobalVars.tshirtdir + "\\" + GlobalVars.Custom_T_Shirt_Offline.Replace(".rbxm", "") + ".png"); Image icon1 = LauncherFuncs.LoadImage(GlobalVars.tshirtdir + "\\" + GlobalVars.Custom_T_Shirt_Offline.Replace(".rbxm", "") + ".png");
@ -928,6 +930,8 @@ namespace NovetusLauncher
{ {
if (Directory.Exists(GlobalVars.shirtdir)) if (Directory.Exists(GlobalVars.shirtdir))
{ {
textBox12.Text = "";
comboBox1.SelectedItem = "Roblox";
listBox6.SelectedItem = "NoShirt.rbxm"; listBox6.SelectedItem = "NoShirt.rbxm";
GlobalVars.Custom_Shirt_Offline = listBox6.SelectedItem.ToString(); GlobalVars.Custom_Shirt_Offline = listBox6.SelectedItem.ToString();
Image icon1 = LauncherFuncs.LoadImage(GlobalVars.shirtdir + "\\" + GlobalVars.Custom_Shirt_Offline.Replace(".rbxm", "") + ".png"); Image icon1 = LauncherFuncs.LoadImage(GlobalVars.shirtdir + "\\" + GlobalVars.Custom_Shirt_Offline.Replace(".rbxm", "") + ".png");
@ -991,6 +995,8 @@ namespace NovetusLauncher
{ {
if (Directory.Exists(GlobalVars.pantsdir)) if (Directory.Exists(GlobalVars.pantsdir))
{ {
textBox13.Text = "";
comboBox3.SelectedItem = "Roblox";
listBox7.SelectedItem = "NoPants.rbxm"; listBox7.SelectedItem = "NoPants.rbxm";
GlobalVars.Custom_Pants_Offline = listBox7.SelectedItem.ToString(); GlobalVars.Custom_Pants_Offline = listBox7.SelectedItem.ToString();
Image icon1 = LauncherFuncs.LoadImage(GlobalVars.pantsdir + "\\" + GlobalVars.Custom_Pants_Offline.Replace(".rbxm", "") + ".png"); Image icon1 = LauncherFuncs.LoadImage(GlobalVars.pantsdir + "\\" + GlobalVars.Custom_Pants_Offline.Replace(".rbxm", "") + ".png");