From 546e017613416bbf4b538b740583f21f6fd8213d Mon Sep 17 00:00:00 2001 From: Petra Baranski Date: Mon, 10 Oct 2022 16:55:28 +0200 Subject: Add Spritesheet support to RichTextLabel BBCode BBCode: [img region=0,0,16,16]res://icon.svg[/img] --- doc/classes/RichTextLabel.xml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'doc') 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 @@ + - 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. -- cgit v1.2.3