using Content.Shared.Inventory.Events; using Content.Shared.Overlays; namespace Content.Client.Overlays; // The GetStatusIconsEvent subscription is handled in JobStatusSystem public sealed class ShowCrewIconsSystem : EquipmentHudSystem { public bool UncertainCrewBorder = false; public override void Initialize() { base.Initialize(); SubscribeLocalEvent(OnHandleState); } protected override void UpdateInternal(RefreshEquipmentHudEvent component) { base.UpdateInternal(component); UncertainCrewBorder = false; foreach (var comp in component.Components) { if (comp.UncertainCrewBorder) UncertainCrewBorder = true; } } private void OnHandleState(Entity ent, ref AfterAutoHandleStateEvent args) { RefreshOverlay(); } }