Added new menus, implemented using a generic ButtonMenu state.

New menus: beatmap options (erase scores/delete), delete beatmaps (single/all), reload songs.
- Pressing F3 or right-clicking in the song menu state will open the beatmap options menu.
- Pressing F5 in the song menu now opens a confirmation menu before reloading beatmaps.
- Deleted MainMenuExit state, which is replaced by MenuState.EXIT in ButtonMenu.
- Decreased Utils.FONT_XLARGE size (to fit in buttons).

Note: as of 800014e, song directory deletion is broken.

Signed-off-by: Jeffrey Han <itdelatrisu@gmail.com>
This commit is contained in:
Jeffrey Han
2015-02-13 02:43:34 -05:00
parent 4920508060
commit c6791c4714
7 changed files with 731 additions and 223 deletions

View File

@@ -31,6 +31,7 @@ import itdelatrisu.opsu.Utils;
import itdelatrisu.opsu.audio.MusicController;
import itdelatrisu.opsu.audio.SoundController;
import itdelatrisu.opsu.audio.SoundEffect;
import itdelatrisu.opsu.states.ButtonMenu.MenuState;
import java.awt.Desktop;
import java.io.IOException;
@@ -417,7 +418,8 @@ public class MainMenu extends BasicGameState {
switch (key) {
case Input.KEY_ESCAPE:
case Input.KEY_Q:
game.enterState(Opsu.STATE_MAINMENUEXIT);
((ButtonMenu) game.getState(Opsu.STATE_BUTTONMENU)).setMenuState(MenuState.EXIT);
game.enterState(Opsu.STATE_BUTTONMENU);
break;
case Input.KEY_P:
if (!logoClicked) {