Track convoy kills.

https://github.com/Khopa/dcs_liberation/issues/824
This commit is contained in:
Dan Albert
2021-04-17 21:52:06 -07:00
parent 5dd7ea3060
commit 65ed110ab7
4 changed files with 76 additions and 7 deletions

View File

@@ -148,16 +148,19 @@ class QWaitingForMissionResultWindow(QDialog):
QLabel(str(len(list(debriefing.front_line_losses)))), 1, 1
)
updateLayout.addWidget(QLabel("<b>Other ground units destroyed</b>"), 2, 0)
updateLayout.addWidget(QLabel("<b>Convoy units destroyed</b>"), 2, 0)
updateLayout.addWidget(QLabel(str(len(list(debriefing.convoy_losses)))), 2, 1)
updateLayout.addWidget(QLabel("<b>Other ground units destroyed</b>"), 3, 0)
updateLayout.addWidget(
QLabel(str(len(list(debriefing.ground_object_losses)))), 2, 1
QLabel(str(len(list(debriefing.ground_object_losses)))), 3, 1
)
updateLayout.addWidget(QLabel("<b>Buildings destroyed</b>"), 3, 0)
updateLayout.addWidget(QLabel(str(len(list(debriefing.building_losses)))), 3, 1)
updateLayout.addWidget(QLabel("<b>Buildings destroyed</b>"), 4, 0)
updateLayout.addWidget(QLabel(str(len(list(debriefing.building_losses)))), 4, 1)
updateLayout.addWidget(QLabel("<b>Base Capture Events</b>"), 4, 0)
updateLayout.addWidget(QLabel(str(len(debriefing.base_capture_events))), 4, 1)
updateLayout.addWidget(QLabel("<b>Base Capture Events</b>"), 5, 0)
updateLayout.addWidget(QLabel(str(len(debriefing.base_capture_events))), 5, 1)
# Clear previous content of the window
for i in reversed(range(self.gridLayout.count())):