//Skills private void ChangeSelectedSkill(object sender, SelectionChangedEventArgs e) { selectedSkill = ValheimData.ConvertSkillEnum(SkillsSelectBox.SelectedItem.ToString()); var skillLevel = character.Skills[selectedSkill]; SkillLevelTextbox.Text = skillLevel.Level.ToString(); }
private void Populate() { foreach (ValheimData.Character.Skill skill in character.Skills.Values) { SkillsSelectBox.Items.Add(ValheimData.ConvertSkillEnum(skill.SkillName)); } }