コード例 #1
0
        private void LoadCategoryResponses()
        {
            List <SkillCategory> categories = _skill.GetActiveCategories();

            ClearPageResponses("CategoryPage");
            foreach (SkillCategory category in categories)
            {
                AddResponseToPage("CategoryPage", category.Name, true, category.ID);
            }
        }
コード例 #2
0
        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));
        }
コード例 #3
0
        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);
        }
コード例 #4
0
        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);
        }
コード例 #5
0
        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);
        }