M&B: Bannerlord 1.1.0
The horns sound, the ravens gather.
Loading...
Searching...
No Matches
TaleWorlds.GauntletUI.Language Class Reference

Inherits TaleWorlds.TwoDimension.ILanguage.

Public Member Functions

bool FontMapHasKey (string keyFontName)
 Returns if given keyFontName is defined in the mapping in this language.
 
Font GetMappedFont (string keyFontName)
 Get mapped font in this language from keyFontName to font in this language.
 
IEnumerable< char > GetForbiddenStartOfLineCharacters ()
 List of characters that cannot come at the beginning of lines.
 
bool IsCharacterForbiddenAtStartOfLine (char character)
 
IEnumerable< char > GetForbiddenEndOfLineCharacters ()
 List of characters that cannot come to the end of lines.
 
bool IsCharacterForbiddenAtEndOfLine (char character)
 
string GetLanguageID ()
 
string GetDefaultFontName ()
 
Font GetDefaultFont ()
 Default font of this language.
 
char GetLineSeperatorChar ()
 Line separator character of this language.
 
bool DoesLanguageRequireSpaceForNewline ()
 Does this language require a space for breaking into a new line Some Asian languages don't require spaces for newlines.
 
bool FontMapHasKey (string keyFontName)
 Returns if given keyFontName is defined in the mapping in this language.
 
Font GetMappedFont (string keyFontName)
 Get mapped font in this language from keyFontName to font in this language.
 

Static Public Member Functions

static Language CreateFrom (XmlNode languageNode, FontFactory fontFactory)
 

Properties

char[] ForbiddenStartOfLineCharacters [get]
 List of characters that cannot come at the beginning of lines.
 
char[] ForbiddenEndOfLineCharacters [get]
 List of characters that cannot come to the end of lines.
 
string LanguageID [get]
 
string DefaultFontName [get]
 
bool DoesFontRequireSpaceForNewline = true [get]
 Does this language require a space for breaking into a new line Some Asian languages don't require spaces for newlines.
 
Font DefaultFont [get]
 Default font of this language.
 
char LineSeperatorChar [get]
 Char that is used to separate the line.
 

Member Function Documentation

◆ FontMapHasKey()

bool TaleWorlds.GauntletUI.Language.FontMapHasKey ( string  keyFontName)
Parameters
keyFontName

Implements TaleWorlds.TwoDimension.ILanguage.

◆ GetMappedFont()

Font TaleWorlds.GauntletUI.Language.GetMappedFont ( string  keyFontName)
Parameters
keyFontNameFont name in English font

Implements TaleWorlds.TwoDimension.ILanguage.

◆ CreateFrom()

static Language TaleWorlds.GauntletUI.Language.CreateFrom ( XmlNode  languageNode,
FontFactory  fontFactory 
)
static

Property Documentation

◆ ForbiddenStartOfLineCharacters

char [] TaleWorlds.GauntletUI.Language.ForbiddenStartOfLineCharacters
get

◆ ForbiddenEndOfLineCharacters

char [] TaleWorlds.GauntletUI.Language.ForbiddenEndOfLineCharacters
get

◆ LanguageID

string TaleWorlds.GauntletUI.Language.LanguageID
get

◆ DefaultFontName

string TaleWorlds.GauntletUI.Language.DefaultFontName
get

◆ DoesFontRequireSpaceForNewline

bool TaleWorlds.GauntletUI.Language.DoesFontRequireSpaceForNewline = true
get

◆ DefaultFont

Font TaleWorlds.GauntletUI.Language.DefaultFont
get

◆ LineSeperatorChar

char TaleWorlds.GauntletUI.Language.LineSeperatorChar
get