diff options
author | Petra Baranski <info@progsource.de> | 2022-10-10 16:55:28 +0200 |
---|---|---|
committer | Petra Baranski <info@progsource.de> | 2022-10-11 13:04:15 +0200 |
commit | 546e017613416bbf4b538b740583f21f6fd8213d (patch) | |
tree | 384d26202446c75a0bcd1bb9bffb1fc55f91b0cd /doc | |
parent | 77f4670d001b12a5c7e1f50c100301c8fb1b4d1e (diff) |
Add Spritesheet support to RichTextLabel BBCode
BBCode: [img region=0,0,16,16]res://icon.svg[/img]
Diffstat (limited to 'doc')
-rw-r--r-- | doc/classes/RichTextLabel.xml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/classes/RichTextLabel.xml b/doc/classes/RichTextLabel.xml index f4cbf4c442..b5a917b2bb 100644 --- a/doc/classes/RichTextLabel.xml +++ b/doc/classes/RichTextLabel.xml @@ -23,9 +23,11 @@ <param index="2" name="height" type="int" default="0" /> <param index="3" name="color" type="Color" default="Color(1, 1, 1, 1)" /> <param index="4" name="inline_align" type="int" enum="InlineAlignment" default="5" /> + <param index="5" name="region" type="Rect2" default="Rect2(0, 0, 0, 0)" /> <description> - Adds an image's opening and closing tags to the tag stack, optionally providing a [param width] and [param height] to resize the image and a [param color] to tint the image. + Adds an image's opening and closing tags to the tag stack, optionally providing a [param width] and [param height] to resize the image, a [param color] to tint the image and a [param region] to only use parts of the image. If [param width] or [param height] is set to 0, the image size will be adjusted in order to keep the original aspect ratio. + If [param width] and [param height] are not set, but [param region] is, the region's rect will be used. </description> </method> <method name="add_text"> |