From 24d1c967b6814e26709c5fe9727033c2a310f049 Mon Sep 17 00:00:00 2001 From: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Date: Sat, 26 Dec 2020 19:24:03 +1100 Subject: [PATCH] Airlock icon smoothing (#2789) Co-authored-by: Metal Gear Sloth --- .../Components/IconSmoothing/IconSmoothComponent.cs | 9 +++++++-- .../Entities/Constructible/Doors/airlock_base.yml | 3 +++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/Content.Client/GameObjects/Components/IconSmoothing/IconSmoothComponent.cs b/Content.Client/GameObjects/Components/IconSmoothing/IconSmoothComponent.cs index e6d4101c0a..087cb504db 100644 --- a/Content.Client/GameObjects/Components/IconSmoothing/IconSmoothComponent.cs +++ b/Content.Client/GameObjects/Components/IconSmoothing/IconSmoothComponent.cs @@ -105,11 +105,11 @@ namespace Content.Client.GameObjects.Components.IconSmoothing case IconSmoothingMode.Corners: CalculateNewSpriteCorners(); break; - case IconSmoothingMode.CardinalFlags: CalculateNewSpriteCardinal(); break; - + case IconSmoothingMode.NoSprite: + break; default: throw new ArgumentOutOfRangeException(); } @@ -303,5 +303,10 @@ namespace Content.Client.GameObjects.Components.IconSmoothing /// The icon selected is a bit field made up of the cardinal direction flags that have adjacent entities. /// CardinalFlags, + + /// + /// Where this component contributes to our neighbors being calculated but we do not update our own sprite. + /// + NoSprite, } } diff --git a/Resources/Prototypes/Entities/Constructible/Doors/airlock_base.yml b/Resources/Prototypes/Entities/Constructible/Doors/airlock_base.yml index 0d60674560..4358793df8 100644 --- a/Resources/Prototypes/Entities/Constructible/Doors/airlock_base.yml +++ b/Resources/Prototypes/Entities/Constructible/Doors/airlock_base.yml @@ -64,6 +64,9 @@ behaviors: - !type:DoActsBehavior acts: ["Destruction"] + - type: IconSmooth + key: walls + mode: NoSprite placement: mode: SnapgridCenter