From c2cdd2a6a1ee809928f42447d65991498a9aec4d Mon Sep 17 00:00:00 2001 From: Heavy Bob <ferrettclay@gmail.com> Date: Mon, 7 Apr 2025 09:27:00 +1000 Subject: [PATCH] Added Kill Tally for current month. --- AutoTrackR2/HomePage.xaml.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/AutoTrackR2/HomePage.xaml.cs b/AutoTrackR2/HomePage.xaml.cs index 3afdaca..1baf48b 100644 --- a/AutoTrackR2/HomePage.xaml.cs +++ b/AutoTrackR2/HomePage.xaml.cs @@ -26,7 +26,9 @@ public partial class HomePage : UserControl _killHistoryManager = new KillHistoryManager(ConfigManager.KillHistoryFile); // Set the TextBlock text - KillTallyTitle.Text = $"Kill Tally - {_killHistoryManager.GetKillsInCurrentMonth().Count}"; + KillTallyTitle.Text = $"Kill Tally - {DateTime.Now.ToString("MMMM")}"; + KillTallyTextBox.Text = _killHistoryManager.GetKillsInCurrentMonth().Count.ToString(); + AdjustFontSize(KillTallyTextBox); AddKillHistoryKillsToUI(); } @@ -125,7 +127,7 @@ public partial class HomePage : UserControl { Dispatcher.Invoke(() => { - GameModeTextBox.Text = mode.ToString(); + GameModeTextBox.Text = mode == GameMode.PersistentUniverse ? "PU" : mode.ToString(); AdjustFontSize(GameModeTextBox); LocalPlayerData.CurrentGameMode = mode; });