M&B: Bannerlord 1.2.7
The horns sound, the ravens gather.
Loading...
Searching...
No Matches
TaleWorlds.CampaignSystem.ViewModelCollection.Party.PartyTroopManagerPopUp.PartyTroopManagerVM Class Referenceabstract

Inherits TaleWorlds.Library.ViewModel.

Inherited by TaleWorlds.CampaignSystem.ViewModelCollection.Party.PartyTroopManagerPopUp.PartyRecruitTroopVM, and TaleWorlds.CampaignSystem.ViewModelCollection.Party.PartyTroopManagerPopUp.PartyUpgradeTroopVM.

Public Member Functions

abstract void ExecuteItemPrimaryAction ()
 
abstract void ExecuteItemSecondaryAction ()
 
 PartyTroopManagerVM (PartyVM partyVM)
 
override void RefreshValues ()
 Used for updating localized texts.
 
override void OnFinalize ()
 
virtual void OpenPopUp ()
 
virtual void ExecuteDone ()
 
void UpdateOpenButtonHint (bool isDisabled, bool isIrrelevant, bool isUpgradesDisabled)
 
abstract void ExecuteCancel ()
 
void SetDoneInputKey (HotKey hotKey)
 
void SetPrimaryActionInputKey (HotKey hotKey)
 
void SetSecondaryActionInputKey (HotKey hotKey)
 
- Public Member Functions inherited from TaleWorlds.Library.ViewModel
void OnPropertyChanged ([CallerMemberName] string propertyName=null)
 Method for notifying binded views about the changes in a property. Uses reflection to get the value of the property. If reflection is not needed or updated value of the property is already known, use OnPropertyChangedWithValue() instead.
 
void OnPropertyChangedWithValue< T > (T value, [CallerMemberName]string propertyName=null)
 Faster method for notifying binded views about the changes in a property. To avoid reflection, caller can pass changed value to this method. If caller does not have access rights to the value, use OnPropertyChanged() instead.
 
void OnPropertyChangedWithValue (bool value, [CallerMemberName] string propertyName=null)
 
void OnPropertyChangedWithValue (int value, [CallerMemberName] string propertyName=null)
 
void OnPropertyChangedWithValue (float value, [CallerMemberName] string propertyName=null)
 
void OnPropertyChangedWithValue (uint value, [CallerMemberName] string propertyName=null)
 
void OnPropertyChangedWithValue (Color value, [CallerMemberName] string propertyName=null)
 
void OnPropertyChangedWithValue (double value, [CallerMemberName] string propertyName=null)
 
void OnPropertyChangedWithValue (Vec2 value, [CallerMemberName] string propertyName=null)
 
object GetViewModelAtPath (BindingPath path, bool isList)
 
object GetViewModelAtPath (BindingPath path)
 
object GetPropertyValue (string name, PropertyTypeFeeder propertyTypeFeeder)
 
object GetPropertyValue (string name)
 
Type GetPropertyType (string name)
 
void SetPropertyValue (string name, object value)
 
virtual void OnFinalize ()
 
void ExecuteCommand (string commandName, object[] parameters)
 
virtual void RefreshValues ()
 Used for updating localized texts.
 
object GetViewModelAtPath (BindingPath path)
 
object GetViewModelAtPath (BindingPath path, bool isList)
 
object GetPropertyValue (string name)
 
object GetPropertyValue (string name, PropertyTypeFeeder propertyTypeFeeder)
 
void SetPropertyValue (string name, object value)
 
void ExecuteCommand (string commandName, object[] parameters)
 

Protected Member Functions

virtual void ConfirmCancel ()
 
void ShowCancelInquiry (Action confirmCancel)
 
void UpdateLabels ()
 
void SetFocusedCharacter (PartyTroopManagerItemVM troop)
 
- Protected Member Functions inherited from TaleWorlds.Library.ViewModel
 ViewModel ()
 
bool SetField< T > (ref T field, T value, string propertyName)
 

Protected Attributes

PartyVM _partyVM
 
bool _hasMadeChanges = false
 
TextObject _openButtonEnabledHint = TextObject.Empty
 
