summaryrefslogtreecommitdiffstats
path: root/doc/classes/RichTextEffect.xml
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2021-03-05 22:36:05 +0100
committerGitHub <noreply@github.com>2021-03-05 22:36:05 +0100
commitaaeb07d50fdf9a19beadd8329d71dbae8ea75e40 (patch)
tree9455db16898bef6099c223b0a90e1d9b8f19165c /doc/classes/RichTextEffect.xml
parentf9dad47478bf3a089b34f2e099164a5d4b388ef5 (diff)
parentbae843a1c9dadad2b40e17f1e44e13eb01d65f97 (diff)
downloadredot-engine-aaeb07d50fdf9a19beadd8329d71dbae8ea75e40.tar.gz
Merge pull request #43929 from HaSa1002/docs-lang-6
Docs: Port Code Examples to C# (R, S, T, U)
Diffstat (limited to 'doc/classes/RichTextEffect.xml')
-rw-r--r--doc/classes/RichTextEffect.xml10
1 files changed, 8 insertions, 2 deletions
diff --git a/doc/classes/RichTextEffect.xml b/doc/classes/RichTextEffect.xml
index 726b26fbc7..edab35f162 100644
--- a/doc/classes/RichTextEffect.xml
+++ b/doc/classes/RichTextEffect.xml
@@ -6,10 +6,16 @@
<description>
A custom effect for use with [RichTextLabel].
[b]Note:[/b] For a [RichTextEffect] to be usable, a BBCode tag must be defined as a member variable called [code]bbcode[/code] in the script.
- [codeblock]
+ [codeblocks]
+ [gdscript]
# The RichTextEffect will be usable like this: `[example]Some text[/example]`
var bbcode = "example"
- [/codeblock]
+ [/gdscript]
+ [csharp]
+ // The RichTextEffect will be usable like this: `[example]Some text[/example]`
+ public string bbcode = "example";
+ [/csharp]
+ [/codeblocks]
[b]Note:[/b] As soon as a [RichTextLabel] contains at least one [RichTextEffect], it will continuously process the effect unless the project is paused. This may impact battery life negatively.
</description>
<tutorials>