diff options
-rw-r--r-- | client/global.gd | 1 | ||||
-rw-r--r-- | client/menu/popup_message.gd | 4 | ||||
-rw-r--r-- | client/menu/popup_message.tscn | 5 |
3 files changed, 10 insertions, 0 deletions
diff --git a/client/global.gd b/client/global.gd index cd1b5c8b..b719890c 100644 --- a/client/global.gd +++ b/client/global.gd @@ -27,6 +27,7 @@ var default_profile := { "last_server_url": "", "hint_move_seen": false, "hint_boost_seen": false, + "hint_interact_seen": false } var languages := [tr("System default"), "en", "de"] var using_joypad := false 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"] |