From 99f0cb63c85a86485b1a6f2f14ca8abaa5ceb5d6 Mon Sep 17 00:00:00 2001 From: tpart Date: Sun, 7 Jul 2024 15:24:20 +0200 Subject: Add option to disable click sound for buttons; Disable click sound for sign button --- client/menu/menu.gd | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'client/menu/menu.gd') diff --git a/client/menu/menu.gd b/client/menu/menu.gd index 46dd7351..7ae7f3a0 100644 --- a/client/menu/menu.gd +++ b/client/menu/menu.gd @@ -78,7 +78,8 @@ func focus_first(node: Node) -> bool: func connect_button_sounds(node: Node): if node is Button: - node.pressed.connect(Sound.play_click) + if not node.is_in_group("no_click_sound"): + node.pressed.connect(Sound.play_click) if node is Button or node is LineEdit or node is Slider: node.mouse_entered.connect(Sound.play_hover) for c in node.get_children(): -- cgit v1.2.3-70-g09d2