Skip to content

Commit

Permalink
Added edge case toasts
Browse files Browse the repository at this point in the history
  • Loading branch information
kidfearless committed Sep 3, 2020
1 parent 1b4a4e6 commit b9478c0
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,11 @@ private void ReadConsole(object nill)
// handle edge case
else if (!user.Alerted && user.Cheater != null)
{
//ShowToastAsync(cheater);
ShowToastAsync(
title: $"Hacker {user.Name} Found In Game",
message: $"Threat Level: {user.Cheater.ThreatLevel}\n" +
$"Known Cheats: {user.Cheater.CheatList}\n",
duration: TimeSpan.FromSeconds(10.0));
PlayHax();
user.Alerted = true;
}
Expand Down Expand Up @@ -268,9 +272,10 @@ private async void OnClientConnected(User user)
if (cheater != null)
{
ShowToastAsync(
title: $"Hacker {cheater.LastKnownName} Found In Game",
title: $"Hacker {user.Name} Found In Game",
message:$"Threat Level: {cheater.ThreatLevel}\n" +
$"Known Cheats: {cheater.CheatList}",
$"Known Cheats: {cheater.CheatList}\n" +
$"Previous Name: {cheater.LastKnownName}",
duration: TimeSpan.FromSeconds(10.0));
cheater.LastKnownName = user.Name;
PlayHax();
Expand Down

0 comments on commit b9478c0

Please sign in to comment.