From e0d30aff4eb1b3d23fa917500a0ede7d2cc6d1b9 Mon Sep 17 00:00:00 2001 From: slarticodefast <161409025+slarticodefast@users.noreply.github.com> Date: Fri, 9 Aug 2024 08:14:07 +0200 Subject: [PATCH] Add tooltips to the agent ID job icons and improve status icon prototypes (#28575) * add tooltips to agentid job icons * forgot to stage this * make StatusIconPrototype abstract * minor visual improvements * cleanup * use currentculture to sort job names * review --- .../UI/AgentIDCardBoundUserInterface.cs | 4 +- .../Access/UI/AgentIDCardWindow.xaml | 11 +- .../Access/UI/AgentIDCardWindow.xaml.cs | 22 +-- .../CrewManifest/UI/CrewManifestSection.cs | 2 +- .../CrewMonitoringWindow.xaml.cs | 2 +- .../Overlays/EntityHealthBarOverlay.cs | 2 +- .../Overlays/ShowHealthIconsSystem.cs | 6 +- Content.Client/Overlays/ShowJobIconsSystem.cs | 4 +- .../Overlays/ShowSyndicateIconsSystem.cs | 2 +- .../Access/Components/AgentIDCardComponent.cs | 20 +- .../Access/Systems/AgentIDCardSystem.cs | 4 +- .../Medical/SuitSensors/SuitSensorSystem.cs | 3 +- .../Access/Components/IdCardComponent.cs | 16 +- .../Access/SharedAgentIDCardSystem.cs | 8 +- .../Access/Systems/SharedIdCardSystem.cs | 2 +- .../Damage/Components/DamageableComponent.cs | 4 +- .../Components/MindShieldComponent.cs | 2 +- .../NukeOps/NukeOperativeComponent.cs | 2 +- .../Nutrition/EntitySystems/HungerSystem.cs | 14 +- .../Nutrition/EntitySystems/ThirstSystem.cs | 14 +- .../Overlays/ShowHealthBarsComponent.cs | 2 +- .../Components/HeadRevolutionaryComponent.cs | 2 +- .../Components/RevolutionaryComponent.cs | 2 +- Content.Shared/Roles/JobPrototype.cs | 2 +- .../SSDIndicator/SSDIndicatorComponent.cs | 2 +- .../Components/CriminalRecordComponent.cs | 2 +- .../StatusIcon/StatusIconPrototype.cs | 130 ++++++++++++- .../Zombies/InitialInfectedComponent.cs | 2 +- Content.Shared/Zombies/ZombieComponent.cs | 2 +- Resources/Locale/en-US/job/job-names.ftl | 12 ++ .../Objects/Misc/identification_cards.yml | 48 ----- .../StatusIcon/StatusEffects/health.yml | 10 +- .../{hunger.yml => satiation.yml} | 16 +- .../StatusIcon/StatusEffects/ssd.yml | 2 +- Resources/Prototypes/StatusIcon/debug.yml | 6 +- .../StatusIcon/{antag.yml => faction.yml} | 20 +- Resources/Prototypes/StatusIcon/job.yml | 172 ++++++++++++------ Resources/Prototypes/StatusIcon/security.yml | 22 ++- 38 files changed, 362 insertions(+), 236 deletions(-) rename Resources/Prototypes/StatusIcon/StatusEffects/{hunger.yml => satiation.yml} (84%) rename Resources/Prototypes/StatusIcon/{antag.yml => faction.yml} (77%) diff --git a/Content.Client/Access/UI/AgentIDCardBoundUserInterface.cs b/Content.Client/Access/UI/AgentIDCardBoundUserInterface.cs index 50add43dc9..050756fcd1 100644 --- a/Content.Client/Access/UI/AgentIDCardBoundUserInterface.cs +++ b/Content.Client/Access/UI/AgentIDCardBoundUserInterface.cs @@ -38,7 +38,7 @@ namespace Content.Client.Access.UI SendMessage(new AgentIDCardJobChangedMessage(newJob)); } - public void OnJobIconChanged(ProtoId newJobIconId) + public void OnJobIconChanged(ProtoId newJobIconId) { SendMessage(new AgentIDCardJobIconChangedMessage(newJobIconId)); } @@ -55,7 +55,7 @@ namespace Content.Client.Access.UI _window.SetCurrentName(cast.CurrentName); _window.SetCurrentJob(cast.CurrentJob); - _window.SetAllowedIcons(cast.Icons, cast.CurrentJobIconId); + _window.SetAllowedIcons(cast.CurrentJobIconId); } } } diff --git a/Content.Client/Access/UI/AgentIDCardWindow.xaml b/Content.Client/Access/UI/AgentIDCardWindow.xaml index 89de793714..7d091e4e16 100644 --- a/Content.Client/Access/UI/AgentIDCardWindow.xaml +++ b/Content.Client/Access/UI/AgentIDCardWindow.xaml @@ -6,12 +6,9 @@