don't reshow the options overlay if it's already shown
This commit is contained in:
parent
50cd209b67
commit
04646f7d2a
|
@ -811,8 +811,10 @@ public class MainMenu extends BaseOpsuState {
|
|||
}
|
||||
|
||||
if (this.buttonPositions[1].contains(x, y, 0.25f)) {
|
||||
SoundController.playSound(SoundEffect.MENUHIT);
|
||||
optionsOverlay.show();
|
||||
if (!optionsOverlay.isActive()) {
|
||||
SoundController.playSound(SoundEffect.MENUHIT);
|
||||
optionsOverlay.show();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
@ -928,8 +928,10 @@ public class SongMenu extends ComplexOpsuState {
|
|||
this.keyPressed(KEY_F3, '\0');
|
||||
return true;
|
||||
} else if (selectOptionsButton.contains(x, y)) {
|
||||
SoundController.playSound(SoundEffect.MENUHIT);
|
||||
optionsOverlay.show();
|
||||
if (!optionsOverlay.isActive()) {
|
||||
SoundController.playSound(SoundEffect.MENUHIT);
|
||||
optionsOverlay.show();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user