diff options
Diffstat (limited to 'client')
-rw-r--r-- | client/settings.gd | 9 |
1 files changed, 5 insertions, 4 deletions
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) |