Table of Contents

Class MBTextManager

Namespace
TaleWorlds.Localization
Assembly
TaleWorlds.Localization.dll
public static class MBTextManager
Inheritance
MBTextManager
Inherited Members

Fields

LinkAttribute

public const string LinkAttribute = "LINK"

Field Value

string

Properties

ActiveTextLanguage

public static string ActiveTextLanguage { get; }

Property Value

string

LocalizationDebugMode

public static bool LocalizationDebugMode { get; set; }

Property Value

bool

Methods

ChangeLanguage(string)

public static bool ChangeLanguage(string language)

Parameters

language string

Returns

bool

ClearAll()

public static void ClearAll()

DiscardAnimationTags(string)

public static string DiscardAnimationTags(string text)

Parameters

text string

Returns

string

DiscardAnimationTagsAndCheckAnimationTagPositions(string)

public static string DiscardAnimationTagsAndCheckAnimationTagPositions(string text)

Parameters

text string

Returns

string

GetActiveTextLanguageIndex()

public static int GetActiveTextLanguageIndex()

Returns

int

GetConversationAnimations(TextObject)

public static string[] GetConversationAnimations(TextObject to)

Parameters

to TextObject

Returns

string[]

LanguageExistsInCurrentConfiguration(string, bool)

public static bool LanguageExistsInCurrentConfiguration(string language, bool developmentMode)

Parameters

language string
developmentMode bool

Returns

bool

ResetFunctions()

public static void ResetFunctions()

SetFunction(string, string)

public static void SetFunction(string funcName, string functionBody)

Parameters

funcName string
functionBody string

SetTextVariable(string, int)

public static void SetTextVariable(string variableName, int content)

Parameters

variableName string
content int

SetTextVariable(string, int, object)

public static void SetTextVariable(string variableName, int arrayIndex, object content)

Parameters

variableName string
arrayIndex int
content object

SetTextVariable(string, object)

public static void SetTextVariable(string variableName, object content)

Parameters

variableName string
content object

SetTextVariable(string, float)

public static void SetTextVariable(string variableName, float content)

Parameters

variableName string
content float

SetTextVariable(string, string, bool)

public static void SetTextVariable(string variableName, string text, bool sendClients = false)

Parameters

variableName string
text string
sendClients bool

SetTextVariable(string, TextObject, bool)

public static void SetTextVariable(string variableName, TextObject text, bool sendClients = false)

Parameters

variableName string
text TextObject
sendClients bool

ThrowLocalizationError(string)

public static void ThrowLocalizationError(string message)

Parameters

message string

TryChangeVoiceLanguage(string)

public static bool TryChangeVoiceLanguage(string language)

Parameters

language string

Returns

bool

TryGetVoiceObject(TextObject, out VoiceObject)

public static bool TryGetVoiceObject(TextObject to, out VoiceObject vo)

Parameters

to TextObject
vo VoiceObject

Returns

bool

This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).