1
0

Play click sound in menu

This commit is contained in:
Victor 2014-03-23 15:46:16 +02:00
parent d7a877b8a6
commit 1a0378eb57

View File

@ -67,6 +67,8 @@ public class MenuPanel extends JPanel {
public void valueChanged(ListSelectionEvent event) { public void valueChanged(ListSelectionEvent event) {
if (event.getValueIsAdjusting()) return; if (event.getValueIsAdjusting()) return;
Sound.CLICK.play();
final int index = menuList.getSelectedIndex(); final int index = menuList.getSelectedIndex();
switch (index) { switch (index) {
case 0: // Create server case 0: // Create server