From: Kara Date: Sat, 27 Jan 2024 17:43:45 +0000 (-0700) Subject: Powered light sprite glows with color of their pointlight (#24612) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=4ab69709fe38c93ea4617a21ca93c21a756b48d6;p=space-station-14.git Powered light sprite glows with color of their pointlight (#24612) --- diff --git a/Content.Client/Light/Visualizers/PoweredLightVisualizerSystem.cs b/Content.Client/Light/Visualizers/PoweredLightVisualizerSystem.cs index db703128a3..2dc7f5a822 100644 --- a/Content.Client/Light/Visualizers/PoweredLightVisualizerSystem.cs +++ b/Content.Client/Light/Visualizers/PoweredLightVisualizerSystem.cs @@ -31,7 +31,14 @@ public sealed class PoweredLightVisualizerSystem : VisualizerSystem(uid, out var light)) + { + args.Sprite.LayerSetColor(PoweredLightLayers.Glow, light.Color); + } + args.Sprite.LayerSetVisible(PoweredLightLayers.Glow, state == PoweredLightState.On); + } SetBlinkingAnimation( uid,