display objective awards in participant tables

This commit is contained in:
Maxime Réaux 2026-03-03 15:39:30 +01:00
parent 53b1fc916c
commit f55106c260
8 changed files with 160 additions and 24 deletions

View file

@ -413,6 +413,8 @@ class View(QtWidgets.QMainWindow, Ui_MainWindow):
for obj in objectives:
value = part.narrative_points.get(obj.id, 0)
NP_item = QtWidgets.QTableWidgetItem(str(value))
if part.objective_icons.get(obj.id):
NP_item.setIcon(part.objective_icons[obj.id])
table.setItem(row, col, NP_item)
col += 1
table.setItem(row, col, token_item)
@ -545,6 +547,8 @@ class View(QtWidgets.QMainWindow, Ui_MainWindow):
for obj in objectives:
value = part.narrative_points.get(obj.id, 0)
NP_item = QtWidgets.QTableWidgetItem(str(value))
if part.objective_icons.get(obj.id):
NP_item.setIcon(part.objective_icons[obj.id])
table.setItem(row, col, NP_item)
col += 1
table.setItem(row, col, token_item)