M&B: Bannerlord 1.2.7
The horns sound, the ravens gather.
Loading...
Searching...
No Matches
TaleWorlds.CampaignSystem.ViewModelCollection.Barter.BarterVM Class Reference

Inherits TaleWorlds.Library.ViewModel.

Public Member Functions

 BarterVM (BarterData args)
 
override void RefreshValues ()
 Used for updating localized texts.
 
override void OnFinalize ()
 
void OnInitialized ()
 
void ExecuteTransferAllLeftFief ()
 
void ExecuteAutoBalance ()
 
void ExecuteTransferAllLeftItem ()
 
void ExecuteTransferAllLeftPrisoner ()
 
void ExecuteTransferAllLeftOther ()
 
void ExecuteTransferAllRightFief ()
 
void ExecuteTransferAllRightItem ()
 
void ExecuteTransferAllRightPrisoner ()
 
void ExecuteTransferAllRightOther ()
 
void ExecuteOffer ()
 
void ExecuteCancel ()
 
void ExecuteReset ()
 
void OnTransferItem (Barterable barter, bool isTransferrable)
 
void SetResetInputKey (HotKey hotkey)
 
void SetDoneInputKey (HotKey hotkey)
 
void SetCancelInputKey (HotKey hotkey)
 
void InitializeStaticContent ()
 
- 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)
 

Properties

string FiefLbl [get, set]
 
string PrisonerLbl [get, set]
 
string ItemLbl [get, set]
 
string OtherLbl [get, set]
 
string CancelLbl [get, set]
 
string ResetLbl [get, set]
 
string OfferLbl [get, set]
 
string DiplomaticLbl [get, set]
 
HintViewModel AutoBalanceHint [get, set]
 
HeroVM LeftHero [get, set]
 
HeroVM RightHero [get, set]
 
bool IsOfferDisabled [get, set]
 
int LeftMaxGold [get, set]
 
int RightMaxGold [get, set]
 
string LeftNameLbl [get, set]
 
string RightNameLbl [get, set]
 
MBBindingList< BarterItemVMLeftFiefList [get, set]
 
MBBindingList< BarterItemVMRightFiefList [get, set]
 
MBBindingList< BarterItemVMLeftPrisonerList [get, set]
 
MBBindingList< BarterItemVMRightPrisonerList [get, set]
 
MBBindingList< BarterItemVMLeftItemList [get, set]
 
MBBindingList< BarterItemVMRightItemList [get, set]
 
MBBindingList< BarterItemVMLeftOtherList [get, set]
 
MBBindingList< BarterItemVMRightOtherList [get, set]
 
MBBindingList< BarterItemVMLeftDiplomaticList [get, set]
 
MBBindingList< BarterItemVMRightDiplomaticList [get, set]
 
MBBindingList< BarterItemVMLeftOfferList [get, set]
 
MBBindingList< BarterItemVMRightOfferList [get, set]
 
MBBindingList< BarterItemVMRightGoldList [get, set]
 
MBBindingList< BarterItemVMLeftGoldList [get, set]
 
bool InitializationIsOver [get, set]
 
int ResultBarOtherPercentage [get, set]
 
int ResultBarOffererPercentage [get, set]
 
InputKeyItemVM ResetInputKey [get, set]
 
InputKeyItemVM DoneInputKey [get, set]
 
