Skip to content

Commit

Permalink
Merge pull request #39113 from nekomatata/bbcode-image-color
Browse files Browse the repository at this point in the history
Add color option for img bbcode tag in RichTextLabel to tint images
  • Loading branch information
akien-mga authored Jun 3, 2020
2 parents 7460bc3 + 7b7d4ef commit 901832e
Show file tree
Hide file tree
Showing 3 changed files with 159 additions and 149 deletions.
4 changes: 3 additions & 1 deletion doc/classes/RichTextLabel.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@
</argument>
<argument index="2" name="height" type="int" default="0">
</argument>
<argument index="3" name="color" type="Color" default="Color( 1, 1, 1, 1 )">
</argument>
<description>
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.
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 and a [code]color[/code] to tint 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>
Expand Down
Loading

0 comments on commit 901832e

Please sign in to comment.