aboutsummaryrefslogtreecommitdiff
path: root/client/settings.gd
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2025-09-15 23:46:37 +0200
committermetamuffin <metamuffin@disroot.org>2025-09-15 23:46:37 +0200
commitebb5c295c03cb1689c081006ad2ee167bd355d0a (patch)
tree1d62a388a97bfb09e5a01b565b2bae53acd966ce /client/settings.gd
parent0b780e2271e63f10a2580afe9507d18d735527f8 (diff)
downloadhurrycurry-ebb5c295c03cb1689c081006ad2ee167bd355d0a.tar
hurrycurry-ebb5c295c03cb1689c081006ad2ee167bd355d0a.tar.bz2
hurrycurry-ebb5c295c03cb1689c081006ad2ee167bd355d0a.tar.zst
move profile related functions to static Profile members
Diffstat (limited to 'client/settings.gd')
-rw-r--r--client/settings.gd9
1 files changed, 4 insertions, 5 deletions
diff --git a/client/settings.gd b/client/settings.gd
index 8381ddc2..55a2b90e 100644
--- a/client/settings.gd
+++ b/client/settings.gd
@@ -134,7 +134,7 @@ static func hook_changed_init(key: String, display: bool, callable: Callable):
static func get_category_dict(prefix: String):
var map = {}
- for k in Global.settings.keys():
+ for k in values.keys():
var kn = k.trim_prefix(prefix + ".")
if kn == k: continue
map[kn] = read(k)
@@ -158,9 +158,8 @@ static var change_hooks_apply = {
"audio.sfx_volume": h_volume_sfx,
}
-static func h_aa(mode):
- var vp = Global.get_viewport()
- Global.configure_viewport_aa(vp, mode)
+static func h_aa(_mode):
+ Global.configure_viewport_aa(Global.get_viewport())
static func h_taa(enabled):
Global.get_viewport().use_taa = enabled
@@ -198,4 +197,4 @@ static func h_input():
static func h_hints_started(started: bool):
if not started:
for k in Global.profile["hints"].keys():
- Global.set_hint(k, false)
+ Profile.set_hint(k, false)