//Quickly change a socialstat combobox data private void SetSocialStatCombobox(ComboBox combobox, Addresses.SocialStats socialStat, int[] socialStatValues) { int value = socialStatValues[combobox.SelectedIndex]; Addresses.SetSocialStat(socialStat, value); SetInformationBar(socialStat.ToString() + " set to: " + combobox.Text); }
//Retrieve the data from a socialstat combobox private void GetSocialStatCombobox(ComboBox combobox, Addresses.SocialStats socialStat) { int value = Addresses.GetSocialStat(socialStat); combobox.Text = Addresses.SocialStatName(socialStat, value); SetInformationBar(socialStat.ToString() + " retrieved as: " + combobox.Text); }
private void SetCharmButton_Click(object sender, EventArgs e) { ComboBox combobox = charmInput; Addresses.SocialStats stat = Addresses.SocialStats.Charm; int[] socialStatValues = new int[5] { 5, 51, 91, 131, 132 }; SetSocialStatCombobox(combobox, stat, socialStatValues); }
private void SetKindnessButton_Click(object sender, EventArgs e) { ComboBox combobox = kindnessInput; Addresses.SocialStats stat = Addresses.SocialStats.Kindness; int[] socialStatValues = new int[5] { 13, 43, 90, 135, 136 }; SetSocialStatCombobox(combobox, stat, socialStatValues); }
private void SetProficiencyButton_Click(object sender, EventArgs e) { ComboBox combobox = proficiencyInput; Addresses.SocialStats stat = Addresses.SocialStats.Proficiency; int[] socialStatValues = new int[5] { 11, 33, 59, 86, 87 }; SetSocialStatCombobox(combobox, stat, socialStatValues); }
private void SetGutsButton_Click(object sender, EventArgs e) { ComboBox combobox = gutsInput; Addresses.SocialStats stat = Addresses.SocialStats.Guts; int[] socialStatValues = new int[5] { 10, 28, 56, 112, 113 }; SetSocialStatCombobox(combobox, stat, socialStatValues); }
private void SetKnowledgeButton_Click(object sender, EventArgs e) { ComboBox combobox = knowledgeInput; Addresses.SocialStats stat = Addresses.SocialStats.Knowledge; int[] socialStatValues = new int[5] { 33, 81, 125, 191, 192 }; SetSocialStatCombobox(combobox, stat, socialStatValues); }