Merge pull request #25624 from nekomatata/texture-rect-flip

Add ability to flip TextureRect horizontally or vertically
This commit is contained in:
Rémi Verschelde
2019-04-06 13:15:01 +02:00
committed by GitHub
4 changed files with 74 additions and 21 deletions

View File

@@ -22,6 +22,12 @@
<member name="texture" type="Texture" setter="set_texture" getter="get_texture">
The node's [Texture] resource.
</member>
<member name="flip_h" type="bool" setter="set_flip_h" getter="is_flipped_h">
If [code]true[/code], texture is flipped horizontally. Default value: [code]false[/code].
</member>
<member name="flip_v" type="bool" setter="set_flip_v" getter="is_flipped_v">
If [code]true[/code], texture is flipped vertically. Default value: [code]false[/code].
</member>
</members>
<constants>
<constant name="STRETCH_SCALE_ON_EXPAND" value="0" enum="StretchMode">