mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
@@ -72,6 +72,17 @@ class QDebriefingWindow(QDialog):
|
||||
except AttributeError:
|
||||
logging.exception(f"Issue adding {unit_type} to debriefing information")
|
||||
|
||||
convoy_losses = self.debriefing.convoy_losses_by_type(player=True)
|
||||
for unit_type, count in convoy_losses.items():
|
||||
try:
|
||||
lostUnitsLayout.addWidget(
|
||||
QLabel(f"{db.unit_type_name(unit_type)} from convoy"), row, 0
|
||||
)
|
||||
lostUnitsLayout.addWidget(QLabel(str(count)), row, 1)
|
||||
row += 1
|
||||
except AttributeError:
|
||||
logging.exception(f"Issue adding {unit_type} to debriefing information")
|
||||
|
||||
building_losses = self.debriefing.building_losses_by_type(player=True)
|
||||
for building, count in building_losses.items():
|
||||
try:
|
||||
@@ -113,6 +124,17 @@ class QDebriefingWindow(QDialog):
|
||||
enemylostUnitsLayout.addWidget(QLabel("{}".format(count)), row, 1)
|
||||
row += 1
|
||||
|
||||
convoy_losses = self.debriefing.convoy_losses_by_type(player=False)
|
||||
for unit_type, count in convoy_losses.items():
|
||||
try:
|
||||
lostUnitsLayout.addWidget(
|
||||
QLabel(f"{db.unit_type_name(unit_type)} from convoy"), row, 0
|
||||
)
|
||||
lostUnitsLayout.addWidget(QLabel(str(count)), row, 1)
|
||||
row += 1
|
||||
except AttributeError:
|
||||
logging.exception(f"Issue adding {unit_type} to debriefing information")
|
||||
|
||||
building_losses = self.debriefing.building_losses_by_type(player=False)
|
||||
for building, count in building_losses.items():
|
||||
try:
|
||||
|
||||
@@ -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())):
|
||||
|
||||
Reference in New Issue
Block a user