public CSSkillScreenVM(CSScreenData screenData)
 {
     _screenData = screenData;
     this.Skills = new MBBindingList <CSSkillVM>();
     this.hero   = Hero.MainHero; //*Companion
     this.UnspentCharacterPoints    = screenData._focus;
     this.UnspentAttributePoints    = screenData._attributes;
     this.OrgUnspentAttributePoints = this.UnspentAttributePoints;
     this.OrgUnspentFocusPoints     = this.UnspentCharacterPoints;
 }
Пример #2
0
        public CSSkillVM(SkillObject skill, CSSkillScreenVM SkillScreenVM, CSScreenData screendata) //Action<PerkVM> onStartPerkSelection,
        {
            this.Skill          = skill;
            this._skill         = skill;
            this._SkillScreenVM = SkillScreenVM;
            this._screendata    = screendata;
            this.SkillId        = skill.StringId;
            this.Type           = (skill.IsPartySkill ? CSSkillVM.SkillType.Party : (skill.IsLeaderSkill ? CSSkillVM.SkillType.Leader : CSSkillVM.SkillType.Default)).ToString();

            this._boundAttributeName  = CharacterAttributes.GetCharacterAttribute(this.Skill.CharacterAttributeEnum).Name;
            this.LearningRateTooltip  = new BasicTooltipViewModel(() => CampaignUIHelper.GetLearningRateTooltip(this._boundAttributeCurrentValue, this.CurrentFocusLevel, this.Level, this._heroLevel, this._boundAttributeName));
            this.LearningLimitTooltip = new BasicTooltipViewModel(() => CampaignUIHelper.GetLearningLimitTooltip(this._boundAttributeCurrentValue, this.CurrentFocusLevel, this._boundAttributeName));
            this.InitializeValues();
            this._focusConceptObj = Concept.All.SingleOrDefault((Concept c) => c.StringId == "str_game_objects_skill_focus");
            this._skillConceptObj = Concept.All.SingleOrDefault((Concept c) => c.StringId == "str_game_objects_skills");
            this.RefreshValues();
        }
 public CSSkillScreen(CSScreenData screenData)
 {
     this._screenData = screenData;
 }