TextObject _openButtonNoTroopsHint = TextObject.Empty
 
TextObject _openButtonIrrelevantScreenHint = TextObject.Empty
 
TextObject _openButtonUpgradesDisabledHint = TextObject.Empty
 

Properties

InputKeyItemVM DoneInputKey [get, set]
 
InputKeyItemVM PrimaryActionInputKey [get, set]
 
InputKeyItemVM SecondaryActionInputKey [get, set]
 
bool IsFocusedOnACharacter [get, set]
 
bool IsOpen [get, set]
 
bool IsUpgradePopUp [get, set]
 
bool IsPrimaryActionAvailable [get, set]
 
bool IsSecondaryActionAvailable [get, set]
 
PartyTroopManagerItemVM FocusedTroop [get, set]
 
MBBindingList< PartyTroopManagerItemVMTroops [get, set]
 
HintViewModel OpenButtonHint [get, set]
 
string TitleText [get, set]
 
string AvatarText [get, set]
 
string NameText [get, set]
 
string CountText [get, set]
 
string GoldChangeText [get, set]
 
string HorseChangeText [get, set]
 
string MoraleChangeText [get, set]
 
string DoneLbl [get, set]
 
- Properties inherited from TaleWorlds.Library.ViewModel
PropertyChangedEventHandler PropertyChanged
 
PropertyChangedWithValueEventHandler PropertyChangedWithValue
 
PropertyChangedWithBoolValueEventHandler PropertyChangedWithBoolValue
 
PropertyChangedWithIntValueEventHandler PropertyChangedWithIntValue
 
PropertyChangedWithFloatValueEventHandler PropertyChangedWithFloatValue
 
PropertyChangedWithUIntValueEventHandler PropertyChangedWithUIntValue
 
PropertyChangedWithColorValueEventHandler PropertyChangedWithColorValue
 
PropertyChangedWithDoubleValueEventHandler PropertyChangedWithDoubleValue
 
PropertyChangedWithVec2ValueEventHandler PropertyChangedWithVec2Value
 

Additional Inherited Members

- Static Public Member Functions inherited from TaleWorlds.Library.ViewModel
static void CollectPropertiesAndMethods ()
 
- Static Public Attributes inherited from TaleWorlds.Library.ViewModel
static bool UIDebugMode
 
- Events inherited from TaleWorlds.Library.IViewModel
PropertyChangedWithValueEventHandler PropertyChangedWithValue
 
PropertyChangedWithBoolValueEventHandler PropertyChangedWithBoolValue
 
PropertyChangedWithIntValueEventHandler PropertyChangedWithIntValue
 
PropertyChangedWithFloatValueEventHandler PropertyChangedWithFloatValue
 
PropertyChangedWithUIntValueEventHandler PropertyChangedWithUIntValue
 
PropertyChangedWithColorValueEventHandler PropertyChangedWithColorValue
 
PropertyChangedWithDoubleValueEventHandler PropertyChangedWithDoubleValue
 
PropertyChangedWithVec2ValueEventHandler PropertyChangedWithVec2Value
 

Constructor & Destructor Documentation

◆ PartyTroopManagerVM()

TaleWorlds.CampaignSystem.ViewModelCollection.Party.PartyTroopManagerPopUp.PartyTroopManagerVM.PartyTroopManagerVM ( PartyVM  partyVM)

Member Function Documentation

◆ ExecuteItemPrimaryAction()

abstract void TaleWorlds.CampaignSystem.ViewModelCollection.Party.PartyTroopManagerPopUp.PartyTroopManagerVM.ExecuteItemPrimaryAction ( )
pure virtual

◆ ExecuteItemSecondaryAction()

abstract void TaleWorlds.CampaignSystem.ViewModelCollection.Party.PartyTroopManagerPopUp.PartyTroopManagerVM.ExecuteItemSecondaryAction ( )
pure virtual

◆ RefreshValues()

override void TaleWorlds.CampaignSystem.ViewModelCollection.Party.PartyTroopManagerPopUp.PartyTroopManagerVM.RefreshValues ( )
virtual

◆ OnFinalize()

