Airlock icon smoothing (#2789)
Co-authored-by: Metal Gear Sloth <metalgearsloth@gmail.com>
This commit is contained in:
@@ -105,11 +105,11 @@ namespace Content.Client.GameObjects.Components.IconSmoothing
|
|||||||
case IconSmoothingMode.Corners:
|
case IconSmoothingMode.Corners:
|
||||||
CalculateNewSpriteCorners();
|
CalculateNewSpriteCorners();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case IconSmoothingMode.CardinalFlags:
|
case IconSmoothingMode.CardinalFlags:
|
||||||
CalculateNewSpriteCardinal();
|
CalculateNewSpriteCardinal();
|
||||||
break;
|
break;
|
||||||
|
case IconSmoothingMode.NoSprite:
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
throw new ArgumentOutOfRangeException();
|
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.
|
/// The icon selected is a bit field made up of the cardinal direction flags that have adjacent entities.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
CardinalFlags,
|
CardinalFlags,
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Where this component contributes to our neighbors being calculated but we do not update our own sprite.
|
||||||
|
/// </summary>
|
||||||
|
NoSprite,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -64,6 +64,9 @@
|
|||||||
behaviors:
|
behaviors:
|
||||||
- !type:DoActsBehavior
|
- !type:DoActsBehavior
|
||||||
acts: ["Destruction"]
|
acts: ["Destruction"]
|
||||||
|
- type: IconSmooth
|
||||||
|
key: walls
|
||||||
|
mode: NoSprite
|
||||||
placement:
|
placement:
|
||||||
mode: SnapgridCenter
|
mode: SnapgridCenter
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user