Merge ui useability update: added "Quit duel" option to Duel Decks screen action bar after duel is started.

master
Lodici 2013-12-13 12:15:38 +00:00
commit 79a701bab8
1 changed files with 9 additions and 3 deletions

View File

@ -61,10 +61,10 @@ public class DuelDecksScreen
}
});
} else {
return new MenuButton("Restart duel", new AbstractAction() {
return new MenuButton("< Quit duel", new AbstractAction() {
@Override
public void actionPerformed(final ActionEvent e) {
frame.restartDuel();
frame.closeActiveScreen(false);
}
});
}
@ -104,7 +104,7 @@ public class DuelDecksScreen
if (screenContent.getDuel().getGamesPlayed() == 0) {
return "Start duel";
} else {
return "Game " + (screenContent.getDuel().getGamesPlayed() + 1);
return "Start game " + (screenContent.getDuel().getGamesPlayed() + 1);
}
}
@ -134,6 +134,12 @@ public class DuelDecksScreen
saveDuel();
}
}));
buttons.add(new MenuButton("Restart duel", new AbstractAction() {
@Override
public void actionPerformed(final ActionEvent e) {
frame.restartDuel();
}
}));
}
return buttons;
}