diff options
Diffstat (limited to 'client/system')
-rw-r--r-- | client/system/profile.gd | 29 | ||||
-rw-r--r-- | client/system/settings.gd | 8 |
2 files changed, 2 insertions, 35 deletions
diff --git a/client/system/profile.gd b/client/system/profile.gd index 35706f2d..d0e04bb2 100644 --- a/client/system/profile.gd +++ b/client/system/profile.gd @@ -25,17 +25,7 @@ static var default_profile := { }, "last_server_url": "", "tutorial_ingredients_played": [], - "registry_asked": false, - "hints": { - "has_moved": false, - "has_boosted": false, - "has_interacted": false, - "has_rotated": false, - "has_reset": false, - "has_zoomed": false, - "has_seen_performance": false, - "has_seen_join_while_running": false - } + "registry_asked": false } # profile is stored in a Dictionary[String, Any] @@ -76,20 +66,3 @@ static func write(key: String, value): return if values[key] != value: values[key] = value - -static func set_hint(key: String, value: bool): - if !values["hints"].has(key): - push_error("Tried to set hint \"%s\", which does not yet exist (missing key)" % key) - if values["hints"][key] != value: - if value: - Settings.write("gameplay.hints_started", true) - Settings.save() - values["hints"][key] = value - save() # TODO avoid this call when bulk-unsetting hints - -static func get_hint(key: String): - if values["hints"].has(key): - return values["hints"][key] - else: - push_error("Tried to access hint \"%s\", which does not exist (missing key)" % key) - return null diff --git a/client/system/settings.gd b/client/system/settings.gd index e1ef5c0d..734492ae 100644 --- a/client/system/settings.gd +++ b/client/system/settings.gd @@ -150,7 +150,6 @@ static func launch_setup(): static var change_hooks = { "input": { "static": h_input }, - "gameplay.hints_started": { "static": h_hints_started }, "graphics.aa": { "static": h_aa }, "graphics.taa": { "static": h_taa }, "graphics.fullscreen": { "static": h_fullscreen }, @@ -196,9 +195,4 @@ static func h_fullscreen(mode: String): "keep": pass "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_hints_started(started: bool): - if not started: - for k in Profile.values["hints"].keys(): - Profile.set_hint(k, false) + DisplayServer.window_set_mode(DisplayServer.WINDOW_MODE_WINDOWED)
\ No newline at end of file |