Example #1
0
        //Skills
        private void ChangeSelectedSkill(object sender, SelectionChangedEventArgs e)
        {
            selectedSkill = ValheimData.ConvertSkillEnum(SkillsSelectBox.SelectedItem.ToString());
            var skillLevel = character.Skills[selectedSkill];

            SkillLevelTextbox.Text = skillLevel.Level.ToString();
        }
Example #2
0
 private void Populate()
 {
     foreach (ValheimData.Character.Skill skill in character.Skills.Values)
     {
         SkillsSelectBox.Items.Add(ValheimData.ConvertSkillEnum(skill.SkillName));
     }
 }