Table of Contents

Class GameMenuTroopSelectionVM

Namespace
TaleWorlds.CampaignSystem.ViewModelCollection.GameMenu.TroopSelection
Assembly
TaleWorlds.CampaignSystem.ViewModelCollection.dll
public class GameMenuTroopSelectionVM : ViewModel, IViewModel, INotifyPropertyChanged
Inheritance
GameMenuTroopSelectionVM
Implements
Inherited Members

Constructors

GameMenuTroopSelectionVM(TroopRoster, TroopRoster, Func<CharacterObject, bool>, Action<TroopRoster>, int, int)

public GameMenuTroopSelectionVM(TroopRoster fullRoster, TroopRoster initialSelections, Func<CharacterObject, bool> canChangeChangeStatusOfTroop, Action<TroopRoster> onDone, int maxSelectableTroopCount, int minSelectableTroopCount)

Parameters

fullRoster TroopRoster
initialSelections TroopRoster
canChangeChangeStatusOfTroop Func<CharacterObject, bool>
onDone Action<TroopRoster>
maxSelectableTroopCount int
minSelectableTroopCount int

Fields

IsEntireStackModifierActive

public bool IsEntireStackModifierActive

Field Value

bool

IsFiveStackModifierActive

public bool IsFiveStackModifierActive

Field Value

bool

Properties

CancelInputKey

[DataSourceProperty]
public InputKeyItemVM CancelInputKey { get; set; }

Property Value

InputKeyItemVM

CancelText

[DataSourceProperty]
public string CancelText { get; set; }

Property Value

string

ClearSelectionText

[DataSourceProperty]
public string ClearSelectionText { get; set; }

Property Value

string

CurrentSelectedAmountText

[DataSourceProperty]
public string CurrentSelectedAmountText { get; set; }

Property Value

string

CurrentSelectedAmountTitle

[DataSourceProperty]
public string CurrentSelectedAmountTitle { get; set; }

Property Value

string

DoneInputKey

[DataSourceProperty]
public InputKeyItemVM DoneInputKey { get; set; }

Property Value

InputKeyItemVM

DoneText

[DataSourceProperty]
public string DoneText { get; set; }

Property Value

string

IsDoneEnabled

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

Property Value

bool

IsEnabled

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

Property Value

bool

ResetInputKey

[DataSourceProperty]
public InputKeyItemVM ResetInputKey { get; set; }

Property Value

InputKeyItemVM

TitleText

[DataSourceProperty]
public string TitleText { get; set; }

Property Value

string

Troops

[DataSourceProperty]
public MBBindingList<TroopSelectionItemVM> Troops { get; set; }

Property Value

MBBindingList<TroopSelectionItemVM>

Methods

ExecuteCancel()

public void ExecuteCancel()

ExecuteClearSelection()

public void ExecuteClearSelection()

ExecuteDone()

public void ExecuteDone()

ExecuteReset()

public void ExecuteReset()

OnFinalize()

public override void OnFinalize()

RefreshValues()

public override void RefreshValues()

SetCancelInputKey(HotKey)

public void SetCancelInputKey(HotKey hotkey)

Parameters

hotkey HotKey

SetDoneInputKey(HotKey)

public void SetDoneInputKey(HotKey hotkey)

Parameters

hotkey HotKey

SetResetInputKey(HotKey)

public void SetResetInputKey(HotKey hotkey)

Parameters

hotkey HotKey

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