Browsing StarfallEx's section
โ† Back to ACE
Back to StarfallEx

SFEX.render.drawSimpleText

C๐Ÿท๏ธ Render

Part of StarfallEx namespace

๐Ÿ”— External
render.drawSimpleText(x, y, text, xalign, yalign)
View on GitHub|lua/starfall/libs_cl/render.lua:1918
๐Ÿ“‹ Has LDoc๐Ÿ‘๏ธ 0 viewsUpdated 2 months ago

Description

Draws text more easily and quickly but no new lines or tabs.

Parameters

NameTypeDescription
xnumberX coordinate
ynumberY coordinate
textstringText to draw
xalign?numberHorizontal text alignment. Default TEXT_ALIGN.LEFT
yalign?numberVertical text alignment. Default TEXT_ALIGN.TOP

Returns

TypeDescription
numberWidth of the drawn text. Same as calling render.getTextSize
numberHeight of the drawn text. Same as calling render.getTextSize

Examples

No examples available.

Used In

No usages found in the codebase.