Update buttons on concede, restart, and exit prompts

This commit is contained in:
drdev
2013-12-31 20:00:51 +00:00
parent 40c651cd04
commit f4b9dd2f34
2 changed files with 3 additions and 2 deletions

View File

@@ -172,11 +172,12 @@ public enum FControl implements KeyEventDispatcher {
}
public boolean canExitForge(boolean forRestart) {
String action = (forRestart ? "Restart" : "Exit");
String userPrompt = "Are you sure you wish to " + (forRestart ? "restart" : "exit") + " Forge?";
if (this.game != null) {
userPrompt = "A game is currently active. " + userPrompt;
}
if (!FOptionPane.showConfirmDialog(userPrompt, "Exit Forge", this.game == null)) { //default Yes if no game active
if (!FOptionPane.showConfirmDialog(userPrompt, action + " Forge", action, "Cancel", this.game == null)) { //default Yes if no game active
return false;
}
if (!CDeckEditorUI.SINGLETON_INSTANCE.canSwitchAway(true)) {

View File

@@ -504,7 +504,7 @@ public enum CMatchUI implements ICDoc, IMenuProvider {
String userPrompt =
"This will end the current game and you will not be able to resume.\n\n" +
"Concede anyway?";
if (FOptionPane.showConfirmDialog(userPrompt, "Concede Game?", false)) {
if (FOptionPane.showConfirmDialog(userPrompt, "Concede Game?", "Concede", "Cancel", false)) {
Singletons.getControl().stopGame();
}
}