Merge pull request #99020 from Mickeon/documentation-example-pruning-2

Clean up more `[b]Example:[/b]` lines from the class reference
This commit is contained in:
Thaddeus Crews
2024-11-12 09:28:02 -06:00
29 changed files with 60 additions and 65 deletions

View File

@ -225,8 +225,8 @@
<return type="void" />
<param index="0" name="effect" type="Variant" />
<description>
Installs a custom effect. This can also be done in the RichTextLabel inspector using the [member custom_effects] property. [param effect] should be a valid [RichTextEffect].
Example RichTextEffect:
Installs a custom effect. This can also be done in the Inspector through the [member custom_effects] property. [param effect] should be a valid [RichTextEffect].
[b]Example:[/b] With the following script extending from [RichTextEffect]:
[codeblock]
# effect.gd
class_name MyCustomEffect
@ -236,7 +236,7 @@
# ...
[/codeblock]
Registering the above effect in RichTextLabel from script:
The above effect can be installed in [RichTextLabel] from a script:
[codeblock]
# rich_text_label.gd
extends RichTextLabel