Mention `toggled` signal for pressed state in BaseButton documentation

This closes #40455.
This commit is contained in:
Hugo Locurcio 2020-07-17 00:01:24 +02:00
parent 9e34ba4855
commit 43dae28e9d
No known key found for this signature in database
GPG Key ID: 39E8F8BE30B0A49C
1 changed files with 2 additions and 1 deletions

View File

@ -13,7 +13,7 @@
<return type="void">
</return>
<description>
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.
</description>
</method>
<method name="_toggled" qualifiers="virtual">
@ -89,6 +89,7 @@
<signal name="pressed">
<description>
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.
</description>
</signal>
<signal name="toggled">