Class MPArmoryCosmeticItemBaseVM
- Assembly
- TaleWorlds.MountAndBlade.Multiplayer.ViewModelCollection.dll
public abstract class MPArmoryCosmeticItemBaseVM : ViewModel
- Inheritance
-
MPArmoryCosmeticItemBaseVM
- Derived
Constructors
MPArmoryCosmeticItemBaseVM(CosmeticElement, string, CosmeticType)
public MPArmoryCosmeticItemBaseVM(CosmeticElement cosmetic, string cosmeticID, CosmeticsManager.CosmeticType cosmeticType)
Parameters
cosmetic
CosmeticElementcosmeticID
stringcosmeticType
CosmeticType
Fields
Cosmetic
public readonly CosmeticElement Cosmetic
Field Value
CosmeticID
public readonly string CosmeticID
Field Value
Properties
ActionKey
public InputKeyItemVM ActionKey { get; set; }
Property Value
ActionText
public string ActionText { get; set; }
Property Value
AreActionsEnabled
public bool AreActionsEnabled { get; set; }
Property Value
CosmeticType
public CosmeticsManager.CosmeticType CosmeticType { get; }
Property Value
Cost
public int Cost { get; set; }
Property Value
Icon
public ImageIdentifierVM Icon { get; set; }
Property Value
IsSelectable
public bool IsSelectable { get; set; }
Property Value
IsUnequippable
public bool IsUnequippable { get; set; }
Property Value
IsUnlocked
public bool IsUnlocked { get; set; }
Property Value
IsUsed
public bool IsUsed { get; set; }
Property Value
ItemType
public int ItemType { get; set; }
Property Value
Name
public string Name { get; set; }
Property Value
OwnedText
public string OwnedText { get; set; }
Property Value
PreviewKey
public InputKeyItemVM PreviewKey { get; set; }
Property Value
PreviewText
public string PreviewText { get; set; }
Property Value
Rarity
public int Rarity { get; set; }
Property Value
UnequipText
public string UnequipText { get; }
Property Value
Methods
ExecuteAction()
public void ExecuteAction()
ExecuteDisableActions()
public void ExecuteDisableActions()
ExecuteEnableActions()
public void ExecuteEnableActions()
ExecutePreview()
public void ExecutePreview()
OnFinalize()
public override void OnFinalize()
RefreshKeyBindings(HotKey, HotKey)
public void RefreshKeyBindings(HotKey actionKey, HotKey previewKey)
Parameters
RefreshValues()
public override void RefreshValues()
UpdatePreviewAndActionTexts()
protected void UpdatePreviewAndActionTexts()
Events
OnEquipped
public static event Action<MPArmoryCosmeticItemBaseVM> OnEquipped
Event Type
OnPreviewed
public static event Action<MPArmoryCosmeticItemBaseVM> OnPreviewed
Event Type
OnPurchaseRequested
public static event Action<MPArmoryCosmeticItemBaseVM> OnPurchaseRequested
Event Type
This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).