diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-02-05 10:10:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-05 10:10:38 +0100 |
commit | c5a832e0873e5d6c722f7fddb3fc206d00d9c7f1 (patch) | |
tree | d5dcc8a0ed9a5d75568e92a82cad76fc764abc9c /doc/classes/TextureButton.xml | |
parent | 8b5d6d4cb28789e7ebacdf5adee9ec77bd34f3e8 (diff) | |
parent | e714f5e56e1c581e448ee683b2f1a48e9edd0e05 (diff) |
Merge pull request #57648 from KoBeWi/shrunken_tb
Rework TextureButton stretch
Diffstat (limited to 'doc/classes/TextureButton.xml')
-rw-r--r-- | doc/classes/TextureButton.xml | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/classes/TextureButton.xml b/doc/classes/TextureButton.xml index 476ab2d1bf..5f081b95f5 100644 --- a/doc/classes/TextureButton.xml +++ b/doc/classes/TextureButton.xml @@ -12,17 +12,17 @@ <link title="3D Voxel Demo">https://godotengine.org/asset-library/asset/676</link> </tutorials> <members> - <member name="expand" type="bool" setter="set_expand" getter="get_expand" default="false"> - If [code]true[/code], the texture stretches to the edges of the node's bounding rectangle using the [member stretch_mode]. If [code]false[/code], the texture will not scale with the node. - </member> <member name="flip_h" type="bool" setter="set_flip_h" getter="is_flipped_h" default="false"> If [code]true[/code], texture is flipped horizontally. </member> <member name="flip_v" type="bool" setter="set_flip_v" getter="is_flipped_v" default="false"> If [code]true[/code], texture is flipped vertically. </member> - <member name="stretch_mode" type="int" setter="set_stretch_mode" getter="get_stretch_mode" enum="TextureButton.StretchMode" default="0"> - Controls the texture's behavior when you resize the node's bounding rectangle, [b]only if[/b] [member expand] is [code]true[/code]. Set it to one of the [enum StretchMode] constants. See the constants to learn more. + <member name="ignore_texture_size" type="bool" setter="set_ignore_texture_size" getter="get_ignore_texture_size" default="false"> + If [code]true[/code], the size of the texture won't be considered for minimum size calculation, so the [TextureButton] can be shrunk down past the texture size. + </member> + <member name="stretch_mode" type="int" setter="set_stretch_mode" getter="get_stretch_mode" enum="TextureButton.StretchMode" default="2"> + Controls the texture's behavior when you resize the node's bounding rectangle. See the [enum StretchMode] constants for available options. </member> <member name="texture_click_mask" type="BitMap" setter="set_click_mask" getter="get_click_mask"> Pure black and white [BitMap] image to use for click detection. On the mask, white pixels represent the button's clickable area. Use it to create buttons with curved shapes. |