M&B: Bannerlord 1.2.7
The horns sound, the ravens gather.
Loading...
Searching...
No Matches
SandBox.ViewModelCollection.SaveLoad.SaveLoadVM Class Reference

Inherits TaleWorlds.Library.ViewModel.

Public Member Functions

 SaveLoadVM (bool isSaving, bool isCampaignMapOnStack)
 
override void RefreshValues ()
 Used for updating localized texts.
 
void ExecuteCreateNewSaveGame ()
 
void ExecuteDone ()
 
void ExecuteLoadSave ()
 
void DeleteSelectedSave ()
 
override void OnFinalize ()
 
void SetDoneInputKey (HotKey hotkey)
 
void SetCancelInputKey (HotKey hotkey)
 
void SetDeleteInputKey (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)
 

Properties

bool IsBusyWithAnAction [get]
 Represents if currently the game is loading/saving/deleting. To prevent loading/saving/deleting more than once, at the same time. Essentially a lock.
 
bool IsSearchAvailable [get, set]
 
string SearchText [get, set]
 
string SearchPlaceholderText [get, set]
 
string VisualDisabledText [get, set]
 
MBBindingList< SavedGameGroupVMSaveGroups [get, set]
 
SavedGameVM CurrentSelectedSave [get, set]
 
string CreateNewSaveSlotText [get, set]
 
string TitleText [get, set]
 
string CancelText [get, set]
 
bool IsSaving [get, set]
 
bool CanCreateNewSave [get, set]
 
bool IsVisualDisabled [get, set]
 
HintViewModel CreateNewSaveHint [get, set]
 
bool IsActionEnabled [get, set]
 
bool IsAnyItemSelected [get, set]
 
string DoneText [get, set]
 
string SaveLoadText [get, set]
 
InputKeyItemVM DoneInputKey [get, set]
 
InputKeyItemVM CancelInputKey [get, set]
 
InputKeyItemVM DeleteInputKey [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

◆ SaveLoadVM()

SandBox.ViewModelCollection.SaveLoad.SaveLoadVM.SaveLoadVM ( bool  isSaving,
bool  isCampaignMapOnStack 
)

Member Function Documentation

◆ RefreshValues()

override void SandBox.ViewModelCollection.SaveLoad.SaveLoadVM.RefreshValues ( )
virtual

Reimplemented from TaleWorlds.Library.ViewModel.

◆ ExecuteCreateNewSaveGame()

void SandBox.ViewModelCollection.SaveLoad.SaveLoadVM.ExecuteCreateNewSaveGame ( )

◆ ExecuteDone()

void SandBox.ViewModelCollection.SaveLoad.SaveLoadVM.ExecuteDone ( )

◆ ExecuteLoadSave()

void SandBox.ViewModelCollection.SaveLoad.SaveLoadVM.ExecuteLoadSave ( )

◆ DeleteSelectedSave()

void SandBox.ViewModelCollection.SaveLoad.SaveLoadVM.DeleteSelectedSave ( )

◆ OnFinalize()

override void SandBox.ViewModelCollection.SaveLoad.SaveLoadVM.OnFinalize ( )
virtual

Reimplemented from TaleWorlds.Library.ViewModel.

◆ SetDoneInputKey()

void SandBox.ViewModelCollection.SaveLoad.SaveLoadVM.SetDoneInputKey ( HotKey  hotkey)

◆ SetCancelInputKey()

void SandBox.ViewModelCollection.SaveLoad.SaveLoadVM.SetCancelInputKey ( HotKey  hotkey)

◆ SetDeleteInputKey()

void SandBox.ViewModelCollection.SaveLoad.SaveLoadVM.SetDeleteInputKey ( HotKey  hotkey)

Property Documentation

◆ IsBusyWithAnAction

bool SandBox.ViewModelCollection.SaveLoad.SaveLoadVM.IsBusyWithAnAction
get

◆ IsSearchAvailable

bool SandBox.ViewModelCollection.SaveLoad.SaveLoadVM.IsSearchAvailable
getset

◆ SearchText

string SandBox.ViewModelCollection.SaveLoad.SaveLoadVM.SearchText
getset

◆ SearchPlaceholderText

string SandBox.ViewModelCollection.SaveLoad.SaveLoadVM.SearchPlaceholderText
getset

◆ VisualDisabledText

string SandBox.ViewModelCollection.SaveLoad.SaveLoadVM.VisualDisabledText
getset

◆ SaveGroups

MBBindingList<SavedGameGroupVM> SandBox.ViewModelCollection.SaveLoad.SaveLoadVM.SaveGroups
getset

◆ CurrentSelectedSave

SavedGameVM SandBox.ViewModelCollection.SaveLoad.SaveLoadVM.CurrentSelectedSave
getset

◆ CreateNewSaveSlotText

string SandBox.ViewModelCollection.SaveLoad.SaveLoadVM.CreateNewSaveSlotText
getset

◆ TitleText

string SandBox.ViewModelCollection.SaveLoad.SaveLoadVM.TitleText
getset

◆ CancelText

string SandBox.ViewModelCollection.SaveLoad.SaveLoadVM.CancelText
getset

◆ IsSaving

bool SandBox.ViewModelCollection.SaveLoad.SaveLoadVM.IsSaving
getset

◆ CanCreateNewSave

bool SandBox.ViewModelCollection.SaveLoad.SaveLoadVM.CanCreateNewSave
getset

◆ IsVisualDisabled

bool SandBox.ViewModelCollection.SaveLoad.SaveLoadVM.IsVisualDisabled
getset

◆ CreateNewSaveHint

HintViewModel SandBox.ViewModelCollection.SaveLoad.SaveLoadVM.CreateNewSaveHint
getset

◆ IsActionEnabled

bool SandBox.ViewModelCollection.SaveLoad.SaveLoadVM.IsActionEnabled
getset

◆ IsAnyItemSelected

bool SandBox.ViewModelCollection.SaveLoad.SaveLoadVM.IsAnyItemSelected
getset

◆ DoneText

string SandBox.ViewModelCollection.SaveLoad.SaveLoadVM.DoneText
getset

◆ SaveLoadText

string SandBox.ViewModelCollection.SaveLoad.SaveLoadVM.SaveLoadText
getset

◆ DoneInputKey

InputKeyItemVM SandBox.ViewModelCollection.SaveLoad.SaveLoadVM.DoneInputKey
getset

◆ CancelInputKey

InputKeyItemVM SandBox.ViewModelCollection.SaveLoad.SaveLoadVM.CancelInputKey
getset

◆ DeleteInputKey

InputKeyItemVM SandBox.ViewModelCollection.SaveLoad.SaveLoadVM.DeleteInputKey
getset