Support for resized images in RichTextLabel

BBCode Tag:
[img=<width>x<height>]{path}[/img]
This commit is contained in:
PouleyKetchoupp
2019-10-16 12:00:15 +02:00
parent 26bbb26738
commit 9f8ffd4146
3 changed files with 66 additions and 9 deletions
+6 -1
View File
@@ -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">