Table of Contents

Class SPItemVM

Namespace
TaleWorlds.CampaignSystem.ViewModelCollection.Inventory
Assembly
TaleWorlds.CampaignSystem.ViewModelCollection.dll
public class SPItemVM : ItemVM, IViewModel, INotifyPropertyChanged
Inheritance
SPItemVM
Implements
Inherited Members

Constructors

SPItemVM()

public SPItemVM()

SPItemVM(InventoryLogic, bool, bool, InventoryMode, ItemRosterElement, InventorySide, string, string, int, EquipmentIndex?)

public SPItemVM(InventoryLogic inventoryLogic, bool isHeroFemale, bool canCharacterUseItem, InventoryMode usageType, ItemRosterElement newItem, InventoryLogic.InventorySide inventorySide, string fiveStackShortcutKeyText, string entireStackShortcutKeyText, int itemCost = 0, EquipmentIndex? itemType = EquipmentIndex.None)

Parameters

inventoryLogic InventoryLogic
isHeroFemale bool
canCharacterUseItem bool
usageType InventoryMode
newItem ItemRosterElement
inventorySide InventoryLogic.InventorySide
fiveStackShortcutKeyText string
entireStackShortcutKeyText string
itemCost int
itemType EquipmentIndex?

Fields

OnFocus

public static Action<SPItemVM> OnFocus

Field Value

Action<SPItemVM>

ProcessItemDonate

public static Action<SPItemVM> ProcessItemDonate

Field Value

Action<SPItemVM>

ProcessItemSlaughter

public static Action<SPItemVM> ProcessItemSlaughter

Field Value

Action<SPItemVM>

ProcessLockItem

public static Action<SPItemVM, bool> ProcessLockItem

Field Value

Action<SPItemVM, bool>

ProcessSellItem

public static Action<SPItemVM, bool> ProcessSellItem

Field Value

Action<SPItemVM, bool>

Properties

CanBeDonated

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

Property Value

bool

CanBeSlaughtered

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

Property Value

bool

CanCharacterUseItem

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

Property Value

bool

InventorySide

public InventoryLogic.InventorySide InventorySide { get; }

Property Value

InventoryLogic.InventorySide

IsArtifact

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

Property Value

bool

IsCivilianItem

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

Property Value

bool

IsEquipableItem

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

Property Value

bool

IsFocused

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

Property Value

bool

IsGenderDifferent

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

Property Value

bool

IsItemHighlightEnabled

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

Property Value

bool

IsLocked

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

Property Value

bool

IsNew

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

Property Value

bool

IsTransferButtonHighlighted

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

Property Value

bool

IsTransferable

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

Property Value

bool

ItemCount

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

Property Value

int

ItemLevel

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

Property Value

int

ProfitType

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

Property Value

int

TotalCost

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

Property Value

int

TradeData

[DataSourceProperty]
public InventoryTradeVM TradeData { get; set; }

Property Value

InventoryTradeVM

TransactionCount

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

Property Value

int

Methods

ExecuteBuySingle()

public void ExecuteBuySingle()

ExecuteConcept()

public void ExecuteConcept()

ExecuteDonateItem()

public void ExecuteDonateItem()

ExecuteResetTrade()

public void ExecuteResetTrade()

ExecuteSellItem()

public void ExecuteSellItem()

ExecuteSellSingle()

public void ExecuteSellSingle()

ExecuteSetFocused()

public void ExecuteSetFocused()

ExecuteSetUnfocused()

public void ExecuteSetUnfocused()

ExecuteSlaughterItem()

public void ExecuteSlaughterItem()

GetProfitTypeFromDiff(float, float)

public static SPItemVM.ProfitTypes GetProfitTypeFromDiff(float averageValue, float currentValue)

Parameters

averageValue float
currentValue float

Returns

SPItemVM.ProfitTypes

RefreshValues()

public override void RefreshValues()

RefreshWith(SPItemVM, InventorySide)

public void RefreshWith(SPItemVM itemVM, InventoryLogic.InventorySide inventorySide)

Parameters

itemVM SPItemVM
inventorySide InventoryLogic.InventorySide

UpdateCanBeSlaughtered()

public void UpdateCanBeSlaughtered()

UpdateHintTexts()

public void UpdateHintTexts()

UpdateTradeData(bool)

public void UpdateTradeData(bool forceUpdateAmounts)

Parameters

forceUpdateAmounts bool

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