aboutsummaryrefslogtreecommitdiff
path: root/client/system
diff options
context:
space:
mode:
Diffstat (limited to 'client/system')
-rw-r--r--client/system/settings.gd7
1 files changed, 7 insertions, 0 deletions
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