private void LoadCategoryResponses() { List <SkillCategory> categories = _skill.GetActiveCategories(); ClearPageResponses("CategoryPage"); foreach (SkillCategory category in categories) { AddResponseToPage("CategoryPage", category.Name, true, category.ID); } }
private void LoadCategoryResponses() { List <SkillCategory> categories = _skill.GetActiveCategories(); ClearPageResponses("CategoryPage"); foreach (SkillCategory category in categories) { AddResponseToPage("CategoryPage", category.Name, true, new Tuple <string, dynamic>(string.Empty, category.SkillCategoryID)); } AddResponseToPage("CategoryPage", "Back", true, new Tuple <string, dynamic>(string.Empty, -1)); }
public override void Initialize() { List <SkillCategory> categories = _skill.GetActiveCategories(); foreach (SkillCategory category in categories) { AddResponseToPage("CategoryPage", category.Name, true, category.ID); } Model vm = GetDialogCustomData <Model>(); vm.Item = (GetPC().GetLocalObject("XP_TOME_OBJECT")); SetDialogCustomData(vm); }
public override void Initialize() { List <SkillCategory> categories = _skill.GetActiveCategories(); foreach (SkillCategory category in categories) { AddResponseToPage("CategoryPage", category.Name, true, new Tuple <string, dynamic>(string.Empty, category.SkillCategoryID)); } Model vm = GetDialogCustomData <Model>(); vm.Item = NWItem.Wrap(GetPC().GetLocalObject("XP_TOME_OBJECT")); SetDialogCustomData(vm); }
public override void Initialize() { List <SkillCategory> categories = _skill.GetActiveCategories().Where(x => { var skills = _data.Where <Skill>(s => s.SkillCategoryID == x.ID && s.ContributesToSkillCap); return(skills.Any()); }).ToList(); foreach (SkillCategory category in categories) { AddResponseToPage("CategoryPage", category.Name, true, category.ID); } Model vm = GetDialogCustomData <Model>(); vm.Item = (GetPC().GetLocalObject("XP_TOME_OBJECT")); SetDialogCustomData(vm); }