summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortpart <tpart120@proton.me>2024-07-12 00:57:56 +0200
committertpart <tpart120@proton.me>2024-07-12 00:57:56 +0200
commit41f8c3c467bfeb51ec34c76b16c78145064e0af6 (patch)
tree44be40eddb278353305ca29abf2ab60f0b385481
parenta9ee32b2e2126c622b23ae83329836faaacc7368 (diff)
downloadhurrycurry-41f8c3c467bfeb51ec34c76b16c78145064e0af6.tar
hurrycurry-41f8c3c467bfeb51ec34c76b16c78145064e0af6.tar.bz2
hurrycurry-41f8c3c467bfeb51ec34c76b16c78145064e0af6.tar.zst
Add interact hint
-rw-r--r--client/global.gd1
-rw-r--r--client/menu/popup_message.gd4
-rw-r--r--client/menu/popup_message.tscn5
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"]