only display while you were away if there was a change

This commit is contained in:
Ellpeck 2020-07-08 18:58:03 +02:00
parent b93291cdac
commit f092be94a8

View file

@ -586,6 +586,8 @@ namespace TouchyTickets {
}
public static void DisplayWhileYouWereAway(TimeSpan passed, BigInteger ticketGen, double ticketPerSecondGen) {
if (ticketGen <= 0 && ticketPerSecondGen <= 0)
return;
var infoBox = new Group(Anchor.TopLeft, Vector2.One, false) {
OnDrawn = (e2, time, batch, alpha) => batch.Draw(batch.GetBlankTexture(), e2.DisplayArea, Color.Black * 0.35F)
};