From aeac0cd6d497e7b0e028cf03a1570cdd6932b65b Mon Sep 17 00:00:00 2001 From: tpart Date: Tue, 30 Sep 2025 14:41:59 +0200 Subject: Disabling tutorial resets controls explanation --- client/system/settings.gd | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'client') diff --git a/client/system/settings.gd b/client/system/settings.gd index e7f3e2f7..da93890c 100644 --- a/client/system/settings.gd +++ b/client/system/settings.gd @@ -149,6 +149,7 @@ static func launch_setup(): static var change_hooks = { "input": { "static": h_input }, + "gameplay.tutorial_disabled": { "static": h_tutorial_disabled }, "graphics.aa": { "static": h_aa }, "graphics.taa": { "static": h_taa }, "graphics.fullscreen": { "static": h_fullscreen }, @@ -195,3 +196,9 @@ static func h_fullscreen(mode: String): "always": DisplayServer.window_set_mode(DisplayServer.WINDOW_MODE_FULLSCREEN) "never": if DisplayServer.window_get_mode() == DisplayServer.WINDOW_MODE_FULLSCREEN: DisplayServer.window_set_mode(DisplayServer.WINDOW_MODE_WINDOWED) + +static func h_tutorial_disabled(val: bool): + if not val: + for input_method: String in ["keyboard", "joypad"]: + for hand_count: String in ["one", "two"]: + Profile.write("controls_%s_%s_handed_explained" % [input_method, hand_count], false) \ No newline at end of file -- cgit v1.2.3-70-g09d2