From f1ffe3f2e0e22dac40c88c8f13f1ffa8b2955743 Mon Sep 17 00:00:00 2001 From: tpart Date: Tue, 17 Sep 2024 16:12:53 +0200 Subject: Partially fix tutorial started setting (#127) --- client/settings.gd | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'client') diff --git a/client/settings.gd b/client/settings.gd index afc05399..8c960621 100644 --- a/client/settings.gd +++ b/client/settings.gd @@ -90,6 +90,7 @@ static func get_category_dict(prefix: String): static var change_hooks_display = {} static var change_hooks_apply = { "input": h_input, + "gameplay.tutorial_started": h_tutorial_started, "graphics.aa": h_aa, "graphics.taa": h_taa, "graphics.fullscreen": h_fullscreen, @@ -160,7 +161,7 @@ static func h_fullscreen(mode: String): static func h_input(): InputManager.apply_input_map(Settings.get_category_dict("input")) -# TODO whatever this does -# if not get_setting("tutorial_started"): -# for k in profile["hints"].keys(): -# set_hint(k, false) +static func h_tutorial_started(started: bool): + if not started: + for k in Global.profile["hints"].keys(): + Global.set_hint(k, false) -- cgit v1.2.3-70-g09d2