Merge pull request #46028 from Beuc/patch-passby

doc: explain TouchScreenButton passby mode
This commit is contained in:
Rémi Verschelde 2021-02-15 12:54:25 +01:00 committed by GitHub
commit e13312db79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -30,7 +30,8 @@
The button's texture for the normal state. The button's texture for the normal state.
</member> </member>
<member name="passby_press" type="bool" setter="set_passby_press" getter="is_passby_press_enabled" default="false"> <member name="passby_press" type="bool" setter="set_passby_press" getter="is_passby_press_enabled" default="false">
If [code]true[/code], pass-by presses are enabled. If [code]true[/code], the [signal pressed] and [signal released] signals are emitted whenever a pressed finger goes in and out of the button, even if the pressure started outside the active area of the button.
[b]Note:[/b] this is a "pass-by" (not "bypass") press mode.
</member> </member>
<member name="pressed" type="Texture2D" setter="set_texture_pressed" getter="get_texture_pressed"> <member name="pressed" type="Texture2D" setter="set_texture_pressed" getter="get_texture_pressed">
The button's texture for the pressed state. The button's texture for the pressed state.