Show total playtime in player list and AHelp window (#20980)

This commit is contained in:
DrSmugleaf
2023-10-14 01:55:40 -07:00
committed by GitHub
parent 5ecd5f7521
commit 3a2482420f
10 changed files with 48 additions and 4 deletions

View File

@@ -120,9 +120,11 @@ namespace Content.Client.Administration.UI.Tabs.PlayerTab
player.StartingJob,
player.Antag ? "YES" : "NO",
new StyleBoxFlat(useAltColor ? _altColor : _defaultColor),
player.Connected);
player.Connected,
player.PlaytimeString());
entry.PlayerEntity = player.NetEntity;
entry.OnPressed += args => OnEntryPressed?.Invoke(args);
entry.ToolTip = Loc.GetString("player-tab-entry-tooltip");
PlayerList.AddChild(entry);
useAltColor ^= true;