From 70601b430804593826862fbc1aba0f14362ce3c1 Mon Sep 17 00:00:00 2001 From: tpart Date: Mon, 19 Aug 2024 15:41:53 +0200 Subject: Add comment explaining obscure function --- client/audio/sound.gd | 2 ++ 1 file changed, 2 insertions(+) (limited to 'client/audio') diff --git a/client/audio/sound.gd b/client/audio/sound.gd index ea39050a..fbd4fb5d 100644 --- a/client/audio/sound.gd +++ b/client/audio/sound.gd @@ -49,6 +49,8 @@ func play_hover(): hover_sound.play() func play_hover_maybe(element): + # Don't play hover sound when focus is changed by clicking using a mouse. + # TODO: Clean up this code and find a proper solution. if element is Button: if element.is_hovered(): return -- cgit v1.2.3-70-g09d2