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

Inherits TaleWorlds.Library.ViewModel.

Public Member Functions

 BannerEditorVM (BasicCharacterObject character, Banner banner, Action< bool > onExit, Action refresh, int currentStageIndex, int totalStagesCount, int furthestIndex, Action< int > goToIndex)
 
override void RefreshValues ()
 Used for updating localized texts.
 
void SetClanRelatedRules (bool canChangeBackgroundColor)
 
void ExecuteSwitchColors ()
 
void ExecuteDone ()
 
void ExecuteCancel ()
 
override void OnFinalize ()
 
void SetCancelInputKey (HotKey hotKey)
 
void SetDoneInputKey (HotKey hotKey)
 
void ExecuteGoToIndex (int index)
 
- 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)
 

Public Attributes

int ShieldSlotIndex = (int)EquipmentIndex.Weapon3
 
int CurrentShieldIndex = 0
 
ItemRosterElement ShieldRosterElement
 

Properties

BasicCharacterObject Character [get]
 
InputKeyItemVM CancelInputKey [get, set]
 
InputKeyItemVM DoneInputKey [get, set]
 
MBBindingList< HintViewModelCategoryNames [get, set]
 
MBBindingList< BannerIconVMIconsList [get, set]
 
MBBindingList< BannerColorVMPrimaryColorList [get, set]
 
MBBindingList< BannerColorVMSigilColorList [get, set]
 
HintViewModel RandomizeHint [get, set]
 
HintViewModel UndoHint [get, set]
 
HintViewModel RedoHint [get, set]
 
HintViewModel ResetHint [get, set]
 
string CurrentShieldName [get, set]
 
int MinIconSize [get, set]
 
int MaxIconSize [get, set]
 
int CurrentIconSize [get, set]
 
string PrimaryColorText [get, set]
 
string SizeText [get, set]
 
string SigilColorText [get, set]
 
string CancelText [get, set]
 
string DoneText [get, set]
 
BannerViewModel BannerVM [get, set]
 
string IconCodes [get, set]
 
string ColorCodes [get, set]
 
bool CanChangeBackgroundColor [get, set]
 
string Title [get, set]
 
string Description [get, set]
 
int TotalStageCount [get, set]
 
int CurrentStageIndex [get, set]
 
