aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortpart <tpart120@proton.me>2024-07-12 11:07:13 +0200
committertpart <tpart120@proton.me>2024-07-12 11:07:13 +0200
commit87c8fbca2f9162d0cce78b22c622c71609d133ea (patch)
tree7865671945a02f1e96aeba1c938065a92a66fc4d
parent0a3c0c62b90474849e8407fd95a1e316b17f2900 (diff)
downloadhurrycurry-87c8fbca2f9162d0cce78b22c622c71609d133ea.tar
hurrycurry-87c8fbca2f9162d0cce78b22c622c71609d133ea.tar.bz2
hurrycurry-87c8fbca2f9162d0cce78b22c622c71609d133ea.tar.zst
Add username tag hint
-rw-r--r--client/global.gd1
-rw-r--r--client/menu/popup_message.gd5
-rw-r--r--client/menu/popup_message.tscn5
3 files changed, 10 insertions, 1 deletions
diff --git a/client/global.gd b/client/global.gd
index 1683f9f9..797152a3 100644
--- a/client/global.gd
+++ b/client/global.gd
@@ -26,6 +26,7 @@ var default_profile := {
"character": 0,
"last_server_url": "",
# HINTS:
+ "has_seen_nametags": false,
"has_moved": false,
"has_boosted": false,
"has_interacted": false,
diff --git a/client/menu/popup_message.gd b/client/menu/popup_message.gd
index 83edba1e..ab4f5dce 100644
--- a/client/menu/popup_message.gd
+++ b/client/menu/popup_message.gd
@@ -139,4 +139,7 @@ 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")))
-
+func _on_nametags_timeout():
+ if not Global.get_setting("has_seen_nametags"):
+ Global.set_setting("has_seen_nametags", true)
+ display_hint_msg(tr("Username tags can be enabled in the settings"))
diff --git a/client/menu/popup_message.tscn b/client/menu/popup_message.tscn
index f4291c97..79beef38 100644
--- a/client/menu/popup_message.tscn
+++ b/client/menu/popup_message.tscn
@@ -124,6 +124,10 @@ one_shot = true
wait_time = 135.0
one_shot = true
+[node name="Nametags" type="Timer" parent="AutoHintTimers"]
+wait_time = 160.0
+one_shot = true
+
[node name="Reset" type="Timer" parent="."]
wait_time = 10.0
one_shot = true
@@ -135,4 +139,5 @@ one_shot = true
[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="AutoHintTimers/Zoom" to="." method="_on_zoom_timeout"]
+[connection signal="timeout" from="AutoHintTimers/Nametags" to="." method="_on_nametags_timeout"]
[connection signal="timeout" from="Reset" to="." method="_on_reset_timeout"]