summaryrefslogtreecommitdiff
path: root/doc/classes/PropertyTweener.xml
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2022-11-01 15:29:38 +0100
committerRémi Verschelde <rverschelde@gmail.com>2022-11-02 19:01:18 +0100
commitf7c611ab71d292d64a6d4db8db8e36aaf0e2330b (patch)
tree2521af5ba64af64c9f5c667b419ff66fc1324f60 /doc/classes/PropertyTweener.xml
parent39cece382d1c0f9f89eaa469a93497c50b516686 (diff)
Style: Misc docs and comment style and language fixes
- Removed empty paragraphs in XML. - Consistently use bold style for "Example:", on a new line. - Fix usage of `[code]` when hyperlinks could be used (`[member]`, `[constant]`). - Fix invalid usage of backticks for inline code in BBCode. - Fix some American/British English spelling inconsistencies. - Other minor fixes spotted along the way, including typo fixes with codespell. - Don't specify `@GlobalScope` for `enum` and `constant`.
Diffstat (limited to 'doc/classes/PropertyTweener.xml')
-rw-r--r--doc/classes/PropertyTweener.xml6
1 files changed, 4 insertions, 2 deletions
diff --git a/doc/classes/PropertyTweener.xml b/doc/classes/PropertyTweener.xml
index 78ead65cdd..61e8357809 100644
--- a/doc/classes/PropertyTweener.xml
+++ b/doc/classes/PropertyTweener.xml
@@ -13,7 +13,8 @@
<method name="as_relative">
<return type="PropertyTweener" />
<description>
- When called, the final value will be used as a relative value instead. Example:
+ When called, the final value will be used as a relative value instead.
+ [b]Example:[/b]
[codeblock]
var tween = get_tree().create_tween()
tween.tween_property(self, "position", Vector2.RIGHT * 100, 1).as_relative() #the node will move by 100 pixels to the right
@@ -24,7 +25,8 @@
<return type="PropertyTweener" />
<param index="0" name="value" type="Variant" />
<description>
- Sets a custom initial value to the [PropertyTweener]. Example:
+ Sets a custom initial value to the [PropertyTweener].
+ [b]Example:[/b]
[codeblock]
var tween = get_tree().create_tween()
tween.tween_property(self, "position", Vector2(200, 100), 1).from(Vector2(100, 100)) #this will move the node from position (100, 100) to (200, 100)