InputKeyItemVM CancelInputKey [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
 
- Protected Member Functions inherited from TaleWorlds.Library.ViewModel
 ViewModel ()
 
bool SetField< T > (ref T field, T value, string propertyName)
 
- 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

◆ BarterVM()

TaleWorlds.CampaignSystem.ViewModelCollection.Barter.BarterVM.BarterVM ( BarterData  args)

Member Function Documentation

◆ RefreshValues()

override void TaleWorlds.CampaignSystem.ViewModelCollection.Barter.BarterVM.RefreshValues ( )
virtual

Reimplemented from TaleWorlds.Library.ViewModel.

◆ OnFinalize()

override void TaleWorlds.CampaignSystem.ViewModelCollection.Barter.BarterVM.OnFinalize ( )
virtual

Reimplemented from TaleWorlds.Library.ViewModel.

◆ OnInitialized()

void TaleWorlds.CampaignSystem.ViewModelCollection.Barter.BarterVM.OnInitialized ( )

◆ ExecuteTransferAllLeftFief()

void TaleWorlds.CampaignSystem.ViewModelCollection.Barter.BarterVM.ExecuteTransferAllLeftFief ( )

◆ ExecuteAutoBalance()

void TaleWorlds.CampaignSystem.ViewModelCollection.Barter.BarterVM.ExecuteAutoBalance ( )

◆ ExecuteTransferAllLeftItem()

void TaleWorlds.CampaignSystem.ViewModelCollection.Barter.BarterVM.ExecuteTransferAllLeftItem ( )

◆ ExecuteTransferAllLeftPrisoner()

void TaleWorlds.CampaignSystem.ViewModelCollection.Barter.BarterVM.ExecuteTransferAllLeftPrisoner ( )

◆ ExecuteTransferAllLeftOther()

void TaleWorlds.CampaignSystem.ViewModelCollection.Barter.BarterVM.ExecuteTransferAllLeftOther ( )

◆ ExecuteTransferAllRightFief()

void TaleWorlds.CampaignSystem.ViewModelCollection.Barter.BarterVM.ExecuteTransferAllRightFief ( )

◆ ExecuteTransferAllRightItem()

void TaleWorlds.CampaignSystem.ViewModelCollection.Barter.BarterVM.ExecuteTransferAllRightItem ( )

◆ ExecuteTransferAllRightPrisoner()

void TaleWorlds.CampaignSystem.ViewModelCollection.Barter.BarterVM.ExecuteTransferAllRightPrisoner ( )

◆ ExecuteTransferAllRightOther()

void TaleWorlds.CampaignSystem.ViewModelCollection.Barter.BarterVM.ExecuteTransferAllRightOther ( )

◆ ExecuteOffer()

void TaleWorlds.CampaignSystem.ViewModelCollection.Barter.BarterVM.ExecuteOffer ( )

◆ ExecuteCancel()

void TaleWorlds.CampaignSystem.ViewModelCollection.Barter.BarterVM.ExecuteCancel ( )

◆ ExecuteReset()

void TaleWorlds.CampaignSystem.ViewModelCollection.Barter.BarterVM.ExecuteReset ( )

◆ OnTransferItem()

void TaleWorlds.CampaignSystem.ViewModelCollection.Barter.BarterVM.OnTransferItem ( Barterable  barter,
bool  isTransferrable 
)

◆ SetResetInputKey()

void TaleWorlds.CampaignSystem.ViewModelCollection.Barter.BarterVM.SetResetInputKey ( HotKey  hotkey)

◆ SetDoneInputKey()

void TaleWorlds.CampaignSystem.ViewModelCollection.Barter.BarterVM.SetDoneInputKey ( HotKey  hotkey)

◆ SetCancelInputKey()

void TaleWorlds.CampaignSystem.ViewModelCollection.Barter.BarterVM.SetCancelInputKey ( HotKey  hotkey)

◆ InitializeStaticContent()

void TaleWorlds.CampaignSystem.ViewModelCollection.Barter.BarterVM.InitializeStaticContent ( )

Property Documentation

◆ FiefLbl

string TaleWorlds.CampaignSystem.ViewModelCollection.Barter.BarterVM.FiefLbl
getset

◆ PrisonerLbl

string TaleWorlds.CampaignSystem.ViewModelCollection.Barter.BarterVM.PrisonerLbl
getset

◆ ItemLbl

string TaleWorlds.CampaignSystem.ViewModelCollection.Barter.BarterVM.ItemLbl
getset

◆ OtherLbl

string TaleWorlds.CampaignSystem.ViewModelCollection.Barter.BarterVM.OtherLbl
getset

◆ CancelLbl

string TaleWorlds.CampaignSystem.ViewModelCollection.Barter.BarterVM.CancelLbl
getset

◆ ResetLbl

string TaleWorlds.CampaignSystem.ViewModelCollection.Barter.BarterVM.ResetLbl
getset

◆ OfferLbl

string TaleWorlds.CampaignSystem.ViewModelCollection.Barter.BarterVM.OfferLbl
getset

◆ DiplomaticLbl

string TaleWorlds.CampaignSystem.ViewModelCollection.Barter.BarterVM.DiplomaticLbl
getset

◆ AutoBalanceHint

HintViewModel TaleWorlds.CampaignSystem.ViewModelCollection.Barter.BarterVM.AutoBalanceHint
getset

◆ LeftHero

HeroVM TaleWorlds.CampaignSystem.ViewModelCollection.Barter.BarterVM.LeftHero
getset

◆ RightHero

HeroVM TaleWorlds.CampaignSystem.ViewModelCollection.Barter.BarterVM.RightHero
getset

◆ IsOfferDisabled

bool TaleWorlds.CampaignSystem.ViewModelCollection.Barter.BarterVM.IsOfferDisabled
getset

◆ LeftMaxGold

int TaleWorlds.CampaignSystem.ViewModelCollection.Barter.BarterVM.LeftMaxGold
getset

◆ RightMaxGold

int TaleWorlds.CampaignSystem.ViewModelCollection.Barter.BarterVM.RightMaxGold
getset

◆ LeftNameLbl

string TaleWorlds.CampaignSystem.ViewModelCollection.Barter.BarterVM.LeftNameLbl
getset

◆ RightNameLbl

string TaleWorlds.CampaignSystem.ViewModelCollection.Barter.BarterVM.RightNameLbl
getset

◆ LeftFiefList

MBBindingList<BarterItemVM> TaleWorlds.CampaignSystem.ViewModelCollection.Barter.BarterVM.LeftFiefList
getset

◆ RightFiefList

MBBindingList<BarterItemVM> TaleWorlds.CampaignSystem.ViewModelCollection.Barter.BarterVM.RightFiefList
getset

◆ LeftPrisonerList

MBBindingList<BarterItemVM> TaleWorlds.CampaignSystem.ViewModelCollection.Barter.BarterVM.LeftPrisonerList
getset

◆ RightPrisonerList

MBBindingList<BarterItemVM> TaleWorlds.CampaignSystem.ViewModelCollection.Barter.BarterVM.RightPrisonerList
getset

◆ LeftItemList

MBBindingList<BarterItemVM> TaleWorlds.CampaignSystem.ViewModelCollection.Barter.BarterVM.LeftItemList
getset

◆ RightItemList

MBBindingList<BarterItemVM> TaleWorlds.CampaignSystem.ViewModelCollection.Barter.BarterVM.RightItemList
getset

◆ LeftOtherList

MBBindingList<BarterItemVM> TaleWorlds.CampaignSystem.ViewModelCollection.Barter.BarterVM.LeftOtherList
getset

◆ RightOtherList

MBBindingList<BarterItemVM> TaleWorlds.CampaignSystem.ViewModelCollection.Barter.BarterVM.RightOtherList
getset

◆ LeftDiplomaticList

MBBindingList<BarterItemVM> TaleWorlds.CampaignSystem.ViewModelCollection.Barter.BarterVM.LeftDiplomaticList
getset

◆ RightDiplomaticList

MBBindingList<BarterItemVM> TaleWorlds.CampaignSystem.ViewModelCollection.Barter.BarterVM.RightDiplomaticList
getset

◆ LeftOfferList

MBBindingList<BarterItemVM> TaleWorlds.CampaignSystem.ViewModelCollection.Barter.BarterVM.LeftOfferList
getset

◆ RightOfferList

MBBindingList<BarterItemVM> TaleWorlds.CampaignSystem.ViewModelCollection.Barter.BarterVM.RightOfferList
getset

◆ RightGoldList

MBBindingList<BarterItemVM> TaleWorlds.CampaignSystem.ViewModelCollection.Barter.BarterVM.RightGoldList
getset

◆ LeftGoldList

MBBindingList<BarterItemVM> TaleWorlds.CampaignSystem.ViewModelCollection.Barter.BarterVM.LeftGoldList
getset

◆ InitializationIsOver

bool TaleWorlds.CampaignSystem.ViewModelCollection.Barter.BarterVM.InitializationIsOver
getset

◆ ResultBarOtherPercentage

int TaleWorlds.CampaignSystem.ViewModelCollection.Barter.BarterVM.ResultBarOtherPercentage
getset

◆ ResultBarOffererPercentage

int TaleWorlds.CampaignSystem.ViewModelCollection.Barter.BarterVM.ResultBarOffererPercentage
getset

◆ ResetInputKey

InputKeyItemVM TaleWorlds.CampaignSystem.ViewModelCollection.Barter.BarterVM.ResetInputKey
getset

◆ DoneInputKey

InputKeyItemVM TaleWorlds.CampaignSystem.ViewModelCollection.Barter.BarterVM.DoneInputKey
getset

◆ CancelInputKey

InputKeyItemVM TaleWorlds.CampaignSystem.ViewModelCollection.Barter.BarterVM.CancelInputKey
getset