Class GameMenuTroopSelectionVM
- 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
TroopRosterinitialSelections
TroopRostercanChangeChangeStatusOfTroop
Func<CharacterObject, bool>onDone
Action<TroopRoster>maxSelectableTroopCount
intminSelectableTroopCount
int
Fields
IsEntireStackModifierActive
public bool IsEntireStackModifierActive
Field Value
IsFiveStackModifierActive
public bool IsFiveStackModifierActive
Field Value
Properties
CancelInputKey
[DataSourceProperty]
public InputKeyItemVM CancelInputKey { get; set; }
Property Value
CancelText
[DataSourceProperty]
public string CancelText { get; set; }
Property Value
ClearSelectionText
[DataSourceProperty]
public string ClearSelectionText { get; set; }
Property Value
CurrentSelectedAmountText
[DataSourceProperty]
public string CurrentSelectedAmountText { get; set; }
Property Value
CurrentSelectedAmountTitle
[DataSourceProperty]
public string CurrentSelectedAmountTitle { get; set; }
Property Value
DoneInputKey
[DataSourceProperty]
public InputKeyItemVM DoneInputKey { get; set; }
Property Value
DoneText
[DataSourceProperty]
public string DoneText { get; set; }
Property Value
IsDoneEnabled
[DataSourceProperty]
public bool IsDoneEnabled { get; set; }
Property Value
IsEnabled
[DataSourceProperty]
public bool IsEnabled { get; set; }
Property Value
ResetInputKey
[DataSourceProperty]
public InputKeyItemVM ResetInputKey { get; set; }
Property Value
TitleText
[DataSourceProperty]
public string TitleText { get; set; }
Property Value
Troops
[DataSourceProperty]
public MBBindingList<TroopSelectionItemVM> Troops { get; set; }
Property Value
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).