diff options
author | PouleyKetchoupp <pouleyketchoup@gmail.com> | 2019-10-16 12:00:15 +0200 |
---|---|---|
committer | PouleyKetchoupp <pouleyketchoup@gmail.com> | 2019-10-16 12:00:15 +0200 |
commit | 9f8ffd414692a731a32d863484f4a2a26742cb4b (patch) | |
tree | 97f500013b33852972abf19ee9340658bfad58c9 /doc | |
parent | 26bbb26738ec94d2f74ad866b79e5f44ca62ca75 (diff) |
Support for resized images in RichTextLabel
BBCode Tag:
[img=<width>x<height>]{path}[/img]
Diffstat (limited to 'doc')
-rw-r--r-- | doc/classes/RichTextLabel.xml | 7 |
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"> |