Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upstream merge 24/10 #2036

Merged
merged 156 commits into from
Oct 24, 2024
Merged
Show file tree
Hide file tree
Changes from 150 commits
Commits
Show all changes
156 commits
Select commit Hold shift + click to select a range
a770b7e
Fix cryo locale again (#32654)
lzk228 Oct 8, 2024
71922a7
Fix cloth dupe (#32685)
shampunj Oct 8, 2024
a941cc1
Automatic changelog update
PJBot Oct 8, 2024
f23335e
Added proper capitalisation for supervisors when entering the game (#…
averystarbits Oct 8, 2024
ac64152
Replace the Librarian's round-start D10 with a D20 (#32648)
Plykiya Oct 8, 2024
8487cfc
Automatic changelog update
PJBot Oct 8, 2024
aec6d3a
CHIMP and APE particle speed increase (#32690)
K-Dynamic Oct 8, 2024
5cadc74
Automatic changelog update
PJBot Oct 8, 2024
f9a12e4
Add pumpkin pie! (#32623)
beck-thompson Oct 8, 2024
f2e5b0c
Automatic changelog update
PJBot Oct 8, 2024
a1edff8
Update submodule to v236.1.0 (#32704)
PJB3005 Oct 9, 2024
8c2f2cf
Add admin log for codewords (#32531)
SlamBamActionman Oct 9, 2024
9bdc636
Automatic changelog update
PJBot Oct 9, 2024
18992f5
fix typo (#32712)
lzk228 Oct 9, 2024
11e1e0b
Decrease price of radio jammer from 4 tc -> 3 tc (#32472)
beck-thompson Oct 9, 2024
7bf5f25
Automatic changelog update
PJBot Oct 9, 2024
a24c85a
Job title localization (#32338)
chavonadelal Oct 9, 2024
f194cc4
Plushies can now have pAIs stuffed into them (v2)! (#30805)
beck-thompson Oct 9, 2024
daa5fa1
Automatic changelog update
PJBot Oct 9, 2024
e475512
Fix error log when recycling something with small material counts. (#…
PJB3005 Oct 10, 2024
ab5d439
Mind Role Entities (#31318)
Errant-4 Oct 10, 2024
de9aa94
Automatic changelog update
PJBot Oct 10, 2024
2098868
Fix bounties(and potentially other things) running out of ids (#32700)
nikthechampiongr Oct 10, 2024
cabb3bb
Automatic changelog update
PJBot Oct 10, 2024
eeb06fa
update for mind roles and fix random stuff, localize alt ids
Oct 24, 2024
ef46cf5
Fixed capitalization in Interface description (#32739)
scrivoy Oct 10, 2024
f2c79ab
Fix Centcom cloning scanner (#32746)
SaphireLattice Oct 11, 2024
e11d851
Fix random test fail in DeleteAllThenGhost (#32753)
Errant-4 Oct 11, 2024
2c001fb
Make APC UI work correctly with multiple users (#32465)
eoineoineoin Oct 12, 2024
bdf4b7c
Don't error on missing component in ChangeHeat (#32451)
slarticodefast Oct 12, 2024
26b80c3
Fix SpawnAndDeleteAllEntitiesInTheSameSpot heisentest (#32330)
slarticodefast Oct 12, 2024
933d7be
Qm external access (#32631)
pheenty Oct 13, 2024
7fba8a0
Firebot Tweaks (#32629)
Golinth Oct 13, 2024
ca86800
Automatic changelog update
PJBot Oct 13, 2024
110232d
Fixing Thief Beacon Role Check Logic (to use new mindrole system) (#3…
sporkyz Oct 13, 2024
a65d4f8
Increase AI Playtime Requirements (#32007)
BramvanZijp Oct 13, 2024
0a1e6e5
Automatic changelog update
PJBot Oct 13, 2024
a08ba13
Block emotes for sleeping (#32779)
SkaldetSkaeg Oct 13, 2024
cc85213
Automatic changelog update
PJBot Oct 13, 2024
42f03c0
Add poster about the SSD term (#32736)
SlamBamActionman Oct 13, 2024
7423747
Automatic changelog update
PJBot Oct 13, 2024
a926d08
Fix some rounds failing to end due to mind roles (#32792)
PJB3005 Oct 13, 2024
9dcd14e
Warden Hat Texture Change (#32253)
TeaMakiNL Oct 13, 2024
8ed1b2d
rainbow lizard plushie (#32564)
K-Dynamic Oct 13, 2024
22ebbf7
Automatic changelog update
PJBot Oct 13, 2024
8057cee
Add role prototype validation tests (#32801)
ElectroJr Oct 14, 2024
a7c6acd
Hide role entities in the spawn menu (#32798)
ElectroJr Oct 14, 2024
a75c5b7
Fix role ban loading bugs (#32725)
PJB3005 Oct 14, 2024
efcd2a0
Automatic changelog update
PJBot Oct 14, 2024
616bb7b
Fix Industrial Reagent Grinder sprite (#32758)
OnyxTheBrave Oct 14, 2024
c66df62
Jobreq format (#32806)
metalgearsloth Oct 14, 2024
69ecc72
Automatic changelog update
PJBot Oct 14, 2024
59d5a3c
Remove inaccurate admin log when moving a held item (#32525)
ElectroJr Oct 14, 2024
64ef8dd
Add `IsQueuedForDeletion` checks to interaction system (#32526)
ElectroJr Oct 14, 2024
53e4abf
cleanup melee (#32486)
notquitehadouken Oct 14, 2024
5af96d5
Fixed portal artifacts targeting the Ai (#32677)
Gamer3107 Oct 14, 2024
932438b
Automatic changelog update
PJBot Oct 14, 2024
21c600d
Cyborg module action icons (#32505)
ScarKy0 Oct 14, 2024
81873aa
Fix tech anomaly nexttimer (#32805)
metalgearsloth Oct 14, 2024
3865842
Automatic changelog update
PJBot Oct 14, 2024
8d68fed
organ sprite touch-ups (#32762)
muburu Oct 14, 2024
e61ed31
Arcade Prize Additions (#32309)
ada-please Oct 14, 2024
08b0b0d
Automatic changelog update
PJBot Oct 14, 2024
3bd6e3b
Adds nitrogen to engi tank dispenser (#32565)
K-Dynamic Oct 15, 2024
fc00011
Automatic changelog update
PJBot Oct 15, 2024
827b65f
Fix plant holder double solution transfer (#32813)
slarticodefast Oct 16, 2024
6548c98
Automatic changelog update
PJBot Oct 16, 2024
03a54be
New reptile sounds (#32064)
Minemoder5000 Oct 16, 2024
bb808d2
Automatic changelog update
PJBot Oct 16, 2024
a5bcbcf
Fix uplink name (#32846)
lzk228 Oct 16, 2024
b9b3b0d
Fix omega cursed smite code. (#32844)
IProduceWidgets Oct 16, 2024
e077a3f
Automatic changelog update
PJBot Oct 16, 2024
49b1858
fix grappling hooks getting bricked (#32738)
deltanedas Oct 16, 2024
7629eed
FTL coordinate disk command for admins: ftldisk (#28075)
IProduceWidgets Oct 16, 2024
95c3e9c
Automatic changelog update
PJBot Oct 16, 2024
2306368
Several small SFX tweaks (#28897)
LittleNyanCat Oct 17, 2024
8ed2595
Fix Reagent Description for Bananium (#32810)
scrivoy Oct 17, 2024
acb9eed
Added new Microphone instrument style "Kweh" (#32848)
SlamBamActionman Oct 17, 2024
b24e7b4
Automatic changelog update
PJBot Oct 17, 2024
ef54e17
enable ejecting in biogenerator UI (#32854)
deltanedas Oct 17, 2024
192f1d7
Automatic changelog update
PJBot Oct 17, 2024
caab01d
Fix holosignsystem popup (#32808)
lzk228 Oct 17, 2024
33f0a08
Automatic changelog update
PJBot Oct 17, 2024
27f5d6d
Give AI a Sound Cue when an Antimov board is inserted (#32625)
poklj Oct 17, 2024
27978c3
Automatic changelog update
PJBot Oct 17, 2024
e975dbc
Automatic changelog update
PJBot Oct 17, 2024
47ade44
Enhance Vending Machine UI: Adjust Minimum Height for better User Exp…
scrivoy Oct 17, 2024
636ed4e
Change the window titlebar to show the joined server (#32547)
VasilisThePikachu Oct 17, 2024
a26ead4
Automatic changelog update
PJBot Oct 17, 2024
72b2319
Sanitize shorthand emotes throughought the whole message (#28645)
Aeshus Oct 17, 2024
05e9c62
Automatic changelog update
PJBot Oct 17, 2024
b48b1c1
fix playtime stats window (#32856)
slarticodefast Oct 17, 2024
a703816
Automatic changelog update
PJBot Oct 17, 2024
f907921
Fixes smile's ghost role to not need a raffle, very nice (#32837)
Thatonestomf Oct 18, 2024
ede6a8f
Automatic changelog update
PJBot Oct 18, 2024
d43a64f
Added relevant tags to several cakes, and changed chem in Spacemans c…
Catofquestionableethics Oct 18, 2024
4b0f84e
Automatic changelog update
PJBot Oct 18, 2024
eeafe87
Remove flares and shotgun flares from lathe options (#32563)
Plykiya Oct 18, 2024
5a67a45
Automatic changelog update
PJBot Oct 18, 2024
4d47823
Fix PlantHolder interactions & InteractionSystem assert (#32874)
ElectroJr Oct 18, 2024
32aa590
Fix warden being and qm being not considered head for tot kill head o…
pheenty Oct 18, 2024
a8cb319
Automatic changelog update
PJBot Oct 18, 2024
5edeb8e
Automatic changelog update
PJBot Oct 18, 2024
e9638d4
Fix: Radio jammer now doesn't show setting changes to other players (…
beck-thompson Oct 18, 2024
571f2ae
Traitor activation fix for missing PDA (#30359)
Errant-4 Oct 18, 2024
e3ea595
Automatic changelog update
PJBot Oct 18, 2024
31d5291
Fix: Plushies no longer delete items when recycled (#32838)
beck-thompson Oct 18, 2024
b65303c
Automatic changelog update
PJBot Oct 18, 2024
95aaa62
Merge spider clan charges can be armed again (#32866) to Master (#32881)
Errant-4 Oct 18, 2024
be045d0
ghost locator maints loot (#32323)
Ilya246 Oct 18, 2024
ce67a07
Add Towels (#32235)
IProduceWidgets Oct 18, 2024
8933a86
Allow strip removing items if you're holding something (#32750)
PJB3005 Oct 18, 2024
3a196cb
Automatic changelog update
PJBot Oct 18, 2024
61025a7
Scalpels now cut like knives (#32858)
beck-thompson Oct 19, 2024
7ea34b9
Automatic changelog update
PJBot Oct 19, 2024
d523b1f
exponential backoff for admin logs db update (#32865)
MendaxxDev Oct 19, 2024
aeeb474
HOTFIX submodule update (#32897)
PJB3005 Oct 19, 2024
1d08972
Automatic changelog update
PJBot Oct 19, 2024
30fef5f
Fix for low zombie blood (#32532)
insoPL Oct 19, 2024
0985425
Automatic changelog update
PJBot Oct 19, 2024
920c92f
MMIs and positronic brains now talk like pAIs in plushies (#32914)
beck-thompson Oct 20, 2024
2d65095
Automatic changelog update
PJBot Oct 20, 2024
f348741
Blunt damage will do stamina damage on wide attacks (#32422)
Calecute Oct 20, 2024
83174f6
Automatic changelog update
PJBot Oct 20, 2024
dc392ca
Fix starting gear multiple storage fills and tests (#32718)
Zap527 Oct 20, 2024
0b504cf
System to automatically restart server after certain uptime. (#32814)
PJB3005 Oct 20, 2024
9d86beb
Mutetoxin buff (#32915)
Thatonestomf Oct 21, 2024
71ae63b
Automatic changelog update
PJBot Oct 21, 2024
d590f5f
prevent typing sound from playing when AI interacts with consoles (#3…
MendaxxDev Oct 21, 2024
3515ca8
Automatic changelog update
PJBot Oct 21, 2024
b8c54c7
Let station AI use long range fax machines (#32929)
NoElkaTheGod Oct 21, 2024
14a2f2f
Automatic changelog update
PJBot Oct 21, 2024
6c93cb9
Automatic changelog update
PJBot Oct 22, 2024
6a8a703
Ammo boxes now have sprites for being parially filled! (#32930)
Moomoobeef Oct 22, 2024
abca2c0
Automatic changelog update
PJBot Oct 22, 2024
87b100b
Syringe gun! (#32112)
ScarKy0 Oct 22, 2024
831e646
Automatic changelog update
PJBot Oct 22, 2024
3801465
Adding intellicard functionality. (#32347)
ScarKy0 Oct 22, 2024
1ff1c12
Automatic changelog update
PJBot Oct 22, 2024
5cde3c7
Add Nuclear Cola centrifuge recipe (#32441)
southbridge-fur Oct 22, 2024
f1d0568
Automatic changelog update
PJBot Oct 22, 2024
a554fb5
Several Ninja Suit power cell upgrade fixes. (#32902)
BramvanZijp Oct 22, 2024
bab746c
Automatic changelog update
PJBot Oct 22, 2024
9079cd7
In-hand apprasial tool sprite (#32849)
UBlueberry Oct 22, 2024
4469cd2
Automatic changelog update
PJBot Oct 22, 2024
deaf652
Visualized regions for NavMapControl (#31910)
chromiumboy Oct 23, 2024
e52a4a1
Automatic changelog update
PJBot Oct 23, 2024
6a533f2
:trollface:
Oct 24, 2024
a2281c8
early merge of #32940
Oct 24, 2024
931b808
:trollface:
Oct 24, 2024
3e3f971
:trollface:
Oct 24, 2024
cb4b4d6
untroll centcomm
Oct 24, 2024
9f535fa
dont spawn ghost locator
Oct 24, 2024
76a59cc
adds Meat Tag to FoodMeatSnake (#32965)
hyphenationc Oct 24, 2024
772ddf0
Automatic changelog update
PJBot Oct 24, 2024
7364ae4
Fix Emote Chat Sanitizer (#32940)
Aeshus Oct 24, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
54 changes: 54 additions & 0 deletions Content.Client/Atmos/Consoles/AtmosAlertsComputerWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public sealed partial class AtmosAlertsComputerWindow : FancyWindow
{
private readonly IEntityManager _entManager;
private readonly SpriteSystem _spriteSystem;
private readonly SharedNavMapSystem _navMapSystem;

private EntityUid? _owner;
private NetEntity? _trackedEntity;
Expand All @@ -47,6 +48,7 @@ public AtmosAlertsComputerWindow(AtmosAlertsComputerBoundUserInterface userInter
RobustXamlLoader.Load(this);
_entManager = IoCManager.Resolve<IEntityManager>();
_spriteSystem = _entManager.System<SpriteSystem>();
_navMapSystem = _entManager.System<SharedNavMapSystem>();

// Pass the owner to nav map
_owner = owner;
Expand Down Expand Up @@ -179,6 +181,9 @@ public void UpdateUI(EntityCoordinates? consoleCoords, AtmosAlertsComputerEntry[
// Add tracked entities to the nav map
foreach (var device in console.AtmosDevices)
{
if (!device.NetEntity.Valid)
continue;

if (!NavMap.Visible)
continue;

Expand Down Expand Up @@ -270,6 +275,34 @@ public void UpdateUI(EntityCoordinates? consoleCoords, AtmosAlertsComputerEntry[
else
MasterTabContainer.SetTabTitle(0, Loc.GetString("atmos-alerts-window-tab-alerts", ("value", activeAlarmCount)));

// Update sensor regions
NavMap.RegionOverlays.Clear();
var prioritizedRegionOverlays = new Dictionary<NavMapRegionOverlay, int>();

if (_owner != null &&
_entManager.TryGetComponent<TransformComponent>(_owner, out var xform) &&
_entManager.TryGetComponent<NavMapComponent>(xform.GridUid, out var navMap))
{
var regionOverlays = _navMapSystem.GetNavMapRegionOverlays(_owner.Value, navMap, AtmosAlertsComputerUiKey.Key);

foreach (var (regionOwner, regionOverlay) in regionOverlays)
{
var alarmState = GetAlarmState(regionOwner);

if (!TryGetSensorRegionColor(regionOwner, alarmState, out var regionColor))
continue;

regionOverlay.Color = regionColor.Value;

var priority = (_trackedEntity == regionOwner) ? 999 : (int)alarmState;
prioritizedRegionOverlays.Add(regionOverlay, priority);
}

// Sort overlays according to their priority
var sortedOverlays = prioritizedRegionOverlays.OrderBy(x => x.Value).Select(x => x.Key).ToList();
NavMap.RegionOverlays = sortedOverlays;
}

// Auto-scroll re-enable
if (_autoScrollAwaitsUpdate)
{
Expand Down Expand Up @@ -298,6 +331,27 @@ private void AddTrackedEntityToNavMap(AtmosAlertsDeviceNavMapData metaData, Atmo
NavMap.TrackedEntities[metaData.NetEntity] = blip;
}

private bool TryGetSensorRegionColor(NetEntity regionOwner, AtmosAlarmType alarmState, [NotNullWhen(true)] out Color? color)
{
color = null;

var blip = GetBlipTexture(alarmState);

if (blip == null)
return false;

// DeltaV: fix client until upstream does
// Color the region based on alarm state and entity tracking
var output = blip.Value.Item2 * new Color(154, 154, 154);

if (_trackedEntity != null && _trackedEntity != regionOwner)
output *= Color.DimGray;

color = output;

return true;
}

private void UpdateUIEntry(AtmosAlertsComputerEntry entry, int index, Control table, AtmosAlertsComputerComponent console, AtmosAlertsFocusDeviceData? focusData = null)
{
// Make new UI entry if required
Expand Down
9 changes: 9 additions & 0 deletions Content.Client/Entry/EntryPoint.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using Content.Client.DebugMon;
using Content.Client.Eui;
using Content.Client.Fullscreen;
using Content.Client.GameTicking.Managers;
using Content.Client.GhostKick;
using Content.Client.Guidebook;
using Content.Client.Input;
Expand Down Expand Up @@ -70,6 +71,7 @@ public sealed class EntryPoint : GameClient
[Dependency] private readonly IReplayLoadManager _replayLoad = default!;
[Dependency] private readonly ILogManager _logManager = default!;
[Dependency] private readonly DebugMonitorManager _debugMonitorManager = default!;
[Dependency] private readonly TitleWindowManager _titleWindowManager = default!;

public override void Init()
{
Expand Down Expand Up @@ -140,6 +142,12 @@ public override void Init()
_configManager.SetCVar("interface.resolutionAutoScaleMinimum", 0.5f);
}

public override void Shutdown()
{
base.Shutdown();
_titleWindowManager.Shutdown();
}

public override void PostInit()
{
base.PostInit();
Expand All @@ -160,6 +168,7 @@ public override void PostInit()
_userInterfaceManager.SetDefaultTheme("SS14DefaultTheme");
_userInterfaceManager.SetActiveTheme(_configManager.GetCVar(CVars.InterfaceTheme));
_documentParsingManager.Initialize();
_titleWindowManager.Initialize();

_baseClient.RunLevelChanged += (_, args) =>
{
Expand Down
62 changes: 62 additions & 0 deletions Content.Client/GameTicking/Managers/TitleWindowManager.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
using Content.Shared.CCVar;
using Robust.Client;
using Robust.Client.Graphics;
using Robust.Shared;
using Robust.Shared.Configuration;

namespace Content.Client.GameTicking.Managers;

public sealed class TitleWindowManager
{
[Dependency] private readonly IBaseClient _client = default!;
[Dependency] private readonly IClyde _clyde = default!;
[Dependency] private readonly IConfigurationManager _cfg = default!;
[Dependency] private readonly IGameController _gameController = default!;

public void Initialize()
{
_cfg.OnValueChanged(CVars.GameHostName, OnHostnameChange, true);
_cfg.OnValueChanged(CCVars.GameHostnameInTitlebar, OnHostnameTitleChange, true);

_client.RunLevelChanged += OnRunLevelChangedChange;
}

public void Shutdown()
{
_cfg.UnsubValueChanged(CVars.GameHostName, OnHostnameChange);
_cfg.UnsubValueChanged(CCVars.GameHostnameInTitlebar, OnHostnameTitleChange);
}

private void OnHostnameChange(string hostname)
{
var defaultWindowTitle = _gameController.GameTitle();

// Since the game assumes the server name is MyServer and that GameHostnameInTitlebar CCVar is true by default
// Lets just... not show anything. This also is used to revert back to just the game title on disconnect.
if (_client.RunLevel == ClientRunLevel.Initialize)
{
_clyde.SetWindowTitle(defaultWindowTitle);
return;
}

if (_cfg.GetCVar(CCVars.GameHostnameInTitlebar))
// If you really dislike the dash I guess change it here
_clyde.SetWindowTitle(hostname + " - " + defaultWindowTitle);
else
_clyde.SetWindowTitle(defaultWindowTitle);
}

// Clients by default assume game.hostname_in_titlebar is true
// but we need to clear it as soon as we join and actually receive the servers preference on this.
// This will ensure we rerun OnHostnameChange and set the correct title bar name.
private void OnHostnameTitleChange(bool colonthree)
{
OnHostnameChange(_cfg.GetCVar(CVars.GameHostName));
}

// This is just used we can rerun the hostname change function when we disconnect to revert back to just the games title.
private void OnRunLevelChangedChange(object? sender, RunLevelChangedEventArgs runLevelChangedEventArgs)
{
OnHostnameChange(_cfg.GetCVar(CVars.GameHostName));
}
}
4 changes: 2 additions & 2 deletions Content.Client/Hands/Systems/HandsSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,9 @@ public void ReloadHandButtons()
OnPlayerHandsAdded?.Invoke(hands);
}

public override void DoDrop(EntityUid uid, Hand hand, bool doDropInteraction = true, HandsComponent? hands = null)
public override void DoDrop(EntityUid uid, Hand hand, bool doDropInteraction = true, HandsComponent? hands = null, bool log = true)
{
base.DoDrop(uid, hand, doDropInteraction, hands);
base.DoDrop(uid, hand, doDropInteraction, hands, log);

if (TryComp(hand.HeldEntity, out SpriteComponent? sprite))
sprite.RenderOrder = EntityManager.CurrentTick.Value;
Expand Down
11 changes: 1 addition & 10 deletions Content.Client/Info/PlaytimeStats/PlaytimeStatsEntry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,10 @@ public PlaytimeStatsEntry(string role, TimeSpan playtime, StyleBox styleBox)

RoleLabel.Text = role;
Playtime = playtime; // store the TimeSpan value directly
PlaytimeLabel.Text = ConvertTimeSpanToHoursMinutes(playtime); // convert to string for display
PlaytimeLabel.Text = playtime.ToString(Loc.GetString("ui-playtime-time-format")); // convert to string for display
BackgroundColorPanel.PanelOverride = styleBox;
}

private static string ConvertTimeSpanToHoursMinutes(TimeSpan timeSpan)
{
var hours = (int)timeSpan.TotalHours;
var minutes = timeSpan.Minutes;

var formattedTimeLoc = Loc.GetString("ui-playtime-time-format", ("hours", hours), ("minutes", minutes));
return formattedTimeLoc;
}

public void UpdateShading(StyleBoxFlat styleBox)
{
BackgroundColorPanel.PanelOverride = styleBox;
Expand Down
11 changes: 1 addition & 10 deletions Content.Client/Info/PlaytimeStats/PlaytimeStatsWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ private void PopulatePlaytimeData()
{
var overallPlaytime = _jobRequirementsManager.FetchOverallPlaytime();

var formattedPlaytime = ConvertTimeSpanToHoursMinutes(overallPlaytime);
var formattedPlaytime = overallPlaytime.ToString(Loc.GetString("ui-playtime-time-format"));
OverallPlaytimeLabel.Text = Loc.GetString("ui-playtime-overall", ("time", formattedPlaytime));

var rolePlaytimes = _jobRequirementsManager.FetchPlaytimeByRoles();
Expand Down Expand Up @@ -134,13 +134,4 @@ private void AddRolePlaytimeEntryToTable(string role, string playtimeString)
_sawmill.Error($"The provided playtime string '{playtimeString}' is not in the correct format.");
}
}

private static string ConvertTimeSpanToHoursMinutes(TimeSpan timeSpan)
{
var hours = (int) timeSpan.TotalHours;
var minutes = timeSpan.Minutes;

var formattedTimeLoc = Loc.GetString("ui-playtime-time-format", ("hours", hours), ("minutes", minutes));
return formattedTimeLoc;
}
}
2 changes: 2 additions & 0 deletions Content.Client/IoC/ClientContentIoC.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
using Content.Client.DebugMon;
using Content.Client.Eui;
using Content.Client.Fullscreen;
using Content.Client.GameTicking.Managers;
using Content.Client.GhostKick;
using Content.Client.Guidebook;
using Content.Client.Launcher;
Expand Down Expand Up @@ -57,6 +58,7 @@ public static void Register()
collection.Register<DebugMonitorManager>();
collection.Register<PlayerRateLimitManager>();
collection.Register<SharedPlayerRateLimitManager, PlayerRateLimitManager>();
collection.Register<TitleWindowManager>();
}
}
}
Loading
Loading