aboutsummaryrefslogtreecommitdiff
path: root/client/settings.gd
diff options
context:
space:
mode:
Diffstat (limited to 'client/settings.gd')
-rw-r--r--client/settings.gd6
1 files changed, 5 insertions, 1 deletions
diff --git a/client/settings.gd b/client/settings.gd
index 1c03ca5a..662fb280 100644
--- a/client/settings.gd
+++ b/client/settings.gd
@@ -93,9 +93,13 @@ static func get_root():
])
])
-static func hook_changed(key: String, callable):
+static func hook_changed(key: String, callable: Callable):
change_hooks[key] = callable
+static func hook_changed_init(key: String, callable: Callable):
+ hook_changed(key, callable)
+ callable.call(Global.get_setting(key))
+
static var change_hooks = {
"graphics.aa": h_aa,
"graphics.taa": h_taa,