Merge pull request #25453 from nekomatata/button-keep-pressed-option

Add option to keep button pressed when moving cursor outside while pressing
This commit is contained in:
Rémi Verschelde
2019-05-01 10:30:40 +02:00
committed by GitHub
3 changed files with 22 additions and 1 deletions

View File

@ -69,6 +69,9 @@
<member name="toggle_mode" type="bool" setter="set_toggle_mode" getter="is_toggle_mode">
If [code]true[/code], the button is in toggle mode. Makes the button flip state between pressed and unpressed each time its area is clicked.
</member>
<member name="keep_pressed_outside" type="bool" setter="set_keep_pressed_outside" getter="is_keep_pressed_outside">
If [code]true[/code], the button stays pressed when moving the cursor outside the button while pressing it. Default value: [code]false[/code].
</member>
</members>
<signals>
<signal name="button_down">