fixed ticket number printing being a bit weird

This commit is contained in:
Ellpeck 2020-06-14 22:38:36 +02:00
parent 2fc66ff478
commit 8e3f4812d6

View file

@ -65,7 +65,7 @@ namespace TouchyTickets {
ticketGroup.AddChild(new Paragraph(Anchor.AutoCenter, 10000, p => PrettyPrintNumber(GameImpl.Instance.Tickets) + "<i ticket>", true) {
TextScale = 0.3F
});
ticketGroup.AddChild(new Paragraph(Anchor.AutoCenter, 1, p => GameImpl.Instance.Map.TicketsPerSecond.ToString("0,#.##") + "<i ticket>/s", true) {
ticketGroup.AddChild(new Paragraph(Anchor.AutoCenter, 1, p => GameImpl.Instance.Map.TicketsPerSecond.ToString("#,0.##") + "<i ticket>/s", true) {
PositionOffset = new Vector2(0, -8)
});
BigInteger lastTickets = 0;
@ -472,7 +472,7 @@ namespace TouchyTickets {
return string.Empty;
var pos = map.SelectedPosition.Value;
var attraction = map.GetAttractionAt(pos);
return attraction.GetGenerationRate(map, pos).ToString("0,#.##") + "<i ticket>/s";
return attraction.GetGenerationRate(map, pos).ToString("#,0.##") + "<i ticket>/s";
}, true));
}