From e083b33aae967a2b86705fe0b92c1d56d5807bf4 Mon Sep 17 00:00:00 2001 From: PrPleGoo Date: Tue, 1 Aug 2023 23:17:03 +0200 Subject: [PATCH] security HUD now shows a job icon on entities with a body (#18054) --- .../Access/UI/AgentIDCardWindow.xaml | 2 +- Content.Client/Overlays/EquipmentHudSystem.cs | 117 ++++++++++++++++++ .../Overlays/ShowSecurityIconsSystem.cs | 73 +++++++++++ .../StatusIcon/StatusIconOverlay.cs | 22 ++-- Content.Client/StatusIcon/StatusIconSystem.cs | 2 +- .../Events/RefreshEquipmentHudEvent.cs | 13 ++ .../Inventory/InventorySystem.Relay.cs | 7 +- .../Overlays/ShowSecurityIconsComponent.cs | 10 ++ .../StatusIcon/StatusIconPrototype.cs | 16 ++- .../Prototypes/Entities/Clothing/Eyes/hud.yml | 4 + Resources/Prototypes/StatusEffects/job.yml | 3 +- 11 files changed, 256 insertions(+), 13 deletions(-) create mode 100644 Content.Client/Overlays/EquipmentHudSystem.cs create mode 100644 Content.Client/Overlays/ShowSecurityIconsSystem.cs create mode 100644 Content.Shared/Inventory/Events/RefreshEquipmentHudEvent.cs create mode 100644 Content.Shared/Overlays/ShowSecurityIconsComponent.cs diff --git a/Content.Client/Access/UI/AgentIDCardWindow.xaml b/Content.Client/Access/UI/AgentIDCardWindow.xaml index 4947cd7f10..89de793714 100644 --- a/Content.Client/Access/UI/AgentIDCardWindow.xaml +++ b/Content.Client/Access/UI/AgentIDCardWindow.xaml @@ -6,7 +6,7 @@