mirror of
https://github.com/BubbaGumpShrump/AutoTrackR2.git
synced 2025-06-18 20:59:05 +00:00
Added Kill Tally for current month.
This commit is contained in:
parent
f116793591
commit
c2cdd2a6a1
1 changed files with 4 additions and 2 deletions
|
@ -26,7 +26,9 @@ public partial class HomePage : UserControl
|
||||||
_killHistoryManager = new KillHistoryManager(ConfigManager.KillHistoryFile);
|
_killHistoryManager = new KillHistoryManager(ConfigManager.KillHistoryFile);
|
||||||
|
|
||||||
// Set the TextBlock text
|
// 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();
|
AddKillHistoryKillsToUI();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -125,7 +127,7 @@ public partial class HomePage : UserControl
|
||||||
{
|
{
|
||||||
Dispatcher.Invoke(() =>
|
Dispatcher.Invoke(() =>
|
||||||
{
|
{
|
||||||
GameModeTextBox.Text = mode.ToString();
|
GameModeTextBox.Text = mode == GameMode.PersistentUniverse ? "PU" : mode.ToString();
|
||||||
AdjustFontSize(GameModeTextBox);
|
AdjustFontSize(GameModeTextBox);
|
||||||
LocalPlayerData.CurrentGameMode = mode;
|
LocalPlayerData.CurrentGameMode = mode;
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue