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

Inherits TaleWorlds.Library.ViewModel, and IChatHandler.

Public Member Functions

 MPChatVM ()
 
override void RefreshValues ()
 Used for updating localized texts.
 
void ToggleIncludeCombatLog ()
 
void ExecuteToggleIncludeShouts ()
 
void Tick (float dt)
 
void Clear ()
 
void UpdateObjects (Game game, Mission mission)
 
override void OnFinalize ()
 
void SendMessageToChannel (ChatChannelType channel, string message)
 
void SendMessageToLobbyChannel (string message)
 
void CheckChatFading (float dt)
 
void SetGetKeyTextFromKeyIDFunc (Func< TextObject > getToggleChatKeyText)
 
void SetGetCycleChannelKeyTextFunc (Func< TextObject > getCycleChannelsKeyText)
 
void SetGetSendMessageKeyTextFunc (Func< TextObject > getSendMessageKeyText)
 
void SetGetCancelSendingKeyTextFunc (Func< TextObject > getCancelSendingKeyText)
 
bool IsChatAllowedByOptions ()
 
void TypeToChannelAll (bool startTyping=false)
 
void TypeToChannelTeam (bool startTyping=false)
 
void StartInspectingMessages ()
 
void StopInspectingMessages ()
 
void StartTyping ()
 
void StopTyping (bool resetWrittenText=false)
 
void SendCurrentlyTypedMessage ()
 
void ExecuteSaveSizes ()
 
void SetMessageHistoryCapacity (int capacity)
 
- 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)
 

Static Public Attributes

const string DefaultCategory = "Default"
 
const string CombatCategory = "Combat"
 
const string SocialCategory = "Social"
 
const string BarkCategory = "Bark"
 
- Static Public Attributes inherited from TaleWorlds.Library.ViewModel
static bool UIDebugMode
 

Properties

ChatChannelType ActiveChannelType [get, set]
 
float ChatBoxSizeX [get, set]
 
float ChatBoxSizeY [get, set]
 
int MaxMessageLength [get, set]
 
bool IsTypingText [get, set]
 
bool IsInspectingMessages [get, set]
 
bool IsChatDisabled [get, set]
 
bool ShowHideShowHint [get, set]
 
bool IsOptionsAvailable [get, set]
 
string WrittenText [get, set]
 
Color ActiveChannelColor [get, set]
 
string ActiveChannelNameText [get, set]
 
string HideShowText [get, set]
 
string ToggleCombatLogText [get, set]
 
string ToggleBarkText [get, set]
 
string CycleThroughChannelsText [get, set]
 
string SendMessageText [get, set]
 
string CancelSendingText [get, set]
 
MBBindingList< MPChatLineVMMessageHistory [get, set]
 
HintViewModel CombatLogHint [get, set]
 
bool IncludeCombatLog [get, set]
 
