Fix select sound being played too many times...

in the Pokédex screen when exiting a selectmenu
This commit is contained in:
JappaWakka 2025-02-01 09:35:24 +01:00
parent 8e0372da30
commit 68a3317536

View File

@ -1087,6 +1087,7 @@ Public Class PokedexScreen
SoundManager.PlaySound("select")
End If
Me.Visible = False
Exit For
End If
If New Rectangle(Core.windowSize.Width - 270, 66 * ((i + 1) - Scroll), 256, 64).Contains(MouseHandler.MousePosition) = True And Controls.Accept(True, False, False) = True Then
Me.Index = i