A simple UI text element wrapper for usage in Lua.
You can spawn it by creating a "Entity.UIText" entity.
public string GetText()
(Client) Get the text of this UI text mesh.
Returns: (string) The text.
public void SetText(string text)
(Client) Set the text of this UI text mesh.
Arguments
public float GetFontSize()
(Client) Get the font size of this text mesh.
Returns: (float) The font size.
public void SetFontSize(float size)
(Client) Set the font size of this text mesh.
Arguments
public void SetColor(LuaColor color)
(Client) Set the color of this text mesh.
Arguments
public LuaColor GetColor()
(Client) Get the color of this text mesh.
Returns: (Color) The color of this text mesh.
public void SetWordWrapping(bool enabled)
(Client) Sets whether the word wrapping is enabled.
Arguments
public bool GetWordWrapping()
(Client) Gets whether the word wrapping is enabled.
Returns: (bool) Whether the word wrapping is enabled.
public void SetTextAlignment(int alignment)
(Client) Sets the text alignment.
Arguments
public int GetTextAlignment()
(Client) Gets the text alignment.
Returns: (int) The text alignment.
public void SetOutlineWidth(float width)
(Client) Sets the outline width.
Arguments
public float GetOutlineWidth()
(Client) Gets the outline width.
Returns: (float) The outline width.
public void SetOutlineColor(LuaColor color)
(Client) Sets the outline color.
Arguments
public LuaColor GetOutlineColor()
(Client) Gets the outline color.
Returns: (LuaColor) The outline color.
public void SetAlpha(float alpha)
(Client) Sets the alpha of the text.
Arguments
public float GetAlpha()
(Client) Gets the alpha of the text.
Returns: (float) The alpha of the text.
public bool GetAutoSizing()
(Client) Gets whether auto sizing is enabled.
Returns: (bool) Whether auto sizing is enabled.
public void SetAutoSizing(bool enabled)
(Client) Sets whether auto sizing is enabled.
Arguments
public float GetMinSize()
(Client) Gets minimum font size for when auto sizing is enabled.
Returns: (float) Minimum size for when auto sizing is enabled.
public void SetMinSize(float minSize)
(Client) Sets minimum font size for when auto sizing is enabled.
Arguments
public float GetMaxSize()
(Client) Gets maximum font size for when auto sizing is enabled.
Returns: (float) Maximum size for when auto sizing is enabled.
public void SetMaxSize(float maxSize)
(Client) Sets maximum font size for when auto sizing is enabled.
Arguments
public float GetTextWidth()
(Client) Gets the width of the text.
Returns: (float) The text width.
public float GetTextHeight()
(Client) Gets the height of the text.
Returns: (float) The text height.