diff options
| author | tpart <tpart120@proton.me> | 2024-07-12 01:31:32 +0200 | 
|---|---|---|
| committer | tpart <tpart120@proton.me> | 2024-07-12 01:31:32 +0200 | 
| commit | 60e825cbbaa56493d3a216efbda0e4e987fe17e8 (patch) | |
| tree | 0cfc848982dd505ce676735ffa9c223afa29707a /client | |
| parent | 0f0c7713218dc9fc8beafdbe14785c11a0f61ea8 (diff) | |
| download | hurrycurry-60e825cbbaa56493d3a216efbda0e4e987fe17e8.tar hurrycurry-60e825cbbaa56493d3a216efbda0e4e987fe17e8.tar.bz2 hurrycurry-60e825cbbaa56493d3a216efbda0e4e987fe17e8.tar.zst | |
Add rotate camera hint
Diffstat (limited to 'client')
| -rw-r--r-- | client/menu/popup_message.gd | 7 | ||||
| -rw-r--r-- | client/menu/popup_message.tscn | 5 | 
2 files changed, 11 insertions, 1 deletions
| diff --git a/client/menu/popup_message.gd b/client/menu/popup_message.gd index e70e1fef..d37343c3 100644 --- a/client/menu/popup_message.gd +++ b/client/menu/popup_message.gd @@ -84,9 +84,11 @@ func _on_reset_timeout():  	if not Global.get_profile("has_reset") and not Global.get_setting("touch_controls"):  		display_hint_msg(tr("Press %s to reset the camera view") % display_keybind("R", "Y")) -func display_keybind(keyboard: String, joypad: String) -> String: +func display_keybind(keyboard: String, joypad: String, touch = null) -> String:  	if Global.using_joypad:  		return joypad + " (Joypad)" +	if touch != null: +		return touch  	return keyboard  func any_action_just_pressed(actions: Array) -> bool: @@ -95,3 +97,6 @@ func any_action_just_pressed(actions: Array) -> bool:  			return true  	return false +func _on_rotate_camera_timeout(): +	if not Global.get_setting("has_rotated") and not Global.get_setting("touch_controls"): +		display_hint_msg(tr("Use %s to reset the camera view") % display_keybind(tr("arrow keys"), tr("right stick"))) diff --git a/client/menu/popup_message.tscn b/client/menu/popup_message.tscn index 37133847..0f1cdffa 100644 --- a/client/menu/popup_message.tscn +++ b/client/menu/popup_message.tscn @@ -116,6 +116,10 @@ one_shot = true  wait_time = 20.0  one_shot = true +[node name="RotateCamera" type="Timer" parent="AutoHintTimers"] +wait_time = 120.0 +one_shot = true +  [node name="Reset" type="Timer" parent="."]  wait_time = 10.0  one_shot = true @@ -125,4 +129,5 @@ one_shot = true  [connection signal="timeout" from="AutoHintTimers/Move" to="." method="_on_move_timeout"]  [connection signal="timeout" from="AutoHintTimers/Boost" to="." method="_on_boost_timeout"]  [connection signal="timeout" from="AutoHintTimers/Interact" to="." method="_on_interact_timeout"] +[connection signal="timeout" from="AutoHintTimers/RotateCamera" to="." method="_on_rotate_camera_timeout"]  [connection signal="timeout" from="Reset" to="." method="_on_reset_timeout"] | 
