diff options
author | tpart <tpart120@proton.me> | 2025-09-30 14:41:59 +0200 |
---|---|---|
committer | tpart <tpart120@proton.me> | 2025-09-30 14:42:03 +0200 |
commit | aeac0cd6d497e7b0e028cf03a1570cdd6932b65b (patch) | |
tree | 9eb22e35c2bcc90ea5128740fd523548dac7df93 /client | |
parent | 07319b08508e347148197b698a655ecd780e86ff (diff) | |
download | hurrycurry-aeac0cd6d497e7b0e028cf03a1570cdd6932b65b.tar hurrycurry-aeac0cd6d497e7b0e028cf03a1570cdd6932b65b.tar.bz2 hurrycurry-aeac0cd6d497e7b0e028cf03a1570cdd6932b65b.tar.zst |
Disabling tutorial resets controls explanation
Diffstat (limited to 'client')
-rw-r--r-- | client/system/settings.gd | 7 |
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 |