From 0f7189e8b57a7afee96fb8865368b57782cb9799 Mon Sep 17 00:00:00 2001 From: coolmankid12345 <55817627+coolmankid12345@users.noreply.github.com> Date: Sat, 2 Dec 2023 12:21:10 -0500 Subject: [PATCH] Ghetto Mindshield Icon (#20958) * Looks like shit frfr * White for sure * New icon --------- Co-authored-by: coolmankid12345 --- .../Overlays/ShowSecurityIconsSystem.cs | 7 +++++++ .../Mindshield/Components/MindShieldComponent.cs | 4 ++++ Resources/Prototypes/StatusIcon/antag.yml | 8 ++++++++ .../Interface/Misc/job_icons.rsi/MindShield.png | Bin 0 -> 198 bytes .../Interface/Misc/job_icons.rsi/meta.json | 5 ++++- 5 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 Resources/Textures/Interface/Misc/job_icons.rsi/MindShield.png diff --git a/Content.Client/Overlays/ShowSecurityIconsSystem.cs b/Content.Client/Overlays/ShowSecurityIconsSystem.cs index cbf8044a60..28984c6f7a 100644 --- a/Content.Client/Overlays/ShowSecurityIconsSystem.cs +++ b/Content.Client/Overlays/ShowSecurityIconsSystem.cs @@ -1,5 +1,6 @@ using Content.Shared.Access.Components; using Content.Shared.Access.Systems; +using Content.Shared.Mindshield.Components; using Content.Shared.Overlays; using Content.Shared.PDA; using Content.Shared.StatusIcon; @@ -66,6 +67,12 @@ public sealed class ShowSecurityIconsSystem : EquipmentHudSystem(uid, out var comp)) + { + if (_prototypeMan.TryIndex(comp.MindShieldStatusIcon.Id, out var icon)) + result.Add(icon); + } + // Add arrest icons here, WYCI. return result; diff --git a/Content.Shared/Mindshield/Components/MindShieldComponent.cs b/Content.Shared/Mindshield/Components/MindShieldComponent.cs index 1cc21d14bd..235862ed02 100644 --- a/Content.Shared/Mindshield/Components/MindShieldComponent.cs +++ b/Content.Shared/Mindshield/Components/MindShieldComponent.cs @@ -1,5 +1,7 @@ using Content.Shared.Revolutionary; using Robust.Shared.GameStates; +using Content.Shared.StatusIcon; +using Robust.Shared.Prototypes; namespace Content.Shared.Mindshield.Components; @@ -9,4 +11,6 @@ namespace Content.Shared.Mindshield.Components; [RegisterComponent, NetworkedComponent, Access(typeof(SharedRevolutionarySystem))] public sealed partial class MindShieldComponent : Component { + [DataField, ViewVariables(VVAccess.ReadWrite)] + public ProtoId MindShieldStatusIcon = "MindShieldIcon"; } diff --git a/Resources/Prototypes/StatusIcon/antag.yml b/Resources/Prototypes/StatusIcon/antag.yml index 6016d0c94e..a3fb072722 100644 --- a/Resources/Prototypes/StatusIcon/antag.yml +++ b/Resources/Prototypes/StatusIcon/antag.yml @@ -19,6 +19,14 @@ sprite: Interface/Misc/job_icons.rsi state: HeadRevolutionary +- type: statusIcon + id: MindShieldIcon + priority: 2 + locationPreference: Right + icon: + sprite: Interface/Misc/job_icons.rsi + state: MindShield + - type: statusIcon id: SyndicateFaction priority: 0 diff --git a/Resources/Textures/Interface/Misc/job_icons.rsi/MindShield.png b/Resources/Textures/Interface/Misc/job_icons.rsi/MindShield.png new file mode 100644 index 0000000000000000000000000000000000000000..3049f3e50fb191c57f2e998cce388e598b871158 GIT binary patch literal 198 zcmeAS@N?(olHy`uVBq!ia0vp^93afW1|*O0@9PFqjKx9jP7LeL$-D$|SkfJR9T^xl z_H+M9WCij$3p^r=85sBugD~Uq{1quc!Dvqx#}JL+tDnm{r-UW|Vx~Bg literal 0 HcmV?d00001 diff --git a/Resources/Textures/Interface/Misc/job_icons.rsi/meta.json b/Resources/Textures/Interface/Misc/job_icons.rsi/meta.json index 8a710b63ec..da00077fbd 100644 --- a/Resources/Textures/Interface/Misc/job_icons.rsi/meta.json +++ b/Resources/Textures/Interface/Misc/job_icons.rsi/meta.json @@ -1,7 +1,7 @@ { "version": 1, "license": "CC-BY-SA-3.0", - "copyright": "Taken from https://github.com/vgstation-coders/vgstation13/blob/e71d6c4fba5a51f99b81c295dcaec4fc2f58fb19/icons/mob/screen1.dmi | Brigmedic icon made by PuroSlavKing (Github) | Zombie icon made by RamZ | Zookeper by netwy (discort) | Rev and Head Rev icon taken from https://tgstation13.org/wiki/HUD and edited by coolmankid12345 (Discord)", + "copyright": "Taken from https://github.com/vgstation-coders/vgstation13/blob/e71d6c4fba5a51f99b81c295dcaec4fc2f58fb19/icons/mob/screen1.dmi | Brigmedic icon made by PuroSlavKing (Github) | Zombie icon made by RamZ | Zookeper by netwy (discort) | Rev and Head Rev icon taken from https://tgstation13.org/wiki/HUD and edited by coolmankid12345 (Discord) | Mindshield icon made by Psychpsyo (Github)", "size": { "x": 8, @@ -170,6 +170,9 @@ { "name": "HeadRevolutionary" }, + { + "name": "MindShield" + }, { "name": "Syndicate" }