From ee24ec1882aa98e5432f0668e7c573710e8f1915 Mon Sep 17 00:00:00 2001 From: Simon Date: Thu, 7 Sep 2023 21:30:48 +0200 Subject: [PATCH] Loading units during deployment (MM#4750): dialog call correction --- megamek/src/megamek/client/ui/swing/DeploymentDisplay.java | 4 ++-- megamek/src/megamek/client/ui/swing/boardview/BoardView.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/megamek/src/megamek/client/ui/swing/DeploymentDisplay.java b/megamek/src/megamek/client/ui/swing/DeploymentDisplay.java index 80d4b81ea2e..78f626d89ae 100644 --- a/megamek/src/megamek/client/ui/swing/DeploymentDisplay.java +++ b/megamek/src/megamek/client/ui/swing/DeploymentDisplay.java @@ -689,8 +689,8 @@ public void actionPerformed(ActionEvent evt) { if (!choices.isEmpty()) { // If we have multiple choices, display a selection dialog. Entity other = EntityChoiceDialog.showSingleChoiceDialog(clientgui.getFrame(), + "DeploymentDisplay.loadUnitDialog.title", Messages.getString("DeploymentDisplay.loadUnitDialog.message", ce().getShortName(), ce().getUnusedString()), - Messages.getString("DeploymentDisplay.loadUnitDialog.title"), choices); if (!(other instanceof Infantry)) { @@ -765,8 +765,8 @@ public void actionPerformed(ActionEvent evt) { if (!choices.isEmpty()) { Entity loaded = EntityChoiceDialog.showSingleChoiceDialog(clientgui.getFrame(), + "DeploymentDisplay.unloadUnitDialog.title", Messages.getString("DeploymentDisplay.unloadUnitDialog.message", ce().getShortName(), ce().getUnusedString()), - Messages.getString("DeploymentDisplay.unloadUnitDialog.title"), choices); if (loaded != null) { diff --git a/megamek/src/megamek/client/ui/swing/boardview/BoardView.java b/megamek/src/megamek/client/ui/swing/boardview/BoardView.java index 9b6168ee591..f0c842607c9 100644 --- a/megamek/src/megamek/client/ui/swing/boardview/BoardView.java +++ b/megamek/src/megamek/client/ui/swing/boardview/BoardView.java @@ -5407,8 +5407,8 @@ private Entity chooseEntity(Coords pos) { } else if (entities.size() > 1) { // If we have multiple choices, display a selection dialog. choice = EntityChoiceDialog.showSingleChoiceDialog(clientgui.getFrame(), + "BoardView1.ChooseEntityDialog.title", Messages.getString("BoardView1.ChooseEntityDialog.message", pos.getBoardNum()), - Messages.getString("BoardView1.ChooseEntityDialog.title"), entities); }