Logo click changes on Main Menu

Makes clicking the logo more similar to the real osu! game, where the Play options show when you click the logo the second time (after it was clicked first).
This commit is contained in:
Raymonf 2014-07-13 17:53:56 +02:00
parent 5aa9620834
commit f70f993999

View File

@ -322,10 +322,7 @@ public class MainMenu extends BasicGameState {
// other button actions (if visible) // other button actions (if visible)
else if (logoClicked) { else if (logoClicked) {
if (logo.contains(x, y)) { if (logo.contains(x, y) || playButton.contains(x, y)) {
SoundController.playSound(SoundController.SOUND_MENUHIT);
logoTimer = MOVE_DELAY;
} else if (playButton.contains(x, y)) {
SoundController.playSound(SoundController.SOUND_MENUHIT); SoundController.playSound(SoundController.SOUND_MENUHIT);
game.enterState(Opsu.STATE_SONGMENU, new FadeOutTransition(Color.black), new FadeInTransition(Color.black)); game.enterState(Opsu.STATE_SONGMENU, new FadeOutTransition(Color.black), new FadeInTransition(Color.black));
} else if (exitButton.contains(x, y)) { } else if (exitButton.contains(x, y)) {