mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
Round balance and income in the finance window.
Fixes https://github.com/dcs-liberation/dcs_liberation/issues/1983
This commit is contained in:
parent
2c10d3f5b2
commit
da4bd8120b
@ -55,10 +55,10 @@ class FinancesLayout(QGridLayout):
|
||||
def add_total(self, game, income, player):
|
||||
self.add_row(
|
||||
middle=f"Income multiplier: {income.multiplier:.1f}",
|
||||
right=f"<b>{income.total}M</b>",
|
||||
right=f"<b>{income.total:.1f}M</b>",
|
||||
)
|
||||
budget = game.coalition_for(player).budget
|
||||
self.add_row(middle="Balance", right=f"<b>{budget}M</b>")
|
||||
self.add_row(middle="Balance", right=f"<b>{budget:.1f}M</b>")
|
||||
self.setRowStretch(next(self.row), 1)
|
||||
|
||||
def add_row(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user