diff options
author | metamuffin <metamuffin@disroot.org> | 2025-09-22 23:13:58 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2025-09-22 23:14:21 +0200 |
commit | fed8a4f8cd2adc9191211f74f284f93eb8f1ac53 (patch) | |
tree | 27a2db9896c112fb903b38f0cf2392b676d2270a /client/gui/overlays | |
parent | aba816f923b8bcd33d53eabd93b01c6e85f4dc75 (diff) | |
download | hurrycurry-fed8a4f8cd2adc9191211f74f284f93eb8f1ac53.tar hurrycurry-fed8a4f8cd2adc9191211f74f284f93eb8f1ac53.tar.bz2 hurrycurry-fed8a4f8cd2adc9191211f74f284f93eb8f1ac53.tar.zst |
Disable setting reset if default; refactor setting hook system (fix #379)
Diffstat (limited to 'client/gui/overlays')
-rw-r--r-- | client/gui/overlays/debug.gd | 2 | ||||
-rw-r--r-- | client/gui/overlays/overlays.gd | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/client/gui/overlays/debug.gd b/client/gui/overlays/debug.gd index 003672c4..3a37a1b7 100644 --- a/client/gui/overlays/debug.gd +++ b/client/gui/overlays/debug.gd @@ -16,7 +16,7 @@ extends RichTextLabel func _ready(): - Settings.hook_changed_init("graphics.debug_info", false, func (v): + Settings.hook_changed_init("graphics.debug_info", "main", func (v): visible = v RenderingServer.viewport_set_measure_render_time(get_viewport().get_viewport_rid(), visible) ) diff --git a/client/gui/overlays/overlays.gd b/client/gui/overlays/overlays.gd index 0483fef6..9971ea53 100644 --- a/client/gui/overlays/overlays.gd +++ b/client/gui/overlays/overlays.gd @@ -17,7 +17,7 @@ extends Control class_name Overlays func _ready(): - Settings.hook_changed_init("ui.hide_overlays", false, func (v): visible = not v) + Settings.hook_changed_init("ui.hide_overlays", "main", func (v): visible = not v) func _input(_event): if Input.is_action_just_pressed("toggle_overlay"): |