Table of Contents

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 int
character CharacterObject
upgradeCharacterCode CharacterCode
onUpgraded Action<int, int>
onFocused Action<UpgradeTargetVM>

Properties

AvailableUpgrades

[DataSourceProperty]
public int AvailableUpgrades { get; set; }

Property Value

int

Hint

[DataSourceProperty]
public HintViewModel Hint { get; set; }

Property Value

HintViewModel

IsAvailable

[DataSourceProperty]
public bool IsAvailable { get; set; }

Property Value

bool

IsHighlighted

[DataSourceProperty]
public bool IsHighlighted { get; set; }

Property Value

bool

IsInsufficient

[DataSourceProperty]
public bool IsInsufficient { get; set; }

Property Value

bool

PrimaryActionInputKey

[DataSourceProperty]
public InputKeyItemVM PrimaryActionInputKey { get; set; }

Property Value

InputKeyItemVM

Requirements

[DataSourceProperty]
public UpgradeRequirementsVM Requirements { get; set; }

Property Value

UpgradeRequirementsVM

SecondaryActionInputKey

[DataSourceProperty]
public InputKeyItemVM SecondaryActionInputKey { get; set; }

Property Value

InputKeyItemVM

TroopImage

[DataSourceProperty]
public ImageIdentifierVM TroopImage { get; set; }

Property Value

ImageIdentifierVM

Methods

ExecuteSetFocused()

public void ExecuteSetFocused()

ExecuteSetUnfocused()

public void ExecuteSetUnfocused()

ExecuteUpgrade()

public void ExecuteUpgrade()
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 int
hint string
isAvailable bool
isInsufficient bool
itemRequirementsMet bool
perkRequirementsMet bool

RefreshValues()

public override void RefreshValues()

This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).