From 504b0c07c8c1268379b4c1603f4fab4a8a3fec3e Mon Sep 17 00:00:00 2001 From: Aviu00 Date: Fri, 19 Jan 2024 11:19:58 +0300 Subject: [PATCH] Hud fix --- Content.Client/Overlays/ShowHealthIconsSystem.cs | 2 +- Resources/Prototypes/Entities/Clothing/Eyes/hud.yml | 8 ++++++++ Resources/Prototypes/StatusEffects/health.yml | 4 ++-- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/Content.Client/Overlays/ShowHealthIconsSystem.cs b/Content.Client/Overlays/ShowHealthIconsSystem.cs index 777af55c9c..6ed9d6a41d 100644 --- a/Content.Client/Overlays/ShowHealthIconsSystem.cs +++ b/Content.Client/Overlays/ShowHealthIconsSystem.cs @@ -18,7 +18,7 @@ public sealed class ShowHealthIconsSystem : EquipmentHudSystem DamageContainers = new(); [ValidatePrototypeId] - private const string HealthIconFine = "HealthIconLife"; // WD EDIT + private const string HealthIconFine = "HealthIconFine"; public override void Initialize() { diff --git a/Resources/Prototypes/Entities/Clothing/Eyes/hud.yml b/Resources/Prototypes/Entities/Clothing/Eyes/hud.yml index d77f7a55bc..994dcd9c35 100644 --- a/Resources/Prototypes/Entities/Clothing/Eyes/hud.yml +++ b/Resources/Prototypes/Entities/Clothing/Eyes/hud.yml @@ -159,6 +159,14 @@ - type: Clothing sprite: Clothing/Eyes/Hud/medsec.rsi - type: ShowSecurityIcons + - type: ShowHealthIcons + damageContainers: + - Biological + - type: ClothingGrantComponent + component: + - type: ShowWhiteHealthBars + damageContainers: + - Biological - type: entity parent: ClothingEyesBase diff --git a/Resources/Prototypes/StatusEffects/health.yml b/Resources/Prototypes/StatusEffects/health.yml index 8516c9aee9..355b9acbb7 100644 --- a/Resources/Prototypes/StatusEffects/health.yml +++ b/Resources/Prototypes/StatusEffects/health.yml @@ -2,6 +2,6 @@ id: HealthIconFine priority: 0 icon: - sprite: Interface/Misc/health_icons.rsi - state: Fine + sprite: Interface/Misc/health_state.rsi + state: life_state locationPreference: Right