[Dependency] private readonly IEntitySystemManager _entitySystem = default!;
[Dependency] private readonly JobRequirementsManager _jobRequirements = default!;
[Dependency] private readonly IClientPreferencesManager _preferencesManager = default!;
+ [Dependency] private readonly ILogManager _logManager = default!;
public event Action<(NetEntity, string)> SelectedId;
private readonly ClientGameTicker _gameTicker;
private readonly SpriteSystem _sprites;
private readonly CrewManifestSystem _crewManifest;
+ private readonly ISawmill _sawmill;
private readonly Dictionary<NetEntity, Dictionary<string, List<JobButton>>> _jobButtons = new();
private readonly Dictionary<NetEntity, Dictionary<string, BoxContainer>> _jobCategories = new();
_sprites = _entitySystem.GetEntitySystem<SpriteSystem>();
_crewManifest = _entitySystem.GetEntitySystem<CrewManifestSystem>();
_gameTicker = _entitySystem.GetEntitySystem<ClientGameTicker>();
+ _sawmill = _logManager.GetSawmill("latejoin.panel");
Title = Loc.GetString("late-join-gui-title");
SelectedId += x =>
{
var (station, jobId) = x;
- Logger.InfoS("latejoin", $"Late joining as ID: {jobId}");
+ _sawmill.Info($"Late joining as ID: {jobId}");
_consoleHost.ExecuteCommand($"joingame {CommandParsing.Escape(jobId)} {station}");
Close();
};
_jobCategories.Clear();
if (!_gameTicker.DisallowedLateJoin && _gameTicker.StationNames.Count == 0)
- Logger.Warning("No stations exist, nothing to display in late-join GUI");
+ _sawmill.Warning("No stations exist, nothing to display in late-join GUI");
foreach (var (id, name) in _gameTicker.StationNames)
{