Class UpgradeTargetVM
- Namespace
- TaleWorlds.CampaignSystem.ViewModelCollection.Party
- Assembly
- TaleWorlds.CampaignSystem.ViewModelCollection.dll
public class UpgradeTargetVM : ViewModel, IViewModel, INotifyPropertyChanged
- Inheritance
-
UpgradeTargetVM
- Implements
- Inherited Members
Constructors
UpgradeTargetVM(int, CharacterObject, CharacterCode, Action<int, int>, Action<UpgradeTargetVM>)
public UpgradeTargetVM(int upgradeIndex, CharacterObject character, CharacterCode upgradeCharacterCode, Action<int, int> onUpgraded, Action<UpgradeTargetVM> onFocused)
Parameters
upgradeIndex
intcharacter
CharacterObjectupgradeCharacterCode
CharacterCodeonUpgraded
Action<int, int>onFocused
Action<UpgradeTargetVM>
Properties
AvailableUpgrades
[DataSourceProperty]
public int AvailableUpgrades { get; set; }
Property Value
Hint
[DataSourceProperty]
public HintViewModel Hint { get; set; }
Property Value
IsAvailable
[DataSourceProperty]
public bool IsAvailable { get; set; }
Property Value
IsHighlighted
[DataSourceProperty]
public bool IsHighlighted { get; set; }
Property Value
IsInsufficient
[DataSourceProperty]
public bool IsInsufficient { get; set; }
Property Value
PrimaryActionInputKey
[DataSourceProperty]
public InputKeyItemVM PrimaryActionInputKey { get; set; }
Property Value
Requirements
[DataSourceProperty]
public UpgradeRequirementsVM Requirements { get; set; }
Property Value
SecondaryActionInputKey
[DataSourceProperty]
public InputKeyItemVM SecondaryActionInputKey { get; set; }
Property Value
TroopImage
[DataSourceProperty]
public ImageIdentifierVM TroopImage { get; set; }
Property Value
Methods
ExecuteSetFocused()
public void ExecuteSetFocused()
ExecuteSetUnfocused()
public void ExecuteSetUnfocused()
ExecuteUpgrade()
public void ExecuteUpgrade()
ExecuteUpgradeEncyclopediaLink()
public void ExecuteUpgradeEncyclopediaLink()
Refresh(int, string, bool, bool, bool, bool)
public void Refresh(int upgradableAmount, string hint, bool isAvailable, bool isInsufficient, bool itemRequirementsMet, bool perkRequirementsMet)
Parameters
upgradableAmount
inthint
stringisAvailable
boolisInsufficient
boolitemRequirementsMet
boolperkRequirementsMet
bool
RefreshValues()
public override void RefreshValues()
This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).