|
@@ -11,7 +11,7 @@ Defold supports a specific type of GUI node that allows text to be rendered in a
|
|
|
|
|
|
The fonts that you wish to use in GUI text nodes must be added to the GUI component. Either right-click the *Fonts* folder, use the <kbd>GUI</kbd> top menu or press the corresponding keyboard shortcut.
|
|
The fonts that you wish to use in GUI text nodes must be added to the GUI component. Either right-click the *Fonts* folder, use the <kbd>GUI</kbd> top menu or press the corresponding keyboard shortcut.
|
|
|
|
|
|
-
|
|
|
|
|
|
+{srcset="images/gui-text/[email protected] 2x"}
|
|
|
|
|
|
Text nodes have a set of special properties:
|
|
Text nodes have a set of special properties:
|
|
|
|
|
|
@@ -37,7 +37,7 @@ By setting the node pivot you can change the alignment mode for the text.
|
|
*Right*
|
|
*Right*
|
|
: If the pivot is set to any of the `East` modes, the text is right-aligned.
|
|
: If the pivot is set to any of the `East` modes, the text is right-aligned.
|
|
|
|
|
|
-
|
|
|
|
|
|
+{srcset="images/gui-text/[email protected] 2x"}
|
|
|
|
|
|
## Modifying text nodes in runtime
|
|
## Modifying text nodes in runtime
|
|
|
|
|
|
@@ -55,7 +55,4 @@ function on_message(self, message_id, message, sender)
|
|
end
|
|
end
|
|
end
|
|
end
|
|
```
|
|
```
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
|
|
|