Table of Contents

Class CanvasLineText

Namespace
TaleWorlds.GauntletUI.Canvas
Assembly
TaleWorlds.GauntletUI.dll
public class CanvasLineText : CanvasLineElement
Inheritance
CanvasLineText
Inherited Members

Constructors

CanvasLineText(CanvasLine, int, FontFactory, SpriteData)

public CanvasLineText(CanvasLine line, int segmentIndex, FontFactory fontFactory, SpriteData spriteData)

Parameters

line CanvasLine
segmentIndex int
fontFactory FontFactory
spriteData SpriteData

Properties

FontColor

public Color FontColor { get; set; }

Property Value

Color

FontSize

public float FontSize { get; set; }

Property Value

float

Value

public string Value { get; set; }

Property Value

string

Methods

LoadFrom(XmlNode)

public void LoadFrom(XmlNode textNode)

Parameters

textNode XmlNode

Measure()

protected override Vector2 Measure()

Returns

Vector2

Render(Vector2, TwoDimensionDrawContext)

protected override void Render(Vector2 globalPosition, TwoDimensionDrawContext drawContext)

Parameters

globalPosition Vector2
drawContext TwoDimensionDrawContext

Update(float)

public override void Update(float scale)

Parameters

scale float

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