Table of Contents

Delegate Tag2RichTextDelegate

Namespace
Vintagestory.API.Common
Assembly
VintagestoryAPI.dll

A tag parser

public delegate RichTextComponentBase Tag2RichTextDelegate(ICoreClientAPI capi, VtmlTagToken token, Stack<CairoFont> fontStack, Action<LinkTextComponent> didClickLink)

Parameters

capi ICoreClientAPI
token VtmlTagToken

The currently parsed token, its attributes, and child elements

fontStack Stack<CairoFont>

The current font, you and push a new font if this tag modifies the current font or call .Peek() to get the current one

didClickLink Action<LinkTextComponent>

Handler passed on by the displaying dialog that should be called if a user pressed a piece of text, if it is clickable at all

Returns

RichTextComponentBase
Extension Methods