fixes for the QOL fix

This commit is contained in:
Bitl 2020-07-10 15:27:07 -07:00
parent d8725a9956
commit 0378f677e8
2 changed files with 48 additions and 18 deletions

View File

@ -1358,7 +1358,14 @@ namespace NovetusLauncher
if (!string.IsNullOrWhiteSpace(ShirtsIDBox.Text)) if (!string.IsNullOrWhiteSpace(ShirtsIDBox.Text))
{ {
GlobalVars.UserCustomization.Shirt = Custom_Shirt_URL + ShirtsIDBox.Text; GlobalVars.UserCustomization.Shirt = Custom_Shirt_URL + ShirtsIDBox.Text;
CustomizationFuncs.ChangeItem( ShirtsIDBox.Focus();
}
else
{
GlobalVars.UserCustomization.Shirt = listBox6.SelectedItem.ToString();
}
CustomizationFuncs.ChangeItem(
GlobalVars.UserCustomization.Shirt, GlobalVars.UserCustomization.Shirt,
GlobalPaths.shirtdir, GlobalPaths.shirtdir,
"NoShirt", "NoShirt",
@ -1367,8 +1374,6 @@ namespace NovetusLauncher
listBox6, listBox6,
false false
); );
ShirtsIDBox.Focus();
}
} }
private void TShirtsIDBox_TextChanged(object sender, EventArgs e) private void TShirtsIDBox_TextChanged(object sender, EventArgs e)
@ -1378,7 +1383,14 @@ namespace NovetusLauncher
if (!string.IsNullOrWhiteSpace(TShirtsIDBox.Text)) if (!string.IsNullOrWhiteSpace(TShirtsIDBox.Text))
{ {
GlobalVars.UserCustomization.TShirt = Custom_T_Shirt_URL + TShirtsIDBox.Text; GlobalVars.UserCustomization.TShirt = Custom_T_Shirt_URL + TShirtsIDBox.Text;
CustomizationFuncs.ChangeItem( TShirtsIDBox.Focus();
}
else
{
GlobalVars.UserCustomization.TShirt = listBox5.SelectedItem.ToString();
}
CustomizationFuncs.ChangeItem(
GlobalVars.UserCustomization.TShirt, GlobalVars.UserCustomization.TShirt,
GlobalPaths.tshirtdir, GlobalPaths.tshirtdir,
"NoTShirt", "NoTShirt",
@ -1387,8 +1399,6 @@ namespace NovetusLauncher
listBox5, listBox5,
false false
); );
TShirtsIDBox.Focus();
}
} }
private void PantsIDBox_TextChanged(object sender, EventArgs e) private void PantsIDBox_TextChanged(object sender, EventArgs e)
@ -1398,7 +1408,14 @@ namespace NovetusLauncher
if (!string.IsNullOrWhiteSpace(PantsIDBox.Text)) if (!string.IsNullOrWhiteSpace(PantsIDBox.Text))
{ {
GlobalVars.UserCustomization.Pants = Custom_Pants_URL + PantsIDBox.Text; GlobalVars.UserCustomization.Pants = Custom_Pants_URL + PantsIDBox.Text;
CustomizationFuncs.ChangeItem( PantsIDBox.Focus();
}
else
{
GlobalVars.UserCustomization.Pants = listBox7.SelectedItem.ToString();
}
CustomizationFuncs.ChangeItem(
GlobalVars.UserCustomization.Pants, GlobalVars.UserCustomization.Pants,
GlobalPaths.pantsdir, GlobalPaths.pantsdir,
"NoPants", "NoPants",
@ -1407,8 +1424,6 @@ namespace NovetusLauncher
listBox7, listBox7,
false false
); );
PantsIDBox.Focus();
}
} }
private void ShirtsTypeBox_SelectedIndexChanged(object sender, EventArgs e) private void ShirtsTypeBox_SelectedIndexChanged(object sender, EventArgs e)

View File

@ -1362,7 +1362,14 @@ namespace NovetusLauncher
if (!string.IsNullOrWhiteSpace(ShirtsIDBox.Text)) if (!string.IsNullOrWhiteSpace(ShirtsIDBox.Text))
{ {
GlobalVars.UserCustomization.Shirt = Custom_Shirt_URL + ShirtsIDBox.Text; GlobalVars.UserCustomization.Shirt = Custom_Shirt_URL + ShirtsIDBox.Text;
CustomizationFuncs.ChangeItem( ShirtsIDBox.Focus();
}
else
{
GlobalVars.UserCustomization.Shirt = listBox6.SelectedItem.ToString();
}
CustomizationFuncs.ChangeItem(
GlobalVars.UserCustomization.Shirt, GlobalVars.UserCustomization.Shirt,
GlobalPaths.shirtdir, GlobalPaths.shirtdir,
"NoShirt", "NoShirt",
@ -1371,8 +1378,6 @@ namespace NovetusLauncher
listBox6, listBox6,
false false
); );
ShirtsIDBox.Focus();
}
} }
private void TShirtsIDBox_TextChanged(object sender, EventArgs e) private void TShirtsIDBox_TextChanged(object sender, EventArgs e)
@ -1382,7 +1387,14 @@ namespace NovetusLauncher
if (!string.IsNullOrWhiteSpace(TShirtsIDBox.Text)) if (!string.IsNullOrWhiteSpace(TShirtsIDBox.Text))
{ {
GlobalVars.UserCustomization.TShirt = Custom_T_Shirt_URL + TShirtsIDBox.Text; GlobalVars.UserCustomization.TShirt = Custom_T_Shirt_URL + TShirtsIDBox.Text;
CustomizationFuncs.ChangeItem( TShirtsIDBox.Focus();
}
else
{
GlobalVars.UserCustomization.TShirt = listBox5.SelectedItem.ToString();
}
CustomizationFuncs.ChangeItem(
GlobalVars.UserCustomization.TShirt, GlobalVars.UserCustomization.TShirt,
GlobalPaths.tshirtdir, GlobalPaths.tshirtdir,
"NoTShirt", "NoTShirt",
@ -1391,8 +1403,6 @@ namespace NovetusLauncher
listBox5, listBox5,
false false
); );
TShirtsIDBox.Focus();
}
} }
private void PantsIDBox_TextChanged(object sender, EventArgs e) private void PantsIDBox_TextChanged(object sender, EventArgs e)
@ -1402,7 +1412,14 @@ namespace NovetusLauncher
if (!string.IsNullOrWhiteSpace(PantsIDBox.Text)) if (!string.IsNullOrWhiteSpace(PantsIDBox.Text))
{ {
GlobalVars.UserCustomization.Pants = Custom_Pants_URL + PantsIDBox.Text; GlobalVars.UserCustomization.Pants = Custom_Pants_URL + PantsIDBox.Text;
CustomizationFuncs.ChangeItem( PantsIDBox.Focus();
}
else
{
GlobalVars.UserCustomization.Pants = listBox7.SelectedItem.ToString();
}
CustomizationFuncs.ChangeItem(
GlobalVars.UserCustomization.Pants, GlobalVars.UserCustomization.Pants,
GlobalPaths.pantsdir, GlobalPaths.pantsdir,
"NoPants", "NoPants",
@ -1411,8 +1428,6 @@ namespace NovetusLauncher
listBox7, listBox7,
false false
); );
PantsIDBox.Focus();
}
} }
private void ShirtsTypeBox_SelectedIndexChanged(object sender, EventArgs e) private void ShirtsTypeBox_SelectedIndexChanged(object sender, EventArgs e)