diff options
Diffstat (limited to 'client')
-rw-r--r-- | client/global.gd | 2 | ||||
-rw-r--r-- | client/menu/setup.gd | 2 | ||||
-rw-r--r-- | client/settings.gd | 6 |
3 files changed, 5 insertions, 5 deletions
diff --git a/client/global.gd b/client/global.gd index 97f7d0e8..4a40264c 100644 --- a/client/global.gd +++ b/client/global.gd @@ -179,7 +179,7 @@ func set_hint(key: String, value: bool): push_error("Tried to set hint \"%s\", which does not yet exist (missing key)" % key) if profile["hints"][key] != value: if value: - set_setting("gameplay.tutorial_started", true) + set_setting("gameplay.hints_started", true) save_settings() profile["hints"][key] = value save_profile() # TODO avoid this call when bulk-unsetting hints diff --git a/client/menu/setup.gd b/client/menu/setup.gd index bad69e7c..fbf0bfce 100644 --- a/client/menu/setup.gd +++ b/client/menu/setup.gd @@ -76,7 +76,7 @@ func _on_sign_pressed(): Global.set_hint(k, true) Global.save_profile() - Global.set_setting("gameplay.tutorial_started", skip_tutorial.button_pressed) + Global.set_setting("gameplay.hints_started", skip_tutorial.button_pressed) Global.set_setting("gameplay.tutorial_disabled", skip_tutorial.button_pressed) Global.set_setting("gameplay.setup_completed", true) Global.save_settings() diff --git a/client/settings.gd b/client/settings.gd index 6fab0d5c..ec605899 100644 --- a/client/settings.gd +++ b/client/settings.gd @@ -26,7 +26,7 @@ static func get_root(): ToggleSetting.new("usernames", true), ToggleSetting.new("setup_completed", false), ToggleSetting.new("tutorial_disabled", false), - ToggleSetting.new("tutorial_started", false), + ToggleSetting.new("hints_started", false), ToggleSetting.new("latch_boost", true), ToggleSetting.new("accessible_movement", false), ]), @@ -92,7 +92,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, + "gameplay.hints_started": h_hints_started, "graphics.aa": h_aa, "graphics.taa": h_taa, "graphics.fullscreen": h_fullscreen, @@ -164,7 +164,7 @@ static func h_fullscreen(mode: String): static func h_input(): InputManager.apply_input_map(Settings.get_category_dict("input")) -static func h_tutorial_started(started: bool): +static func h_hints_started(started: bool): if not started: for k in Global.profile["hints"].keys(): Global.set_hint(k, false) |