Table of Contents

Class ClearFloatTextComponent

Namespace
Vintagestory.API.Client
Assembly
VintagestoryAPI.dll
public class ClearFloatTextComponent : RichTextComponent
Inheritance
ClearFloatTextComponent
Inherited Members
Extension Methods

Constructors

ClearFloatTextComponent(ICoreClientAPI, float)

public ClearFloatTextComponent(ICoreClientAPI api, float unScaleMarginTop = 0)

Parameters

api ICoreClientAPI
unScaleMarginTop float

Methods

CalcBounds(TextFlowPath[], double, double, double, out double)

Initializes the size and stuff. Return true if you had to enter the next line

public override EnumCalcBoundsResult CalcBounds(TextFlowPath[] flowPath, double currentLineHeight, double offsetX, double lineY, out double nextOffsetX)

Parameters

flowPath TextFlowPath[]
currentLineHeight double
offsetX double
lineY double
nextOffsetX double

Returns

EnumCalcBoundsResult

True when longer than 1 line

ComposeElements(Context, ImageSurface)

Composes the element.

public override void ComposeElements(Context ctx, ImageSurface surface)

Parameters

ctx Context

Context of the text component.

surface ImageSurface

The surface of the image.

RenderInteractiveElements(float, double, double, double)

Renders the text component.

public override void RenderInteractiveElements(float deltaTime, double renderX, double renderY, double renderZ)

Parameters

deltaTime float
renderX double
renderY double
renderZ double