From 43dae28e9db1d3e6355ee1105075dd4a7d963dd2 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Fri, 17 Jul 2020 00:01:24 +0200 Subject: Mention `toggled` signal for pressed state in BaseButton documentation This closes #40455. --- doc/classes/BaseButton.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/classes/BaseButton.xml b/doc/classes/BaseButton.xml index 5e908b0e53..3812b45b13 100644 --- a/doc/classes/BaseButton.xml +++ b/doc/classes/BaseButton.xml @@ -13,7 +13,7 @@ - Called when the button is pressed. + Called when the button is pressed. If you need to know the button's pressed state (and [member toggle_mode] is active), use [method _toggled] instead. @@ -89,6 +89,7 @@ Emitted when the button is toggled or pressed. This is on [signal button_down] if [member action_mode] is [constant ACTION_MODE_BUTTON_PRESS] and on [signal button_up] otherwise. + If you need to know the button's pressed state (and [member toggle_mode] is active), use [signal toggled] instead. -- cgit v1.2.3