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
GuiComposertext
stringfont
CairoFontbounds
ElementBoundskey
string
Returns
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
GuiComposertext
stringfont
CairoFontorientation
EnumTextOrientationbounds
ElementBoundskey
string
Returns
GetDynamicText(GuiComposer, string)
Gets the Dynamic Text by name from the GUI.
public static GuiElementDynamicText GetDynamicText(this GuiComposer composer, string key)
Parameters
composer
GuiComposerkey
stringThe name of the element.