aboutsummaryrefslogtreecommitdiff
path: root/client/menu/popup_message/popup_message.gd
diff options
context:
space:
mode:
Diffstat (limited to 'client/menu/popup_message/popup_message.gd')
-rw-r--r--client/menu/popup_message/popup_message.gd16
1 files changed, 8 insertions, 8 deletions
diff --git a/client/menu/popup_message/popup_message.gd b/client/menu/popup_message/popup_message.gd
index ead11977..6413a887 100644
--- a/client/menu/popup_message/popup_message.gd
+++ b/client/menu/popup_message/popup_message.gd
@@ -153,35 +153,35 @@ func _input(_event):
func _on_boost_timeout():
if not Global.get_hint("has_boosted") and not Global.using_touch:
- display_hint_msg(tr("c.hint.boost") % display_keybind("boost"))
+ display_hint_msg(tr("c.hint.boost").format([display_keybind("boost")]))
func _on_move_timeout():
if not Global.get_hint("has_moved") and not Global.using_touch:
- display_hint_msg(tr("c.hint.movement") % ", ".join(
+ display_hint_msg(tr("c.hint.movement").format([", ".join(
[
display_keybind("forwards"),
display_keybind("left"),
display_keybind("backwards"),
display_keybind("right")
]
- ))
+ )]))
func _on_interact_timeout():
if not Global.get_hint("has_interacted") and not Global.using_touch:
- display_hint_msg(tr("c.hint.interact") % display_keybind("interact"))
+ display_hint_msg(tr("c.hint.interact").format([display_keybind("interact")]))
func _on_reset_timeout():
if not Global.get_hint("has_reset") and not Global.using_touch:
- display_hint_msg(tr("c.hint.reset_camera") % display_keybind("reset"))
+ display_hint_msg(tr("c.hint.reset_camera").format([display_keybind("reset")]))
func _on_zoom_timeout():
if not Global.get_hint("has_zoomed") and not Global.using_touch:
- display_hint_msg(tr("c.hint.zoom_camera") % ", ".join(
+ display_hint_msg(tr("c.hint.zoom_camera").format([", ".join(
[
display_keybind("zoom_in"),
display_keybind("zoom_out")
]
- ))
+ )]))
func display_keybind(action_name: String) -> String:
var events := InputManager.get_events(action_name)
@@ -227,7 +227,7 @@ func _on_nametags_timeout():
func _on_join_while_running_timeout():
if not game.is_joined and not Global.get_hint("has_seen_join_while_running"):
Global.set_hint("has_seen_join_while_running", true)
- display_hint_msg(tr("c.hint.join_while_running") % display_keybind("menu"))
+ display_hint_msg(tr("c.hint.join_while_running").format([display_keybind("menu")]))
func _on_performance_timeout() -> void:
if not Global.get_hint("has_seen_performance") and Engine.get_frames_per_second() < DisplayServer.screen_get_refresh_rate() * 0.75: