From 79b166b27549ea9ab060fedbc42836e10a018308 Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 11 Feb 2017 13:41:07 -0500 Subject: [PATCH] Final modifications to pong as far as backend --- ShiftOS.WinForms/Applications/Pong.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ShiftOS.WinForms/Applications/Pong.cs b/ShiftOS.WinForms/Applications/Pong.cs index 4b531b3..5a4cf9a 100644 --- a/ShiftOS.WinForms/Applications/Pong.cs +++ b/ShiftOS.WinForms/Applications/Pong.cs @@ -189,9 +189,14 @@ namespace ShiftOS.WinForms.Applications { totalreward = levelrewards[level - 1] + beatairewardtotal; double onePercent = (totalreward / 100); + lblbutyougained.Show(); lblbutyougained.Text = Localization.Parse("{BUT_YOU_GAINED}:") + Environment.NewLine + onePercent.ToString("") + (Localization.Parse(" {CODEPOINTS}")); SaveSystem.TransferCodepointsFrom("pong", (totalreward / 100)); } + else + { + lblbutyougained.Hide(); + } } // Check for right wall.