diff options
Diffstat (limited to 'client/gui/overlays')
-rw-r--r-- | client/gui/overlays/popup_message/popup_message.gd | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/client/gui/overlays/popup_message/popup_message.gd b/client/gui/overlays/popup_message/popup_message.gd index d577465b..6a3d8273 100644 --- a/client/gui/overlays/popup_message/popup_message.gd +++ b/client/gui/overlays/popup_message/popup_message.gd @@ -131,26 +131,26 @@ func stop_game_hints(): func _input(_event): if Input.is_action_just_pressed("boost"): - Global.set_hint("has_boosted", true) + Profile.set_hint("has_boosted", true) if any_action_just_pressed(["forwards", "backwards", "left", "right"]): - Global.set_hint("has_moved", true) + Profile.set_hint("has_moved", true) if any_action_just_pressed(["rotate_left", "rotate_right", "rotate_up", "rotate_down"]): - if not Global.get_hint("has_reset"): + if not Profile.get_hint("has_reset"): reset_timer.start() - Global.set_hint("has_rotated", true) + Profile.set_hint("has_rotated", true) if any_action_just_pressed(["zoom_in", "zoom_out"]): - Global.set_hint("has_zoomed", true) + Profile.set_hint("has_zoomed", true) if Input.is_action_just_pressed("interact_left") or Input.is_action_just_pressed("interact_right"): - Global.set_hint("has_interacted", true) + Profile.set_hint("has_interacted", true) if Input.is_action_just_pressed("reset"): - Global.set_hint("has_reset", true) + Profile.set_hint("has_reset", true) func _on_boost_timeout(): - if not Global.get_hint("has_boosted") and not Global.using_touch: + if not Profile.get_hint("has_boosted") and not Global.using_touch: 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: + if not Profile.get_hint("has_moved") and not Global.using_touch: display_hint_msg(tr("c.hint.movement").format([", ".join( [ display_keybind("forwards"), @@ -161,15 +161,15 @@ func _on_move_timeout(): )])) func _on_interact_timeout(): - if not Global.get_hint("has_interacted") and not Global.using_touch: + if not Profile.get_hint("has_interacted") and not Global.using_touch: 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: + if not Profile.get_hint("has_reset") and not Global.using_touch: 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: + if not Profile.get_hint("has_zoomed") and not Global.using_touch: display_hint_msg(tr("c.hint.zoom_camera").format([", ".join( [ display_keybind("zoom_in"), @@ -203,7 +203,7 @@ func any_action_just_pressed(actions: Array) -> bool: return false func _on_rotate_camera_timeout(): - if not Global.get_hint("has_rotated") and not Global.using_touch: + if not Profile.get_hint("has_rotated") and not Global.using_touch: display_hint_msg(tr("c.hint.rotate").format([", ".join( [ display_keybind("rotate_up"), @@ -214,13 +214,13 @@ func _on_rotate_camera_timeout(): )])) func _on_join_while_running_timeout(): - if not game.join_state == Game.JoinState.JOINED and not Global.get_hint("has_seen_join_while_running"): - Global.set_hint("has_seen_join_while_running", true) + if not game.join_state == Game.JoinState.JOINED and not Profile.get_hint("has_seen_join_while_running"): + Profile.set_hint("has_seen_join_while_running", true) 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: - Global.set_hint("has_seen_performance", true) + if not Profile.get_hint("has_seen_performance") and Engine.get_frames_per_second() < DisplayServer.screen_get_refresh_rate() * 0.75: + Profile.set_hint("has_seen_performance", true) display_hint_msg(tr("c.hint.framerate_low")) class PositionalMessage: |