TextNode: Difference between revisions
From Crumbled World Wiki
(Created page with "{{:TextNodeExampleCode}} ==Inheritance== Render2DNode ==Constructor== {| class="wikitable" !|function !|description |- |TextNode() | |- |} ==Functions== {| class="wikitable" !|return !|function !|description |- |Vec2 |getTextSize() | |- | |setAnchor(Anchor anchor) | |- | |setAlignment(Alignment alignment) |Set text height in pixel. |- | |Te...") |
(No difference)
|
Latest revision as of 14:17, 5 July 2025
Inheritance
Constructor
| function | description |
|---|---|
| TextNode() |
Functions
| return | function | description |
|---|---|---|
| Vec2 | getTextSize() | |
| setAnchor(Anchor anchor) | ||
| setAlignment(Alignment alignment) | Set text height in pixel. | |
| setTextHeight(float textHeight) | Set text height in pixel. | |
| setParseText(bool parseText) | Set if tags should be parsed example: bold text | |
| setColor(Vec3 color) | set text color | |
| setColor(Vec4 color) | set text color | |
| setText(string text) | ||
| setText(Text text) | ||
| setSize(Vec2 nodeSize) | Text areas containment size in pixel. | |
| setSize(Vec2i nodeSize) | Text areas containment size in pixel. |