Mention `toggled` signal for pressed state in BaseButton documentation
This closes #40455.
(cherry picked from commit 43dae28e9d
)
This commit is contained in:
parent
ca4fe82a7f
commit
7e9a51cdd5
|
@ -13,7 +13,7 @@
|
||||||
<return type="void">
|
<return type="void">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<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>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="_toggled" qualifiers="virtual">
|
<method name="_toggled" qualifiers="virtual">
|
||||||
|
@ -89,6 +89,7 @@
|
||||||
<signal name="pressed">
|
<signal name="pressed">
|
||||||
<description>
|
<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.
|
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>
|
</description>
|
||||||
</signal>
|
</signal>
|
||||||
<signal name="toggled">
|
<signal name="toggled">
|
||||||
|
|
Loading…
Reference in New Issue