bool IncludeBark [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 ()
 
- 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

◆ MPChatVM()

TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.MPChatVM.MPChatVM ( )

Member Function Documentation

◆ RefreshValues()

override void TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.MPChatVM.RefreshValues ( )
virtual

Reimplemented from TaleWorlds.Library.ViewModel.

◆ ToggleIncludeCombatLog()

void TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.MPChatVM.ToggleIncludeCombatLog ( )

◆ ExecuteToggleIncludeShouts()

void TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.MPChatVM.ExecuteToggleIncludeShouts ( )

◆ Tick()

void TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.MPChatVM.Tick ( float  dt)

◆ Clear()

void TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.MPChatVM.Clear ( )

◆ UpdateObjects()

void TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.MPChatVM.UpdateObjects ( Game  game,
Mission  mission 
)

◆ OnFinalize()

override void TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.MPChatVM.OnFinalize ( )
virtual

Reimplemented from TaleWorlds.Library.ViewModel.

◆ SendMessageToChannel()

void TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.MPChatVM.SendMessageToChannel ( ChatChannelType  channel,
string  message 
)

◆ SendMessageToLobbyChannel()

void TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.MPChatVM.SendMessageToLobbyChannel ( string  message)

◆ CheckChatFading()

void TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.MPChatVM.CheckChatFading ( float  dt)

◆ SetGetKeyTextFromKeyIDFunc()

void TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.MPChatVM.SetGetKeyTextFromKeyIDFunc ( Func< TextObject getToggleChatKeyText)

◆ SetGetCycleChannelKeyTextFunc()

void TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.MPChatVM.SetGetCycleChannelKeyTextFunc ( Func< TextObject getCycleChannelsKeyText)

◆ SetGetSendMessageKeyTextFunc()

void TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.MPChatVM.SetGetSendMessageKeyTextFunc ( Func< TextObject getSendMessageKeyText)

◆ SetGetCancelSendingKeyTextFunc()

void TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.MPChatVM.SetGetCancelSendingKeyTextFunc ( Func< TextObject getCancelSendingKeyText)

◆ IsChatAllowedByOptions()

bool TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.MPChatVM.IsChatAllowedByOptions ( )

◆ TypeToChannelAll()

void TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.MPChatVM.TypeToChannelAll ( bool  startTyping = false)

◆ TypeToChannelTeam()

void TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.MPChatVM.TypeToChannelTeam ( bool  startTyping = false)

◆ StartInspectingMessages()

void TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.MPChatVM.StartInspectingMessages ( )

◆ StopInspectingMessages()

void TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.MPChatVM.StopInspectingMessages ( )

◆ StartTyping()

void TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.MPChatVM.StartTyping ( )

◆ StopTyping()

void TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.MPChatVM.StopTyping ( bool  resetWrittenText = false)

◆ SendCurrentlyTypedMessage()

void TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.MPChatVM.SendCurrentlyTypedMessage ( )

◆ ExecuteSaveSizes()

void TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.MPChatVM.ExecuteSaveSizes ( )

◆ SetMessageHistoryCapacity()

void TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.MPChatVM.SetMessageHistoryCapacity ( int  capacity)

Member Data Documentation

◆ DefaultCategory

const string TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.MPChatVM.DefaultCategory = "Default"
static

◆ CombatCategory

const string TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.MPChatVM.CombatCategory = "Combat"
static

◆ SocialCategory

const string TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.MPChatVM.SocialCategory = "Social"
static

◆ BarkCategory

const string TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.MPChatVM.BarkCategory = "Bark"
static

Property Documentation

◆ ActiveChannelType

ChatChannelType TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.MPChatVM.ActiveChannelType
getset

◆ ChatBoxSizeX

float TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.MPChatVM.ChatBoxSizeX
getset

◆ ChatBoxSizeY

float TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.MPChatVM.ChatBoxSizeY
getset

◆ MaxMessageLength

int TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.MPChatVM.MaxMessageLength
getset

◆ IsTypingText

bool TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.MPChatVM.IsTypingText
getset

◆ IsInspectingMessages

bool TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.MPChatVM.IsInspectingMessages
getset

◆ IsChatDisabled

bool TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.MPChatVM.IsChatDisabled
getset

◆ ShowHideShowHint

bool TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.MPChatVM.ShowHideShowHint
getset

◆ IsOptionsAvailable

bool TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.MPChatVM.IsOptionsAvailable
getset

◆ WrittenText

string TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.MPChatVM.WrittenText
getset

◆ ActiveChannelColor

Color TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.MPChatVM.ActiveChannelColor
getset

◆ ActiveChannelNameText

string TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.MPChatVM.ActiveChannelNameText
getset

◆ HideShowText

string TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.MPChatVM.HideShowText
getset

◆ ToggleCombatLogText

string TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.MPChatVM.ToggleCombatLogText
getset

◆ ToggleBarkText

string TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.MPChatVM.ToggleBarkText
getset

◆ CycleThroughChannelsText

string TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.MPChatVM.CycleThroughChannelsText
getset

◆ SendMessageText

string TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.MPChatVM.SendMessageText
getset

◆ CancelSendingText

string TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.MPChatVM.CancelSendingText
getset

◆ MessageHistory

MBBindingList<MPChatLineVM> TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.MPChatVM.MessageHistory
getset

◆ CombatLogHint

HintViewModel TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.MPChatVM.CombatLogHint
getset

◆ IncludeCombatLog

bool TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.MPChatVM.IncludeCombatLog
getset

◆ IncludeBark

bool TaleWorlds.MountAndBlade.ViewModelCollection.Multiplayer.MPChatVM.IncludeBark
getset