Table of Contents

Class VtmlUtil

Namespace
Vintagestory.API.Common
Assembly
VintagestoryAPI.dll
public class VtmlUtil
Inheritance
VtmlUtil
Inherited Members
Extension Methods

Fields

TagConverters

You can register your own tag converters here

public static Dictionary<string, Tag2RichTextDelegate> TagConverters

Field Value

Dictionary<string, Tag2RichTextDelegate>

Methods

Richtextify(ICoreClientAPI, string, CairoFont, Action<LinkTextComponent>)

public static RichTextComponentBase[] Richtextify(ICoreClientAPI capi, string vtmlCode, CairoFont baseFont, Action<LinkTextComponent> didClickLink = null)

Parameters

capi ICoreClientAPI
vtmlCode string
baseFont CairoFont
didClickLink Action<LinkTextComponent>

Returns

RichTextComponentBase[]

parseHexColor(string, out double[])

public static bool parseHexColor(string colorText, out double[] color)

Parameters

colorText string
color double[]

Returns

bool

toHexColor(double[])

public static string toHexColor(double[] color)

Parameters

color double[]

Returns

string