override void TaleWorlds.CampaignSystem.ViewModelCollection.Party.PartyTroopManagerPopUp.PartyTroopManagerVM.OnFinalize ( )
virtual

Reimplemented from TaleWorlds.Library.ViewModel.

◆ OpenPopUp()

virtual void TaleWorlds.CampaignSystem.ViewModelCollection.Party.PartyTroopManagerPopUp.PartyTroopManagerVM.OpenPopUp ( )
virtual

◆ ExecuteDone()

virtual void TaleWorlds.CampaignSystem.ViewModelCollection.Party.PartyTroopManagerPopUp.PartyTroopManagerVM.ExecuteDone ( )
virtual

◆ ConfirmCancel()

virtual void TaleWorlds.CampaignSystem.ViewModelCollection.Party.PartyTroopManagerPopUp.PartyTroopManagerVM.ConfirmCancel ( )
protectedvirtual

◆ UpdateOpenButtonHint()

void TaleWorlds.CampaignSystem.ViewModelCollection.Party.PartyTroopManagerPopUp.PartyTroopManagerVM.UpdateOpenButtonHint ( bool  isDisabled,
bool  isIrrelevant,
bool  isUpgradesDisabled 
)

◆ ExecuteCancel()

abstract void TaleWorlds.CampaignSystem.ViewModelCollection.Party.PartyTroopManagerPopUp.PartyTroopManagerVM.ExecuteCancel ( )
pure virtual

◆ ShowCancelInquiry()

void TaleWorlds.CampaignSystem.ViewModelCollection.Party.PartyTroopManagerPopUp.PartyTroopManagerVM.ShowCancelInquiry ( Action  confirmCancel)
protected

◆ UpdateLabels()

void TaleWorlds.CampaignSystem.ViewModelCollection.Party.PartyTroopManagerPopUp.PartyTroopManagerVM.UpdateLabels ( )
protected

◆ SetFocusedCharacter()

void TaleWorlds.CampaignSystem.ViewModelCollection.Party.PartyTroopManagerPopUp.PartyTroopManagerVM.SetFocusedCharacter ( PartyTroopManagerItemVM  troop)
protected

◆ SetDoneInputKey()

void TaleWorlds.CampaignSystem.ViewModelCollection.Party.PartyTroopManagerPopUp.PartyTroopManagerVM.SetDoneInputKey ( HotKey  hotKey)

◆ SetPrimaryActionInputKey()

void TaleWorlds.CampaignSystem.ViewModelCollection.Party.PartyTroopManagerPopUp.PartyTroopManagerVM.SetPrimaryActionInputKey ( HotKey  hotKey)

◆ SetSecondaryActionInputKey()

void TaleWorlds.CampaignSystem.ViewModelCollection.Party.PartyTroopManagerPopUp.PartyTroopManagerVM.SetSecondaryActionInputKey ( HotKey  hotKey)

Member Data Documentation

◆ _partyVM

PartyVM TaleWorlds.CampaignSystem.ViewModelCollection.Party.PartyTroopManagerPopUp.PartyTroopManagerVM._partyVM
protected

◆ _hasMadeChanges

bool TaleWorlds.CampaignSystem.ViewModelCollection.Party.PartyTroopManagerPopUp.PartyTroopManagerVM._hasMadeChanges = false
protected

◆ _openButtonEnabledHint

TextObject TaleWorlds.CampaignSystem.ViewModelCollection.Party.PartyTroopManagerPopUp.PartyTroopManagerVM._openButtonEnabledHint = TextObject.Empty
protected

◆ _openButtonNoTroopsHint

TextObject TaleWorlds.CampaignSystem.ViewModelCollection.Party.PartyTroopManagerPopUp.PartyTroopManagerVM._openButtonNoTroopsHint = TextObject.Empty
protected

◆ _openButtonIrrelevantScreenHint

TextObject TaleWorlds.CampaignSystem.ViewModelCollection.Party.PartyTroopManagerPopUp.PartyTroopManagerVM._openButtonIrrelevantScreenHint = TextObject.Empty
protected

◆ _openButtonUpgradesDisabledHint

