Ver Fonte

Merge pull request #46028 from Beuc/patch-passby

doc: explain TouchScreenButton passby mode
Rémi Verschelde há 4 anos atrás
pai
commit
e13312db79
1 ficheiros alterados com 2 adições e 1 exclusões
  1. 2 1
      doc/classes/TouchScreenButton.xml

+ 2 - 1
doc/classes/TouchScreenButton.xml

@@ -30,7 +30,8 @@
 			The button's texture for the normal state.
 		</member>
 		<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 name="pressed" type="Texture2D" setter="set_texture_pressed" getter="get_texture_pressed">
 			The button's texture for the pressed state.