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
Methods
Richtextify(ICoreClientAPI, string, CairoFont, Action<LinkTextComponent>)
public static RichTextComponentBase[] Richtextify(ICoreClientAPI capi, string vtmlCode, CairoFont baseFont, Action<LinkTextComponent> didClickLink = null)
Parameters
capi
ICoreClientAPIvtmlCode
stringbaseFont
CairoFontdidClickLink
Action<LinkTextComponent>
Returns
parseHexColor(string, out double[])
public static bool parseHexColor(string colorText, out double[] color)
Parameters
Returns
toHexColor(double[])
public static string toHexColor(double[] color)
Parameters
color
double[]