diff options
author | tpart <tpart120@proton.me> | 2025-06-16 21:23:55 +0200 |
---|---|---|
committer | tpart <tpart120@proton.me> | 2025-06-16 21:24:00 +0200 |
commit | 06732a583a5dd1c4309d1eaecb31b58dcc618fca (patch) | |
tree | af0e8cb6d31c4f03c53dc677c93061a1b2e0fd96 /client/player/onscreen_controls/controls.tscn | |
parent | d07c805a41a7c83480833dea336ef9b6c88d0e47 (diff) | |
download | hurrycurry-06732a583a5dd1c4309d1eaecb31b58dcc618fca.tar hurrycurry-06732a583a5dd1c4309d1eaecb31b58dcc618fca.tar.bz2 hurrycurry-06732a583a5dd1c4309d1eaecb31b58dcc618fca.tar.zst |
Fix on screen control setting not working; Add support for two-handed on screen buttons. Fixes #238
Diffstat (limited to 'client/player/onscreen_controls/controls.tscn')
-rw-r--r-- | client/player/onscreen_controls/controls.tscn | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/client/player/onscreen_controls/controls.tscn b/client/player/onscreen_controls/controls.tscn index 2966f0d4..25dfdad9 100644 --- a/client/player/onscreen_controls/controls.tscn +++ b/client/player/onscreen_controls/controls.tscn @@ -31,7 +31,12 @@ position = Vector2(150, 25) scale = Vector2(0.5, 0.5) texture_normal = ExtResource("2_i4ife") -[node name="Interact" type="TouchScreenButton" parent="Buttons"] +[node name="InteractL" type="TouchScreenButton" parent="Buttons"] +position = Vector2(25, 150) +scale = Vector2(0.5, 0.5) +texture_normal = ExtResource("3_37rne") + +[node name="InteractR" type="TouchScreenButton" parent="Buttons"] position = Vector2(150, 150) scale = Vector2(0.5, 0.5) texture_normal = ExtResource("3_37rne") @@ -50,7 +55,9 @@ texture_normal = ExtResource("5_4bttq") [connection signal="pressed" from="Buttons/Boost" to="." method="_on_boost_pressed"] [connection signal="released" from="Buttons/Boost" to="." method="_on_boost_released"] -[connection signal="pressed" from="Buttons/Interact" to="." method="_on_interact_pressed"] -[connection signal="released" from="Buttons/Interact" to="." method="_on_interact_released"] +[connection signal="pressed" from="Buttons/InteractL" to="." method="_on_interact_l_pressed"] +[connection signal="released" from="Buttons/InteractL" to="." method="_on_interact_l_released"] +[connection signal="pressed" from="Buttons/InteractR" to="." method="_on_interact_r_pressed"] +[connection signal="released" from="Buttons/InteractR" to="." method="_on_interact_r_released"] [connection signal="pressed" from="Buttons2/Pause" to="." method="_on_pause_pressed"] [connection signal="released" from="Buttons2/Pause" to="." method="_on_pause_released"] |