From 41f8c3c467bfeb51ec34c76b16c78145064e0af6 Mon Sep 17 00:00:00 2001 From: tpart Date: Fri, 12 Jul 2024 00:57:56 +0200 Subject: Add interact hint --- client/menu/popup_message.gd | 4 ++++ client/menu/popup_message.tscn | 5 +++++ 2 files changed, 9 insertions(+) (limited to 'client/menu') diff --git a/client/menu/popup_message.gd b/client/menu/popup_message.gd index 67b4d6ab..b4afbf3c 100644 --- a/client/menu/popup_message.gd +++ b/client/menu/popup_message.gd @@ -63,3 +63,7 @@ func _on_boost_timeout(): func _on_move_timeout(): if not Global.get_profile("hint_move_seen") and not Global.get_setting("touch_controls"): display_hint_msg(tr("Use WASD/Controller left stick to move")) + +func _on_interact_timeout(): + if not Global.get_profile("hint_interact_seen") and not Global.get_setting("touch_controls"): + display_hint_msg(tr("Press SPACE/Controller A to pick up items and interact with tools")) diff --git a/client/menu/popup_message.tscn b/client/menu/popup_message.tscn index 32f54b1d..3eccfc2e 100644 --- a/client/menu/popup_message.tscn +++ b/client/menu/popup_message.tscn @@ -112,7 +112,12 @@ one_shot = true wait_time = 90.0 one_shot = true +[node name="Interact" type="Timer" parent="HintTimers"] +wait_time = 20.0 +one_shot = true + [connection signal="timeout" from="ServerTimer" to="." method="_on_server_timer_timeout"] [connection signal="timeout" from="HintTimer" to="." method="_on_hint_timer_timeout"] [connection signal="timeout" from="HintTimers/Move" to="." method="_on_move_timeout"] [connection signal="timeout" from="HintTimers/Boost" to="." method="_on_boost_timeout"] +[connection signal="timeout" from="HintTimers/Interact" to="." method="_on_interact_timeout"] -- cgit v1.2.3-70-g09d2