]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
made evac signs glow (#38545)
authorMoomoobeef <62638182+Moomoobeef@users.noreply.github.com>
Sat, 4 Oct 2025 20:16:27 +0000 (13:16 -0700)
committerGitHub <noreply@github.com>
Sat, 4 Oct 2025 20:16:27 +0000 (20:16 +0000)
Co-authored-by: Ed <96445749+TheShuEd@users.noreply.github.com>
Resources/Prototypes/Entities/Structures/Wallmounts/Signs/signs.yml
Resources/Textures/Structures/Wallmounts/signs.rsi/direction_evac_glow.png [new file with mode: 0644]
Resources/Textures/Structures/Wallmounts/signs.rsi/meta.json

index b77fbc35474ae04db0015553f73e4b99c9635709..a8e834ecceb11240f6652f3305fb92aced731420 100644 (file)
   description: A direction sign, pointing out which way evac is.
   components:
   - type: Sprite
-    state: direction_evac
+    layers:
+    - state: direction_evac
+    - state: direction_evac_glow
+      shader: unshaded
+    - state: direction_evac_glow
+      shader: shaded
+      #This is a neat trick I found to sort of "hack" an emissive map into ss14. Basically, the direction_evac_glow texture has an alpha channel.
+      #Alpha doesn't work for unshaded, but for *shaded* it does, and by putting a shaded texture infront of the unshaded, we can dim the unshaded texture, effectively allowing brightness control.
+      #I am re-using this from my high-vis vest PR, where I go further into detail, https://github.com/space-wizards/space-station-14/pull/37869
 
 - type: entity
   parent: BaseSignDirectional
diff --git a/Resources/Textures/Structures/Wallmounts/signs.rsi/direction_evac_glow.png b/Resources/Textures/Structures/Wallmounts/signs.rsi/direction_evac_glow.png
new file mode 100644 (file)
index 0000000..d82d60a
Binary files /dev/null and b/Resources/Textures/Structures/Wallmounts/signs.rsi/direction_evac_glow.png differ
index 9da6753c353edbd8dade8d92004a22425d1b2a7d..d535ec1dc2eba69723dd29bc85543c7c73b0e23f 100644 (file)
@@ -5,7 +5,7 @@
         "y": 32
     },
     "license": "CC-BY-SA-3.0",
-    "copyright": "Taken from https://github.com/discordia-space/CEV-Eris at commit 4e0bbe682d0a00192d24708fdb7031008aa03f18 and bee station at commit https://github.com/BeeStation/BeeStation-Hornet/commit/13dd5ac712385642574138f6d7b30eea7c2fab9c, Job signs by EmoGarbage404 (github) with inspiration from yogstation and tgstation, 'direction_exam' and 'direction_icu' made by rosieposieeee (github), 'direction_atmos' made by SlamBamActionman, 'vox' based on sprites taken from vgstation13 at https://github.com/vgstation-coders/vgstation13/blob/e7f005f8b8d3f7d89cbee3b87f76c23f9e951c27/icons/obj/decals.dmi, 'direction_pods' derived by WarPigeon from existing directional signs., 'detective' derived by Soupkilove from existing security sign",
+    "copyright": "Taken from https://github.com/discordia-space/CEV-Eris at commit 4e0bbe682d0a00192d24708fdb7031008aa03f18 and bee station at commit https://github.com/BeeStation/BeeStation-Hornet/commit/13dd5ac712385642574138f6d7b30eea7c2fab9c, Job signs by EmoGarbage404 (github) with inspiration from yogstation and tgstation, 'direction_exam' and 'direction_icu' made by rosieposieeee (github), 'direction_atmos' made by SlamBamActionman, 'vox' based on sprites taken from vgstation13 at https://github.com/vgstation-coders/vgstation13/blob/e7f005f8b8d3f7d89cbee3b87f76c23f9e951c27/icons/obj/decals.dmi, 'direction_pods' derived by WarPigeon from existing directional signs., 'detective' derived by Soupkilove from existing security sign, direction_evac_glow made by moomoobeef based on existing direction_evac",
     "states": [
         {
             "name": "ai"
             "name": "direction_evac",
             "directions": 4
         },
+        {
+            "name": "direction_evac_glow",
+            "directions": 4
+        },
         {
             "name": "direction_supply",
             "directions": 4