summaryrefslogtreecommitdiff
path: root/doc/classes
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-07-21 21:05:58 +0200
committerGitHub <noreply@github.com>2020-07-21 21:05:58 +0200
commite73de413dbcb1dcde0eab61825570a9c11b1550f (patch)
tree8883f9aed8bb3dc9075cc949d82ba0d32c7f43d7 /doc/classes
parent41d6c965907730debb2bd6dcc7ccbe6f1ba5d015 (diff)
parent43dae28e9db1d3e6355ee1105075dd4a7d963dd2 (diff)
Merge pull request #40457 from Calinou/doc-basebutton-pressed-toggled
Mention `toggled` signal for pressed state in BaseButton documentation
Diffstat (limited to 'doc/classes')
-rw-r--r--doc/classes/BaseButton.xml3
1 files changed, 2 insertions, 1 deletions
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 @@
<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">