Table of Contents

Class GuiElementDynamicTextHelper

Namespace
Vintagestory.API.Client
Assembly
VintagestoryAPI.dll
public static class GuiElementDynamicTextHelper
Inheritance
GuiElementDynamicTextHelper
Inherited Members

Methods

AddDynamicText(GuiComposer, string, CairoFont, ElementBounds, string)

Adds dynamic text to the GUI.

public static GuiComposer AddDynamicText(this GuiComposer composer, string text, CairoFont font, ElementBounds bounds, string key = null)

Parameters

composer GuiComposer
text string
font CairoFont
bounds ElementBounds
key string

Returns

GuiComposer

AddDynamicText(GuiComposer, string, CairoFont, EnumTextOrientation, ElementBounds, string)

[Obsolete("Use AddDymiacText without orientation attribute, that can be configured through the font")]
public static GuiComposer AddDynamicText(this GuiComposer composer, string text, CairoFont font, EnumTextOrientation orientation, ElementBounds bounds, string key = null)

Parameters

composer GuiComposer
text string
font CairoFont
orientation EnumTextOrientation
bounds ElementBounds
key string

Returns

GuiComposer

GetDynamicText(GuiComposer, string)

Gets the Dynamic Text by name from the GUI.

public static GuiElementDynamicText GetDynamicText(this GuiComposer composer, string key)

Parameters

composer GuiComposer
key string

The name of the element.

Returns

GuiElementDynamicText