fixed some types not saving automatically

This commit is contained in:
Bitl 2023-03-10 12:06:38 -07:00
parent 8b65bc4173
commit 43baf8f171
3 changed files with 14 additions and 0 deletions

View File

@ -830,6 +830,8 @@ class CharacterCustomizationShared
{
Image icon1 = Util.LoadImage(GlobalPaths.extradirIcons + "\\" + GlobalVars.UserConfiguration.PlayerName + ".png", GlobalPaths.extradir + "\\NoExtra.png");
IconImage.Image = icon1;
SaveOutfit(false);
}
public void LoadRemoteIcon()
@ -868,6 +870,8 @@ class CharacterCustomizationShared
IconImage.Image = icon1;
Util.LogExceptions(ex);
}
SaveOutfit(false);
}
#endregion
}

View File

@ -786,6 +786,7 @@ public partial class CharacterCustomizationCompact : Form
IconURLBox.Text = "";
GlobalVars.UserCustomization.Icon = "BC";
label5.Text = GlobalVars.UserCustomization.Icon;
characterCustomizationForm.SaveOutfit(false);
}
void Button53Click(object sender, EventArgs e)
@ -793,6 +794,7 @@ public partial class CharacterCustomizationCompact : Form
IconURLBox.Text = "";
GlobalVars.UserCustomization.Icon = "TBC";
label5.Text = GlobalVars.UserCustomization.Icon;
characterCustomizationForm.SaveOutfit(false);
}
void Button54Click(object sender, EventArgs e)
@ -800,6 +802,7 @@ public partial class CharacterCustomizationCompact : Form
IconURLBox.Text = "";
GlobalVars.UserCustomization.Icon = "OBC";
label5.Text = GlobalVars.UserCustomization.Icon;
characterCustomizationForm.SaveOutfit(false);
}
void Button55Click(object sender, EventArgs e)
@ -807,6 +810,7 @@ public partial class CharacterCustomizationCompact : Form
IconURLBox.Text = "";
GlobalVars.UserCustomization.Icon = "NBC";
label5.Text = GlobalVars.UserCustomization.Icon;
characterCustomizationForm.SaveOutfit(false);
}
private void button60_Click(object sender, EventArgs e)
@ -838,6 +842,7 @@ public partial class CharacterCustomizationCompact : Form
void TextBox1TextChanged(object sender, EventArgs e)
{
GlobalVars.UserCustomization.CharacterID = textBox1.Text;
characterCustomizationForm.SaveOutfit(false);
}
private void listView1_SelectedIndexChanged(object sender, EventArgs e)

View File

@ -792,6 +792,7 @@ public partial class CharacterCustomizationExtended : Form
IconURLBox.Text = "";
GlobalVars.UserCustomization.Icon = "BC";
label5.Text = GlobalVars.UserCustomization.Icon;
characterCustomizationForm.SaveOutfit(false);
}
void Button53Click(object sender, EventArgs e)
@ -799,6 +800,7 @@ public partial class CharacterCustomizationExtended : Form
IconURLBox.Text = "";
GlobalVars.UserCustomization.Icon = "TBC";
label5.Text = GlobalVars.UserCustomization.Icon;
characterCustomizationForm.SaveOutfit(false);
}
void Button54Click(object sender, EventArgs e)
@ -806,6 +808,7 @@ public partial class CharacterCustomizationExtended : Form
IconURLBox.Text = "";
GlobalVars.UserCustomization.Icon = "OBC";
label5.Text = GlobalVars.UserCustomization.Icon;
characterCustomizationForm.SaveOutfit(false);
}
void Button55Click(object sender, EventArgs e)
@ -813,6 +816,7 @@ public partial class CharacterCustomizationExtended : Form
IconURLBox.Text = "";
GlobalVars.UserCustomization.Icon = "NBC";
label5.Text = GlobalVars.UserCustomization.Icon;
characterCustomizationForm.SaveOutfit(false);
}
private void button60_Click(object sender, EventArgs e)
@ -906,6 +910,7 @@ public partial class CharacterCustomizationExtended : Form
void TextBox1TextChanged(object sender, EventArgs e)
{
GlobalVars.UserCustomization.CharacterID = textBox1.Text;
characterCustomizationForm.SaveOutfit(false);
}
private void listView1_SelectedIndexChanged(object sender, EventArgs e)