M&B: Bannerlord 1.1.0
The horns sound, the ravens gather.
Loading...
Searching...
No Matches
TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.MPCosmeticObtainPopupVM Class Reference

Inherits TaleWorlds.Library.ViewModel.

Public Types

enum  CosmeticObtainState {
  Initialized ,
  Ongoing ,
  FinishedSuccessfully ,
  FinishedUnsuccessfully
}
 

Public Member Functions

 MPCosmeticObtainPopupVM (Action< string, int > onItemObtained, Func< string > getContinueKeyText)
 
override void RefreshValues ()
 Used for updating localized texts.
 
void OpenWith (MPArmoryCosmeticItemVM item)
 
void OpenWith (MPLobbyCosmeticSigilItemVM sigilItem)
 
void ExecuteClosePopup ()
 
- 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 IsEnabled [get, set]
 
bool CanObtain [get, set]
 
bool IsOpenedWithArmoryItem [get, set]
 
bool IsOpenedWithSigilItem [get, set]
 
bool IsObtainSuccessful [get, set]
 
int ObtainState [get, set]
 
string ObtainDescriptionText [get, set]
 
string ContinueText [get, set]
 
string NotEnoughLootText [get, set]
 
string ObtainResultText [get, set]
 
string PreviewAsText [get, set]
 
string CurrentLootText [get, set]
 
string ClickToCloseText [get, set]
 
MPLobbyCosmeticSigilItemVM SigilItem [get, set]
 
MPArmoryCosmeticItemVM Item [get, set]
 
ItemCollectionElementViewModel ItemVisual [get, set]
 
MBBindingList< MPCultureItemVMCultures [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
 

Member Enumeration Documentation

◆ CosmeticObtainState

Enumerator
Initialized 
Ongoing 
FinishedSuccessfully 
FinishedUnsuccessfully 

Constructor & Destructor Documentation

◆ MPCosmeticObtainPopupVM()

TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.MPCosmeticObtainPopupVM.MPCosmeticObtainPopupVM ( Action< string, int >  onItemObtained,
Func< string >  getContinueKeyText 
)

Member Function Documentation

◆ RefreshValues()

override void TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.MPCosmeticObtainPopupVM.RefreshValues ( )
virtual

Reimplemented from TaleWorlds.Library.ViewModel.

◆ OpenWith() [1/2]

void TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.MPCosmeticObtainPopupVM.OpenWith ( MPArmoryCosmeticItemVM  item)

◆ OpenWith() [2/2]

void TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.MPCosmeticObtainPopupVM.OpenWith ( MPLobbyCosmeticSigilItemVM  sigilItem)

◆ ExecuteClosePopup()

void TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.MPCosmeticObtainPopupVM.ExecuteClosePopup ( )

Property Documentation

◆ IsEnabled

bool TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.MPCosmeticObtainPopupVM.IsEnabled
getset

◆ CanObtain

bool TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.MPCosmeticObtainPopupVM.CanObtain
getset

◆ IsOpenedWithArmoryItem

bool TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.MPCosmeticObtainPopupVM.IsOpenedWithArmoryItem
getset

◆ IsOpenedWithSigilItem

bool TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.MPCosmeticObtainPopupVM.IsOpenedWithSigilItem
getset

◆ IsObtainSuccessful

bool TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.MPCosmeticObtainPopupVM.IsObtainSuccessful
getset

◆ ObtainState

int TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.MPCosmeticObtainPopupVM.ObtainState
getset

◆ ObtainDescriptionText

string TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.MPCosmeticObtainPopupVM.ObtainDescriptionText
getset

◆ ContinueText

string TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.MPCosmeticObtainPopupVM.ContinueText
getset

◆ NotEnoughLootText

string TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.MPCosmeticObtainPopupVM.NotEnoughLootText
getset

◆ ObtainResultText

string TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.MPCosmeticObtainPopupVM.ObtainResultText
getset

◆ PreviewAsText

string TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.MPCosmeticObtainPopupVM.PreviewAsText
getset

◆ CurrentLootText

string TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.MPCosmeticObtainPopupVM.CurrentLootText
getset

◆ ClickToCloseText

string TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.MPCosmeticObtainPopupVM.ClickToCloseText
getset

◆ SigilItem

MPLobbyCosmeticSigilItemVM TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.MPCosmeticObtainPopupVM.SigilItem
getset

◆ Item

MPArmoryCosmeticItemVM TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.MPCosmeticObtainPopupVM.Item
getset

◆ ItemVisual

ItemCollectionElementViewModel TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.MPCosmeticObtainPopupVM.ItemVisual
getset

◆ Cultures

MBBindingList<MPCultureItemVM> TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.Lobby.MPCosmeticObtainPopupVM.Cultures
getset