Documentation

UI::DrawList::AddText

Method in DrawList

void AddText(const vec2&in pos, const vec4&in color, const string&in str, UI::Font@ font = null, float size = 0.0f, float wrapWidth = 0.0f)

Draws a text.

vec2 pos

vec4 color

string str

UI::Font@ font

The font to use. When this is null, the font will the currently active font, meaning it has the same rules as UI::Text() and can be changed using UI::PushFont().

float size

The fontsize to use. When this is 0, the size will be taken from font.FontSize (the legacy size). If no font is given, the size from UI::GetFontSize() will be used.

float wrapWidth