summaryrefslogtreecommitdiff
path: root/doc/classes
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-10-22 13:46:11 +0200
committerGitHub <noreply@github.com>2019-10-22 13:46:11 +0200
commitb67537b14b293e67a35ffe1c41e3cc0648076f0c (patch)
tree93151242e09943e4e038864e61c704ba580d1bec /doc/classes
parent10518d5d84d4fba9b697c6380834c78f58e537e3 (diff)
parent9f8ffd414692a731a32d863484f4a2a26742cb4b (diff)
Merge pull request #32864 from nekomatata/rich-text-image-size
Support for resized images in RichTextLabel
Diffstat (limited to 'doc/classes')
-rw-r--r--doc/classes/RichTextLabel.xml7
1 files changed, 6 insertions, 1 deletions
diff --git a/doc/classes/RichTextLabel.xml b/doc/classes/RichTextLabel.xml
index faf2ac1ff9..01c8ee4779 100644
--- a/doc/classes/RichTextLabel.xml
+++ b/doc/classes/RichTextLabel.xml
@@ -16,8 +16,13 @@
</return>
<argument index="0" name="image" type="Texture">
</argument>
+ <argument index="1" name="width" type="int" default="0">
+ </argument>
+ <argument index="2" name="height" type="int" default="0">
+ </argument>
<description>
- Adds an image's opening and closing tags to the tag stack.
+ Adds an image's opening and closing tags to the tag stack, optionally providing a [code]width[/code] and [code]height[/code] to resize the image.
+ If [code]width[/code] or [code]height[/code] is set to 0, the image size will be adjusted in order to keep the original aspect ratio.
</description>
</method>
<method name="add_text">