Skip to content

Commit

Permalink
feat: create unit list at the end of every encounter, not just the on…
Browse files Browse the repository at this point in the history
…es you have survivor units
  • Loading branch information
Scoppio committed Nov 1, 2024
1 parent 347ab66 commit d6d87fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions megamek/src/megamek/client/ui/swing/ClientGUI.java
Original file line number Diff line number Diff line change
Expand Up @@ -1839,6 +1839,7 @@ public void doAlertDialog(String title, String message, int msgTyoe) {
public boolean doYesNoDialog(String title, String question) {
ConfirmDialog confirm = new ConfirmDialog(frame, title, question);
confirm.setVisible(true);
confirm.setAlwaysOnTop(true);
return confirm.getAnswer();
}

Expand Down Expand Up @@ -2282,8 +2283,7 @@ public void gameEnd(GameEndEvent e) {

// Allow players to save their living units to a file.
// Don't bother asking if none survived.
if (!living.isEmpty()
&& doYesNoDialog(Messages.getString("ClientGUI.SaveUnitsDialog.title"),
if (doYesNoDialog(Messages.getString("ClientGUI.SaveUnitsDialog.title"),
Messages.getString("ClientGUI.SaveUnitsDialog.message"))) {
// Allow the player to save the units to a file.
saveVictoryList();
Expand Down

0 comments on commit d6d87fd

Please sign in to comment.