From e714f5e56e1c581e448ee683b2f1a48e9edd0e05 Mon Sep 17 00:00:00 2001 From: kobewi Date: Sat, 5 Feb 2022 02:11:32 +0100 Subject: Rework TextureButton stretch --- doc/classes/TextureButton.xml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'doc/classes/TextureButton.xml') 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 @@ https://godotengine.org/asset-library/asset/676 - - 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. - If [code]true[/code], texture is flipped horizontally. If [code]true[/code], texture is flipped vertically. - - 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. + + 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. + + + Controls the texture's behavior when you resize the node's bounding rectangle. See the [enum StretchMode] constants for available options. 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. -- cgit v1.2.3