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
Fields
CurrentLanguage
public ILanguage CurrentLanguage
Field Value
Properties
CanBreakWords
public bool CanBreakWords { get; set; }
Property Value
CurrentStyle
public string CurrentStyle { get; set; }
Property Value
FocusedLinkGroup
public RichTextLinkGroup FocusedLinkGroup { get; }
Property Value
HorizontalAlignment
public TextHorizontalAlignment HorizontalAlignment { get; set; }
Property Value
SkipLineOnContainerExceeded
public bool SkipLineOnContainerExceeded { get; set; }
Property Value
StyleFontContainer
public StyleFontContainer StyleFontContainer { get; }
Property Value
TextHeight
public int TextHeight { get; }
Property Value
Value
public string Value { get; set; }
Property Value
VerticalAlignment
public TextVerticalAlignment VerticalAlignment { get; set; }
Property Value
Methods
CalculateTextOutput(bool, bool, float, float, SpriteData, float)
public void CalculateTextOutput(bool fixedWidth, bool fixedHeight, float width, float height, SpriteData spriteData, float renderScale)
Parameters
GetParts()
public List<RichTextPart> GetParts()
Returns
GetPreferredSize(bool, float, bool, float, SpriteData, float)
public Vector2 GetPreferredSize(bool fixedWidth, float widthSize, bool fixedHeight, float heightSize, SpriteData spriteData, float renderScale)
Parameters
fixedWidthboolwidthSizefloatfixedHeightboolheightSizefloatspriteDataSpriteDatarenderScalefloat
Returns
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
spriteDataSpriteDatafocusPositionVector2focusboolisFixedWidthboolisFixedHeightboolrenderScalefloat
UpdateSize(int, int)
public void UpdateSize(int width, int height)
Parameters
This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).