CatStation/Content.Shared/Sprite/SpriteFadeComponent.cs
Xeri Marai fcc7f9e7f8
Sprite Fade Overlay Restricted to overlapping clickables (#37907)
* Sprite Fade Overlay Restricted to overlapping clickables

* Added an IgnoreClickableRestrict for larger objects, and put it on Anomaly Generator as an example

* Adjusting fade changes based on review

* double for avoid

* {

* fsnjhjasfhfsajkasfhj

---------

Co-authored-by: jessicamaybe <jessica@jessicamaybe.com>
Co-authored-by: Princess Cheeseballs <66055347+Princess-Cheeseballs@users.noreply.github.com>
2026-06-29 05:54:09 +00:00

16 lines
496 B
C#

using Robust.Shared.GameStates;
namespace Content.Shared.Sprite;
/// <summary>
/// If your client entity is behind this then the sprite's alpha will be lowered so your entity remains visible.
/// </summary>
[RegisterComponent, NetworkedComponent]
public sealed partial class SpriteFadeComponent : Component
{
/// <summary>
/// If true, fades the item even if there is nothing else clickable behind the hovered point.
/// </summary>
[DataField]
public bool AlwaysFade;
}