Class SPItemVM
- 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
InventoryLogicisHeroFemale
boolcanCharacterUseItem
boolusageType
InventoryModenewItem
ItemRosterElementinventorySide
InventoryLogic.InventorySidefiveStackShortcutKeyText
stringentireStackShortcutKeyText
stringitemCost
intitemType
EquipmentIndex?
Fields
OnFocus
public static Action<SPItemVM> OnFocus
Field Value
ProcessItemDonate
public static Action<SPItemVM> ProcessItemDonate
Field Value
ProcessItemSlaughter
public static Action<SPItemVM> ProcessItemSlaughter
Field Value
ProcessLockItem
public static Action<SPItemVM, bool> ProcessLockItem
Field Value
ProcessSellItem
public static Action<SPItemVM, bool> ProcessSellItem
Field Value
Properties
CanBeDonated
[DataSourceProperty]
public bool CanBeDonated { get; set; }
Property Value
CanBeSlaughtered
[DataSourceProperty]
public bool CanBeSlaughtered { get; set; }
Property Value
CanCharacterUseItem
[DataSourceProperty]
public bool CanCharacterUseItem { get; set; }
Property Value
InventorySide
public InventoryLogic.InventorySide InventorySide { get; }
Property Value
IsArtifact
[DataSourceProperty]
public bool IsArtifact { get; set; }
Property Value
IsCivilianItem
[DataSourceProperty]
public bool IsCivilianItem { get; set; }
Property Value
IsEquipableItem
[DataSourceProperty]
public bool IsEquipableItem { get; set; }
Property Value
IsFocused
[DataSourceProperty]
public bool IsFocused { get; set; }
Property Value
IsGenderDifferent
[DataSourceProperty]
public bool IsGenderDifferent { get; set; }
Property Value
IsItemHighlightEnabled
[DataSourceProperty]
public bool IsItemHighlightEnabled { get; set; }
Property Value
IsLocked
[DataSourceProperty]
public bool IsLocked { get; set; }
Property Value
IsNew
[DataSourceProperty]
public bool IsNew { get; set; }
Property Value
IsTransferButtonHighlighted
[DataSourceProperty]
public bool IsTransferButtonHighlighted { get; set; }
Property Value
IsTransferable
[DataSourceProperty]
public bool IsTransferable { get; set; }
Property Value
ItemCount
[DataSourceProperty]
public int ItemCount { get; set; }
Property Value
ItemLevel
[DataSourceProperty]
public int ItemLevel { get; set; }
Property Value
ProfitType
[DataSourceProperty]
public int ProfitType { get; set; }
Property Value
TotalCost
[DataSourceProperty]
public int TotalCost { get; set; }
Property Value
TradeData
[DataSourceProperty]
public InventoryTradeVM TradeData { get; set; }
Property Value
TransactionCount
[DataSourceProperty]
public int TransactionCount { get; set; }
Property Value
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
Returns
RefreshValues()
public override void RefreshValues()
RefreshWith(SPItemVM, InventorySide)
public void RefreshWith(SPItemVM itemVM, InventoryLogic.InventorySide inventorySide)
Parameters
itemVM
SPItemVMinventorySide
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).