Text

From Crumbled World Wiki
Revision as of 14:27, 5 July 2025 by Anders (talk | contribs) (Created page with "{{:LabelExampleCode}} ==Constructor== {| class="wikitable" !|function !|description |- |Text() | |- |Text(string text) | |- |Text(Text text) | |- |} ==Functions== {| class="wikitable" !|return !|function !|description |- |string |toString() |Get string. |- |int |length() |Get text length. |- |Vec2 |getTextScale() |Get text scale. |- |Vec2 |Text:getTextScale(bool parseText)|getTextScal...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

LabelExampleCode


Constructor

function description
Text()
Text(string text)
Text(Text text)

Functions

return function description
string toString() Get string.
int length() Get text length.
Vec2 getTextScale() Get text scale.
Vec2 getTextScale(bool parseText) Get text scale.

If parseText is false then text scale will include all tags also.