mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +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):
|
def add_total(self, game, income, player):
|
||||||
self.add_row(
|
self.add_row(
|
||||||
middle=f"Income multiplier: {income.multiplier:.1f}",
|
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
|
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)
|
self.setRowStretch(next(self.row), 1)
|
||||||
|
|
||||||
def add_row(
|
def add_row(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user