M&B: Bannerlord 1.3.14
The horns sound, the ravens gather.
Loading...
Searching...
No Matches
TaleWorlds.TwoDimension.Text Class Reference

Inherits TaleWorlds.TwoDimension.IText.

Public Member Functions

 Text (int width, int height, Font bitmapFont, Func< int, Font > getUsableFontForCharacter)
Vector2 GetPreferredSize (bool fixedWidth, float widthSize, bool fixedHeight, float heightSize, SpriteData spriteData, float renderScale)
void UpdateSize (int width, int height)
void SetAllDirty ()
List< TextPartGetParts ()

Properties

ILanguage CurrentLanguage [get, set]
float ScaleToFitTextInLayout = 1 [get]
 After a placement pass, if this value is != 1, it means we need to make another pass with this modifier to fit the text inside the given text area.
int LineCount [get]
int Width [get]
int Height [get]
Font Font [get, set]
TextHorizontalAlignment HorizontalAlignment [get, set]
TextVerticalAlignment VerticalAlignment [get, set]
float FontSize [get, set]
string Value [get, set]
bool SkipLineOnContainerExceeded [get, set]
bool CanBreakWords [get, set]
bool ResizeTextOnOverflow [get, set]

Constructor & Destructor Documentation

◆ Text()

TaleWorlds.TwoDimension.Text.Text ( int width,
int height,
Font bitmapFont,
Func< int, Font > getUsableFontForCharacter )

Member Function Documentation

◆ GetPreferredSize()

Vector2 TaleWorlds.TwoDimension.Text.GetPreferredSize ( bool fixedWidth,
float widthSize,
bool fixedHeight,
float heightSize,
SpriteData spriteData,
float renderScale )

◆ UpdateSize()

void TaleWorlds.TwoDimension.Text.UpdateSize ( int width,
int height )

◆ SetAllDirty()

void TaleWorlds.TwoDimension.Text.SetAllDirty ( )

◆ GetParts()

List< TextPart > TaleWorlds.TwoDimension.Text.GetParts ( )

Property Documentation

◆ CurrentLanguage

ILanguage TaleWorlds.TwoDimension.Text.CurrentLanguage
getset

◆ ScaleToFitTextInLayout

float TaleWorlds.TwoDimension.Text.ScaleToFitTextInLayout = 1
get

◆ LineCount

int TaleWorlds.TwoDimension.Text.LineCount
get

◆ Width

int TaleWorlds.TwoDimension.Text.Width
get

◆ Height

int TaleWorlds.TwoDimension.Text.Height
get

◆ Font

Font TaleWorlds.TwoDimension.Text.Font
getset

◆ HorizontalAlignment

TextHorizontalAlignment TaleWorlds.TwoDimension.Text.HorizontalAlignment
getset

◆ VerticalAlignment

TextVerticalAlignment TaleWorlds.TwoDimension.Text.VerticalAlignment
getset

◆ FontSize

float TaleWorlds.TwoDimension.Text.FontSize
getset

◆ Value

string TaleWorlds.TwoDimension.Text.Value
getset

◆ SkipLineOnContainerExceeded

bool TaleWorlds.TwoDimension.Text.SkipLineOnContainerExceeded
getset

◆ CanBreakWords

bool TaleWorlds.TwoDimension.Text.CanBreakWords
getset

◆ ResizeTextOnOverflow

bool TaleWorlds.TwoDimension.Text.ResizeTextOnOverflow
getset