aboutsummaryrefslogtreecommitdiff
path: root/client/system
diff options
context:
space:
mode:
authortpart <tpart120@proton.me>2025-09-29 20:21:22 +0200
committertpart <tpart120@proton.me>2025-09-29 22:50:49 +0200
commit0c8f9abfd586964c0f04a0a81989ae2d3dbfebdb (patch)
treee2912ee6c36eab5562f5977dd7c0e0022cbc1af2 /client/system
parent9a8e067adba9d4509e44f977be2f0cfe09d76d40 (diff)
downloadhurrycurry-0c8f9abfd586964c0f04a0a81989ae2d3dbfebdb.tar
hurrycurry-0c8f9abfd586964c0f04a0a81989ae2d3dbfebdb.tar.bz2
hurrycurry-0c8f9abfd586964c0f04a0a81989ae2d3dbfebdb.tar.zst
Remove remaining references to hint system
Diffstat (limited to 'client/system')
-rw-r--r--client/system/profile.gd29
-rw-r--r--client/system/settings.gd8
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