aboutsummaryrefslogtreecommitdiff
path: root/client/menu/ui_elements/server_list_item.gd
diff options
context:
space:
mode:
Diffstat (limited to 'client/menu/ui_elements/server_list_item.gd')
-rw-r--r--client/menu/ui_elements/server_list_item.gd4
1 files changed, 4 insertions, 0 deletions
diff --git a/client/menu/ui_elements/server_list_item.gd b/client/menu/ui_elements/server_list_item.gd
index 4b5121db..18b94b12 100644
--- a/client/menu/ui_elements/server_list_item.gd
+++ b/client/menu/ui_elements/server_list_item.gd
@@ -30,5 +30,9 @@ func setup(name_: String, online_players: int, version: Array):
info.add_theme_color_override("font_color", Color("ff2222"))
return
info.text = tr("c.menu.play.server_players").format([online_players])
+
+ # This node is in group not no_click_sound, so sounds won't be automatically connected
+ # by menu system. Reason: These nodes are deleted and re-created every few seconds
+ # in server list, and signals are only connected on ready.
button.pressed.connect(Sound.play_click)
button.mouse_entered.connect(Sound.play_hover)