int FurthestIndex [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

◆ BannerEditorVM()

TaleWorlds.CampaignSystem.ViewModelCollection.BannerEditorVM.BannerEditorVM ( BasicCharacterObject  character,
Banner  banner,
Action< bool >  onExit,
Action  refresh,
int  currentStageIndex,
int  totalStagesCount,
int  furthestIndex,
Action< int >  goToIndex 
)

Member Function Documentation

◆ RefreshValues()

override void TaleWorlds.CampaignSystem.ViewModelCollection.BannerEditorVM.RefreshValues ( )
virtual

Reimplemented from TaleWorlds.Library.ViewModel.

◆ SetClanRelatedRules()

void TaleWorlds.CampaignSystem.ViewModelCollection.BannerEditorVM.SetClanRelatedRules ( bool  canChangeBackgroundColor)

◆ ExecuteSwitchColors()

void TaleWorlds.CampaignSystem.ViewModelCollection.BannerEditorVM.ExecuteSwitchColors ( )

◆ ExecuteDone()

void TaleWorlds.CampaignSystem.ViewModelCollection.BannerEditorVM.ExecuteDone ( )

◆ ExecuteCancel()

void TaleWorlds.CampaignSystem.ViewModelCollection.BannerEditorVM.ExecuteCancel ( )

◆ OnFinalize()

override void TaleWorlds.CampaignSystem.ViewModelCollection.BannerEditorVM.OnFinalize ( )
virtual

Reimplemented from TaleWorlds.Library.ViewModel.

◆ SetCancelInputKey()

void TaleWorlds.CampaignSystem.ViewModelCollection.BannerEditorVM.SetCancelInputKey ( HotKey  hotKey)

◆ SetDoneInputKey()

void TaleWorlds.CampaignSystem.ViewModelCollection.BannerEditorVM.SetDoneInputKey ( HotKey  hotKey)

◆ ExecuteGoToIndex()

void TaleWorlds.CampaignSystem.ViewModelCollection.BannerEditorVM.ExecuteGoToIndex ( int  index)

Member Data Documentation

◆ ShieldSlotIndex

int TaleWorlds.CampaignSystem.ViewModelCollection.BannerEditorVM.ShieldSlotIndex = (int)EquipmentIndex.Weapon3

◆ CurrentShieldIndex

int TaleWorlds.CampaignSystem.ViewModelCollection.BannerEditorVM.CurrentShieldIndex = 0

◆ ShieldRosterElement

ItemRosterElement TaleWorlds.CampaignSystem.ViewModelCollection.BannerEditorVM.ShieldRosterElement

Property Documentation

◆ Character

BasicCharacterObject TaleWorlds.CampaignSystem.ViewModelCollection.BannerEditorVM.Character
get

◆ CancelInputKey

InputKeyItemVM TaleWorlds.CampaignSystem.ViewModelCollection.BannerEditorVM.CancelInputKey
getset

◆ DoneInputKey

InputKeyItemVM TaleWorlds.CampaignSystem.ViewModelCollection.BannerEditorVM.DoneInputKey
getset

◆ CategoryNames

MBBindingList<HintViewModel> TaleWorlds.CampaignSystem.ViewModelCollection.BannerEditorVM.CategoryNames
getset

◆ IconsList

MBBindingList<BannerIconVM> TaleWorlds.CampaignSystem.ViewModelCollection.BannerEditorVM.IconsList
getset

◆ PrimaryColorList

MBBindingList<BannerColorVM> TaleWorlds.CampaignSystem.ViewModelCollection.BannerEditorVM.PrimaryColorList
getset

◆ SigilColorList

MBBindingList<BannerColorVM> TaleWorlds.CampaignSystem.ViewModelCollection.BannerEditorVM.SigilColorList
getset

◆ RandomizeHint

HintViewModel TaleWorlds.CampaignSystem.ViewModelCollection.BannerEditorVM.RandomizeHint
getset

◆ UndoHint

HintViewModel TaleWorlds.CampaignSystem.ViewModelCollection.BannerEditorVM.UndoHint
getset

◆ RedoHint

HintViewModel TaleWorlds.CampaignSystem.ViewModelCollection.BannerEditorVM.RedoHint
getset

◆ ResetHint

HintViewModel TaleWorlds.CampaignSystem.ViewModelCollection.BannerEditorVM.ResetHint
getset

◆ CurrentShieldName

string TaleWorlds.CampaignSystem.ViewModelCollection.BannerEditorVM.CurrentShieldName
getset

◆ MinIconSize

int TaleWorlds.CampaignSystem.ViewModelCollection.BannerEditorVM.MinIconSize
getset

◆ MaxIconSize

int TaleWorlds.CampaignSystem.ViewModelCollection.BannerEditorVM.MaxIconSize
getset

◆ CurrentIconSize

int TaleWorlds.CampaignSystem.ViewModelCollection.BannerEditorVM.CurrentIconSize
getset

◆ PrimaryColorText

string TaleWorlds.CampaignSystem.ViewModelCollection.BannerEditorVM.PrimaryColorText
getset

◆ SizeText

string TaleWorlds.CampaignSystem.ViewModelCollection.BannerEditorVM.SizeText
getset

◆ SigilColorText

string TaleWorlds.CampaignSystem.ViewModelCollection.BannerEditorVM.SigilColorText
getset

◆ CancelText

string TaleWorlds.CampaignSystem.ViewModelCollection.BannerEditorVM.CancelText
getset

◆ DoneText

string TaleWorlds.CampaignSystem.ViewModelCollection.BannerEditorVM.DoneText
getset

◆ BannerVM

BannerViewModel TaleWorlds.CampaignSystem.ViewModelCollection.BannerEditorVM.BannerVM
getset

◆ IconCodes

string TaleWorlds.CampaignSystem.ViewModelCollection.BannerEditorVM.IconCodes
getset

◆ ColorCodes

string TaleWorlds.CampaignSystem.ViewModelCollection.BannerEditorVM.ColorCodes
getset

◆ CanChangeBackgroundColor

bool TaleWorlds.CampaignSystem.ViewModelCollection.BannerEditorVM.CanChangeBackgroundColor
getset

◆ Title

string TaleWorlds.CampaignSystem.ViewModelCollection.BannerEditorVM.Title
getset

◆ Description

string TaleWorlds.CampaignSystem.ViewModelCollection.BannerEditorVM.Description
getset

◆ TotalStageCount

int TaleWorlds.CampaignSystem.ViewModelCollection.BannerEditorVM.TotalStageCount
getset

◆ CurrentStageIndex

int TaleWorlds.CampaignSystem.ViewModelCollection.BannerEditorVM.CurrentStageIndex
getset

◆ FurthestIndex

int TaleWorlds.CampaignSystem.ViewModelCollection.BannerEditorVM.FurthestIndex
getset