Esempio n. 1
0
 /// <summary>
 /// Synchronize UI with current data
 /// </summary>
 private void UIChanged()
 {
     OnButtonEnabled("learn", _skills.IsLearnable(skillSelectedId) && _skillPoints >= _skills.GetSkillInfo(skillSelectedId).cost);
     OnButtonEnabled("forget", _skills.IsForgetable(skillSelectedId));
     OnTextBoxChanged("cost", _skills.GetSkillInfo(skillSelectedId).cost.ToString());
     OnTextBoxChanged("skill_points", _skillPoints.ToString());
 }