File tree 1 file changed +13
-0
lines changed
MekHQ/src/mekhq/gui/stratcon
1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change 43
43
import java .util .*;
44
44
45
45
import static java .lang .Math .min ;
46
+ import static mekhq .campaign .mission .AtBDynamicScenarioFactory .translateTemplateObjectives ;
46
47
import static mekhq .campaign .personnel .SkillType .S_LEADER ;
47
48
import static mekhq .campaign .stratcon .StratconRulesManager .BASE_LEADERSHIP_BUDGET ;
48
49
import static mekhq .campaign .stratcon .StratconRulesManager .ReinforcementResultsType .DELAYED ;
@@ -141,6 +142,16 @@ private void setUI() {
141
142
validate ();
142
143
}
143
144
145
+ /**
146
+ * Returns a concatenated string of a unit's force hierarchy, in reversed order,
147
+ * starting from the highest parent Force going down to the given unit's direct Force.
148
+ * <p>
149
+ * If the unit does not belong to any Force, an empty string is returned.
150
+ *
151
+ * @param unit The Unit whose Force hierarchy names are to be returned.
152
+ * @return A concatenated string of Force names in reversed order separated by a slash,
153
+ * or an empty string if the unit is not assigned to any Force.
154
+ */
144
155
private String getForceNameReversed (Unit unit ) {
145
156
List <String > forceNames = new ArrayList <>();
146
157
@@ -556,6 +567,8 @@ private void btnCommitClicked(ActionEvent e) {
556
567
setVisible (false );
557
568
}
558
569
570
+ translateTemplateObjectives (currentScenario .getBackingScenario (), campaign );
571
+
559
572
this .getParent ().repaint ();
560
573
}
561
574
You can’t perform that action at this time.
0 commit comments