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

Inherits TaleWorlds.TwoDimension.IText.

Inherited by TaleWorlds.TwoDimension.EditableText.

Public Member Functions

 RichText (int width, int height, Font font, Func< int, Font > getUsableFontForCharacter)
 
virtual void Update (SpriteData spriteData, Vector2 focusPosition, bool focus, bool isFixedWidth, bool isFixedHeight, float renderScale)
 
void SetAllDirty ()
 
Vector2 GetPreferredSize (bool fixedWidth, float widthSize, bool fixedHeight, float heightSize, SpriteData spriteData, float renderScale)
 
void CalculateTextOutput (bool fixedWidth, bool fixedHeight, float width, float height, SpriteData spriteData, float renderScale)
 
void UpdateSize (int width, int height)
 
List< RichTextPartGetParts ()
 

Public Attributes

ILanguage CurrentLanguage
 

Properties

string CurrentStyle = "Default" [get, set]
 
int TextHeight [get]
 
StyleFontContainer StyleFontContainer [get]
 
TextHorizontalAlignment HorizontalAlignment [get, set]
 
TextVerticalAlignment VerticalAlignment [get, set]
 
string Value [get, set]
 
RichTextLinkGroup FocusedLinkGroup [get]
 
bool SkipLineOnContainerExceeded [get, set]
 
bool CanBreakWords [get, set]
 
- Properties inherited from TaleWorlds.TwoDimension.IText

Constructor & Destructor Documentation

◆ RichText()

TaleWorlds.TwoDimension.RichText.RichText ( int width,
int height,
Font font,
Func< int, Font > getUsableFontForCharacter )

Member Function Documentation

◆ Update()

virtual void TaleWorlds.TwoDimension.RichText.Update ( SpriteData spriteData,
Vector2 focusPosition,
bool focus,
bool isFixedWidth,
bool isFixedHeight,
float renderScale )
virtual

◆ SetAllDirty()

void TaleWorlds.TwoDimension.RichText.SetAllDirty ( )

◆ GetPreferredSize()

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

◆ CalculateTextOutput()

void TaleWorlds.TwoDimension.RichText.CalculateTextOutput ( bool fixedWidth,
bool fixedHeight,
float width,
float height,
SpriteData spriteData,
float renderScale )

◆ UpdateSize()

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

◆ GetParts()

List< RichTextPart > TaleWorlds.TwoDimension.RichText.GetParts ( )

Member Data Documentation

◆ CurrentLanguage

ILanguage TaleWorlds.TwoDimension.RichText.CurrentLanguage

Property Documentation

◆ CurrentStyle

string TaleWorlds.TwoDimension.RichText.CurrentStyle = "Default"
getset

◆ TextHeight

int TaleWorlds.TwoDimension.RichText.TextHeight
get

◆ StyleFontContainer

StyleFontContainer TaleWorlds.TwoDimension.RichText.StyleFontContainer
get

◆ HorizontalAlignment

TextHorizontalAlignment TaleWorlds.TwoDimension.RichText.HorizontalAlignment
getset

◆ VerticalAlignment

TextVerticalAlignment TaleWorlds.TwoDimension.RichText.VerticalAlignment
getset

◆ Value

string TaleWorlds.TwoDimension.RichText.Value
getset

◆ FocusedLinkGroup

RichTextLinkGroup TaleWorlds.TwoDimension.RichText.FocusedLinkGroup
get

◆ SkipLineOnContainerExceeded

bool TaleWorlds.TwoDimension.RichText.SkipLineOnContainerExceeded
getset

◆ CanBreakWords

bool TaleWorlds.TwoDimension.RichText.CanBreakWords
getset