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
ICoreClientAPIunScaleMarginTop
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
doubleoffsetX
doublelineY
doublenextOffsetX
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
ContextContext of the text component.
surface
ImageSurfaceThe 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)