table.center();
Label title = new Label("JFIGHTER2DX\nMAIN MENU", game.getSkin());
title.setFontScale(2.5f);
TextButton quickButton = new TextButton("QUICK PLAY", game.getSkin());
quickButton.addListener(new ClickListener() {
public void touchUp(InputEvent event, float x, float y, int pointer, int button) {
dispose();
game.setScreen(new GameScreen(game, GameType.QUICK));
}
});
TextButton historyButton = new TextButton("PLAY HISTORY", game.getSkin());
historyButton.addListener(new ClickListener() {
public void touchUp(InputEvent event, float x, float y, int pointer, int button) {
dispose();
game.setScreen(new GameScreen(game, GameType.HISTORY));
}
});
TextButton optionsButton = new TextButton("OPTIONS", game.getSkin());
optionsButton.addListener(new ClickListener() {
public void touchUp(InputEvent event, float x, float y, int pointer, int button) {
dispose();
game.setScreen(new ConfigurationScreen(game));
}
});
TextButton exitButton = new TextButton("QUIT GAME", game.getSkin());
exitButton.addListener(new ClickListener() {
public void touchUp(InputEvent event, float x, float y, int pointer, int button) {
dispose();
System.exit(0);
}
});