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