M&B: Bannerlord 1.2.7
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)
 
Vector2 GetPreferredSize (bool fixedWidth, float widthSize, bool fixedHeight, float heightSize, SpriteData spriteData, float renderScale)
 

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]
 
DrawObject2D DrawObject2D [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]
 
- Properties inherited from TaleWorlds.TwoDimension.IText
string Value [get, set]
 
TextHorizontalAlignment HorizontalAlignment [get, set]
 
TextVerticalAlignment VerticalAlignment [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 
)

Property Documentation

◆ CurrentLanguage

ILanguage TaleWorlds.TwoDimension.Text.CurrentLanguage
getset

◆ ScaleToFitTextInLayout

float TaleWorlds.TwoDimension.Text.ScaleToFitTextInLayout = 1
get

◆ LineCount

int TaleWorlds.TwoDimension.Text.LineCount
get

◆ DrawObject2D

DrawObject2D TaleWorlds.TwoDimension.Text.DrawObject2D
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