From 8e3f4812d617c9120df28b0a15bc0bd976f83c2e Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Sun, 14 Jun 2020 22:38:36 +0200 Subject: [PATCH] fixed ticket number printing being a bit weird --- TouchyTickets/Ui.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TouchyTickets/Ui.cs b/TouchyTickets/Ui.cs index afcd15e..5984c09 100644 --- a/TouchyTickets/Ui.cs +++ b/TouchyTickets/Ui.cs @@ -65,7 +65,7 @@ namespace TouchyTickets { ticketGroup.AddChild(new Paragraph(Anchor.AutoCenter, 10000, p => PrettyPrintNumber(GameImpl.Instance.Tickets) + "", true) { TextScale = 0.3F }); - ticketGroup.AddChild(new Paragraph(Anchor.AutoCenter, 1, p => GameImpl.Instance.Map.TicketsPerSecond.ToString("0,#.##") + "/s", true) { + ticketGroup.AddChild(new Paragraph(Anchor.AutoCenter, 1, p => GameImpl.Instance.Map.TicketsPerSecond.ToString("#,0.##") + "/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,#.##") + "/s"; + return attraction.GetGenerationRate(map, pos).ToString("#,0.##") + "/s"; }, true)); }