Table of Contents

Class RichText

Namespace
TaleWorlds.TwoDimension
Assembly
TaleWorlds.TwoDimension.dll
public class RichText : IText
Inheritance
RichText
Implements
Derived
Inherited Members

Constructors

RichText(int, int, Font, Func<int, Font>)

public RichText(int width, int height, Font font, Func<int, Font> getUsableFontForCharacter)

Parameters

width int
height int
font Font
getUsableFontForCharacter Func<int, Font>

Fields

CurrentLanguage

public ILanguage CurrentLanguage

Field Value

ILanguage

Properties

CanBreakWords

public bool CanBreakWords { get; set; }

Property Value

bool

CurrentStyle

public string CurrentStyle { get; set; }

Property Value

string

FocusedLinkGroup

public RichTextLinkGroup FocusedLinkGroup { get; }

Property Value

RichTextLinkGroup

HorizontalAlignment

public TextHorizontalAlignment HorizontalAlignment { get; set; }

Property Value

TextHorizontalAlignment

SkipLineOnContainerExceeded

public bool SkipLineOnContainerExceeded { get; set; }

Property Value

bool

StyleFontContainer

public StyleFontContainer StyleFontContainer { get; }

Property Value

StyleFontContainer

TextHeight

public int TextHeight { get; }

Property Value

int

Value

public string Value { get; set; }

Property Value

string

VerticalAlignment

public TextVerticalAlignment VerticalAlignment { get; set; }

Property Value

TextVerticalAlignment

Methods

CalculateTextOutput(bool, bool, float, float, SpriteData, float)

public void CalculateTextOutput(bool fixedWidth, bool fixedHeight, float width, float height, SpriteData spriteData, float renderScale)

Parameters

fixedWidth bool
fixedHeight bool
width float
height float
spriteData SpriteData
renderScale float

GetParts()

public List<RichTextPart> GetParts()

Returns

List<RichTextPart>

GetPreferredSize(bool, float, bool, float, SpriteData, float)

public Vector2 GetPreferredSize(bool fixedWidth, float widthSize, bool fixedHeight, float heightSize, SpriteData spriteData, float renderScale)

Parameters

fixedWidth bool
widthSize float
fixedHeight bool
heightSize float
spriteData SpriteData
renderScale float

Returns

Vector2

SetAllDirty()

public void SetAllDirty()

Update(SpriteData, Vector2, bool, bool, bool, float)

public virtual void Update(SpriteData spriteData, Vector2 focusPosition, bool focus, bool isFixedWidth, bool isFixedHeight, float renderScale)

Parameters

spriteData SpriteData
focusPosition Vector2
focus bool
isFixedWidth bool
isFixedHeight bool
renderScale float

UpdateSize(int, int)

public void UpdateSize(int width, int height)

Parameters

width int
height int

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