Skip to content

Commit

Permalink
some minor bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
NickAragua committed Jun 21, 2024
1 parent 66443a4 commit 26c81d5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
3 changes: 2 additions & 1 deletion MekHQ/data/stratconfacilities/AlliedBaseOfOperations.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<localModifiers>AlliedTurrets.xml</localModifiers>
<localModifiers>AlliedOfficerMech.xml</localModifiers>
<sharedModifiers>AlliedOfficerMech.xml</sharedModifiers>
<userDescription>This base is defended by well-equipped veteran troops, turrets and a commander in a mech. The commander will participate in scenarios on this track.</userDescription>
<userDescription>This base is defended by well-equipped veteran troops, turrets and a commander in a mech. &lt;br&gt;
The commander will participate in scenarios on this track.</userDescription>
<visible>true</visible>
</StratconFacility>
12 changes: 8 additions & 4 deletions MekHQ/src/mekhq/gui/StratconPanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -843,10 +843,14 @@ private String buildSelectedHexInfo() {
: MekHQ.getMHQOptions().getFontColorNegativeHexColor())
.append("'>")
.append("<br/>")
.append(facility.getFormattedDisplayableName())
.append("<br/>")
.append(facility.getUserDescription())
.append("<span>");
.append(facility.getFormattedDisplayableName());

if (facility.getUserDescription() != null) {
infoBuilder.append("<br/>")
.append(facility.getUserDescription());
}

infoBuilder.append("<span>");
}

} else {
Expand Down

0 comments on commit 26c81d5

Please sign in to comment.