Table of Contents

Class MPLobbyBadgeItemVM

Namespace
TaleWorlds.MountAndBlade.Multiplayer.ViewModelCollection.Lobby
Assembly
TaleWorlds.MountAndBlade.Multiplayer.ViewModelCollection.dll
public class MPLobbyBadgeItemVM : ViewModel
Inheritance
MPLobbyBadgeItemVM

Constructors

MPLobbyBadgeItemVM(Badge, Action, Func<Badge, bool>, Action<MPLobbyBadgeItemVM>)

public MPLobbyBadgeItemVM(Badge badge, Action onSelectedBadgeChange, Func<Badge, bool> hasPlayerEarnedBadge, Action<MPLobbyBadgeItemVM> onInspected)

Parameters

badge Badge
onSelectedBadgeChange Action
hasPlayerEarnedBadge Func<Badge, bool>
onInspected Action<MPLobbyBadgeItemVM>

Properties

Badge

public Badge Badge { get; }

Property Value

Badge

BadgeConditionsText

public string BadgeConditionsText { get; set; }

Property Value

string

BadgeId

public string BadgeId { get; set; }

Property Value

string

Conditions

public MBBindingList<StringPairItemVM> Conditions { get; set; }

Property Value

MBBindingList<StringPairItemVM>

Description

public string Description { get; set; }

Property Value

string

HasNotification

public bool HasNotification { get; set; }

Property Value

bool

InspectProgressKey

public InputKeyItemVM InspectProgressKey { get; set; }

Property Value

InputKeyItemVM

IsBeingChanged

public bool IsBeingChanged { get; set; }

Property Value

bool

IsEarned

public bool IsEarned { get; set; }

Property Value

bool

IsFocused

public bool IsFocused { get; set; }

Property Value

bool

IsSelected

public bool IsSelected { get; set; }

Property Value

bool

Name

public string Name { get; set; }

Property Value

string

Methods

OnFinalize()

public override void OnFinalize()

RefreshKeyBindings(HotKey)

public void RefreshKeyBindings(HotKey inspectProgressKey)

Parameters

inspectProgressKey HotKey

RefreshValues()

public override void RefreshValues()

SetGroup(MPLobbyAchievementBadgeGroupVM, Action<MPLobbyAchievementBadgeGroupVM>)

public void SetGroup(MPLobbyAchievementBadgeGroupVM group, Action<MPLobbyAchievementBadgeGroupVM> onBadgeProgressInfoRequested)

Parameters

group MPLobbyAchievementBadgeGroupVM
onBadgeProgressInfoRequested Action<MPLobbyAchievementBadgeGroupVM>

UpdateIsSelected()

public void UpdateIsSelected()

UpdateWith(Badge)

public void UpdateWith(Badge badge)

Parameters

badge Badge

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