TextObject TaleWorlds.CampaignSystem.ViewModelCollection.Party.PartyTroopManagerPopUp.PartyTroopManagerVM._openButtonUpgradesDisabledHint = TextObject.Empty
protected

Property Documentation

◆ DoneInputKey

InputKeyItemVM TaleWorlds.CampaignSystem.ViewModelCollection.Party.PartyTroopManagerPopUp.PartyTroopManagerVM.DoneInputKey
getset

◆ PrimaryActionInputKey

InputKeyItemVM TaleWorlds.CampaignSystem.ViewModelCollection.Party.PartyTroopManagerPopUp.PartyTroopManagerVM.PrimaryActionInputKey
getset

◆ SecondaryActionInputKey

InputKeyItemVM TaleWorlds.CampaignSystem.ViewModelCollection.Party.PartyTroopManagerPopUp.PartyTroopManagerVM.SecondaryActionInputKey
getset

◆ IsFocusedOnACharacter

bool TaleWorlds.CampaignSystem.ViewModelCollection.Party.PartyTroopManagerPopUp.PartyTroopManagerVM.IsFocusedOnACharacter
getset

◆ IsOpen

bool TaleWorlds.CampaignSystem.ViewModelCollection.Party.PartyTroopManagerPopUp.PartyTroopManagerVM.IsOpen
getset

◆ IsUpgradePopUp

bool TaleWorlds.CampaignSystem.ViewModelCollection.Party.PartyTroopManagerPopUp.PartyTroopManagerVM.IsUpgradePopUp
getset

◆ IsPrimaryActionAvailable

bool TaleWorlds.CampaignSystem.ViewModelCollection.Party.PartyTroopManagerPopUp.PartyTroopManagerVM.IsPrimaryActionAvailable
getset

◆ IsSecondaryActionAvailable

bool TaleWorlds.CampaignSystem.ViewModelCollection.Party.PartyTroopManagerPopUp.PartyTroopManagerVM.IsSecondaryActionAvailable
getset

◆ FocusedTroop

PartyTroopManagerItemVM TaleWorlds.CampaignSystem.ViewModelCollection.Party.PartyTroopManagerPopUp.PartyTroopManagerVM.FocusedTroop
getset

◆ Troops

MBBindingList<PartyTroopManagerItemVM> TaleWorlds.CampaignSystem.ViewModelCollection.Party.PartyTroopManagerPopUp.PartyTroopManagerVM.Troops
getset

◆ OpenButtonHint

HintViewModel TaleWorlds.CampaignSystem.ViewModelCollection.Party.PartyTroopManagerPopUp.PartyTroopManagerVM.OpenButtonHint
getset

◆ TitleText

string TaleWorlds.CampaignSystem.ViewModelCollection.Party.PartyTroopManagerPopUp.PartyTroopManagerVM.TitleText
getset

◆ AvatarText

string TaleWorlds.CampaignSystem.ViewModelCollection.Party.PartyTroopManagerPopUp.PartyTroopManagerVM.AvatarText
getset

◆ NameText

string TaleWorlds.CampaignSystem.ViewModelCollection.Party.PartyTroopManagerPopUp.PartyTroopManagerVM.NameText
getset

◆ CountText

string TaleWorlds.CampaignSystem.ViewModelCollection.Party.PartyTroopManagerPopUp.PartyTroopManagerVM.CountText
getset

◆ GoldChangeText

string TaleWorlds.CampaignSystem.ViewModelCollection.Party.PartyTroopManagerPopUp.PartyTroopManagerVM.GoldChangeText
getset

◆ HorseChangeText

string TaleWorlds.CampaignSystem.ViewModelCollection.Party.PartyTroopManagerPopUp.PartyTroopManagerVM.HorseChangeText
getset

◆ MoraleChangeText

string TaleWorlds.CampaignSystem.ViewModelCollection.Party.PartyTroopManagerPopUp.PartyTroopManagerVM.MoraleChangeText
getset

◆ DoneLbl

string TaleWorlds.CampaignSystem.ViewModelCollection.Party.PartyTroopManagerPopUp.PartyTroopManagerVM.DoneLbl
getset