|
27 | 27 | */
|
28 | 28 | package mekhq.gui.stratcon;
|
29 | 29 |
|
| 30 | +import static megamek.utilities.ImageUtilities.scaleImageIcon; |
30 | 31 | import static mekhq.campaign.mission.AtBDynamicScenarioFactory.scaleObjectiveTimeLimits;
|
31 | 32 | import static mekhq.campaign.mission.AtBDynamicScenarioFactory.translateTemplateObjectives;
|
32 | 33 | import static mekhq.campaign.personnel.skills.SkillType.S_LEADER;
|
|
44 | 45 | import static mekhq.campaign.utilities.CampaignTransportUtilities.getLeadershipDropdownVectorPair;
|
45 | 46 | import static mekhq.gui.baseComponents.immersiveDialogs.ImmersiveDialogCore.getSpeakerDescription;
|
46 | 47 | import static mekhq.gui.baseComponents.immersiveDialogs.ImmersiveDialogCore.getSpeakerIcon;
|
47 |
| -import static mekhq.utilities.ImageUtilities.scaleImageIcon; |
48 | 48 |
|
49 | 49 | import java.awt.BorderLayout;
|
50 | 50 | import java.awt.CardLayout;
|
@@ -143,7 +143,7 @@ public StratconScenarioWizard(Campaign campaign, StratconPanel parent) {
|
143 | 143 | * </ul>
|
144 | 144 | */
|
145 | 145 | public void setCurrentScenario(StratconScenario scenario, StratconTrackState trackState,
|
146 |
| - StratconCampaignState campaignState, boolean isPrimaryForce) { |
| 146 | + StratconCampaignState campaignState, boolean isPrimaryForce) { |
147 | 147 | currentScenario = scenario;
|
148 | 148 | currentCampaignState = campaignState;
|
149 | 149 | currentTrackState = trackState;
|
@@ -481,7 +481,7 @@ private void setLeadershipUI(GridBagConstraints gbc, List<Unit> eligibleUnits, i
|
481 | 481 | * Add an "available force list" to the given control
|
482 | 482 | */
|
483 | 483 | private JList<Force> addAvailableForceList(JPanel parent, GridBagConstraints gbc,
|
484 |
| - ScenarioForceTemplate forceTemplate) { |
| 484 | + ScenarioForceTemplate forceTemplate) { |
485 | 485 | JScrollPane forceListContainer = new JScrollPaneWithSpeed();
|
486 | 486 |
|
487 | 487 | ScenarioWizardLanceModel lanceModel = new ScenarioWizardLanceModel(campaign,
|
@@ -514,7 +514,7 @@ private JList<Force> addAvailableForceList(JPanel parent, GridBagConstraints gbc
|
514 | 514 | * @return A JList of units that can be selected.
|
515 | 515 | */
|
516 | 516 | private JList<Unit> addIndividualUnitSelector(List<Unit> units, GridBagConstraints gridBagConstraints,
|
517 |
| - int maxSelectionSize, boolean usesBV) { |
| 517 | + int maxSelectionSize, boolean usesBV) { |
518 | 518 | // Create the panel for the individual unit selector
|
519 | 519 | JPanel unitPanel = new JPanel();
|
520 | 520 | unitPanel.setLayout(new GridBagLayout());
|
@@ -949,7 +949,7 @@ private void reinforcementConfirmDialog() {
|
949 | 949 | * {@code false} otherwise.
|
950 | 950 | */
|
951 | 951 | private void btnCommitClicked(ActionEvent evt, @Nullable Integer reinforcementTargetNumber,
|
952 |
| - boolean isGMReinforcement) { |
| 952 | + boolean isGMReinforcement) { |
953 | 953 | if (parent != null) {
|
954 | 954 | parent.setCommitForces(true);
|
955 | 955 | }
|
@@ -1097,7 +1097,7 @@ private void availableForceSelectorChanged(ListSelectionEvent e, JLabel forceSta
|
1097 | 1097 | * selected items, {@code false}
|
1098 | 1098 | */
|
1099 | 1099 | private void availableUnitSelectorChanged(ListSelectionEvent event, JLabel selectionCountLabel,
|
1100 |
| - JLabel unitStatusLabel, int maxSelectionSize, boolean usesBV) { |
| 1100 | + JLabel unitStatusLabel, int maxSelectionSize, boolean usesBV) { |
1101 | 1101 | if (!(event.getSource() instanceof JList<?>)) {
|
1102 | 1102 | return;
|
1103 | 1103 | }
|
@@ -1166,7 +1166,7 @@ private void availableUnitSelectorChanged(ListSelectionEvent event, JLabel selec
|
1166 | 1166 | }
|
1167 | 1167 |
|
1168 | 1168 | private void selectTransportedUnitsAndTransport(CampaignTransportType campaignTransportType, Unit unit,
|
1169 |
| - JList<Unit> changedList) { |
| 1169 | + JList<Unit> changedList) { |
1170 | 1170 | if (campaignTransportType != null) {
|
1171 | 1171 | if (unit.hasTransportedUnits(campaignTransportType)) {
|
1172 | 1172 | Set<Unit> potentialTransportedUnits = unit.getTransportedUnits(campaignTransportType);
|
|
0 commit comments