Table of Contents

Class MPArmoryCosmeticItemBaseVM

Namespace
TaleWorlds.MountAndBlade.Multiplayer.ViewModelCollection.Lobby.Armory.CosmeticItem
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 CosmeticElement
cosmeticID string
cosmeticType CosmeticType

Fields

Cosmetic

public readonly CosmeticElement Cosmetic

Field Value

CosmeticElement

CosmeticID

public readonly string CosmeticID

Field Value

string

Properties

ActionKey

public InputKeyItemVM ActionKey { get; set; }

Property Value

InputKeyItemVM

ActionText

public string ActionText { get; set; }

Property Value

string

AreActionsEnabled

public bool AreActionsEnabled { get; set; }

Property Value

bool

CosmeticType

public CosmeticsManager.CosmeticType CosmeticType { get; }

Property Value

CosmeticType

Cost

public int Cost { get; set; }

Property Value

int

Icon

public ImageIdentifierVM Icon { get; set; }

Property Value

ImageIdentifierVM

IsSelectable

public bool IsSelectable { get; set; }

Property Value

bool

IsUnequippable

public bool IsUnequippable { get; set; }

Property Value

bool

IsUnlocked

public bool IsUnlocked { get; set; }

Property Value

bool

IsUsed

public bool IsUsed { get; set; }

Property Value

bool

ItemType

public int ItemType { get; set; }

Property Value

int

Name

public string Name { get; set; }

Property Value

string

OwnedText

public string OwnedText { get; set; }

Property Value

string

PreviewKey

public InputKeyItemVM PreviewKey { get; set; }

Property Value

InputKeyItemVM

PreviewText

public string PreviewText { get; set; }

Property Value

string

Rarity

public int Rarity { get; set; }

Property Value

int

UnequipText

public string UnequipText { get; }

Property Value

string

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

actionKey HotKey
previewKey HotKey

RefreshValues()

public override void RefreshValues()

UpdatePreviewAndActionTexts()

protected void UpdatePreviewAndActionTexts()

Events

OnEquipped

public static event Action<MPArmoryCosmeticItemBaseVM> OnEquipped

Event Type

Action<MPArmoryCosmeticItemBaseVM>

OnPreviewed

public static event Action<MPArmoryCosmeticItemBaseVM> OnPreviewed

Event Type

Action<MPArmoryCosmeticItemBaseVM>

OnPurchaseRequested

public static event Action<MPArmoryCosmeticItemBaseVM> OnPurchaseRequested

Event Type

Action<MPArmoryCosmeticItemBaseVM>

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