Merge pull request #2 from iceblade112/master
Logo click changes on Main Menu
This commit is contained in:
commit
f0f8160fa1
|
@ -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)) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user