]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Shadow anomaly respects "reduced motion" (#25355)
authorPieter-Jan Briers <pieterjan.briers+git@gmail.com>
Sun, 18 Feb 2024 03:26:19 +0000 (04:26 +0100)
committerGitHub <noreply@github.com>
Sun, 18 Feb 2024 03:26:19 +0000 (22:26 -0500)
Enabling "reduced motion" now makes the smoke effects not animate. This helps some people with vision issues.

Resources/Prototypes/Entities/Objects/Misc/kudzu.yml
Resources/Textures/Effects/spookysmoke.rsi/meta.json
Resources/Textures/Effects/spookysmoke.rsi/spookysmoke_static.png [new file with mode: 0644]

index 9727f2125d01a7f849ed10ad90a326cd6d0741f1..6ebf0951174516f7e4957583f1bdaa5c02392eea 100644 (file)
     - type: Sprite
       drawdepth: Effects
       sprite: Effects/spookysmoke.rsi
-      state: spookysmoke
-      color: "#793a80dd"
+      layers:
+      - state: spookysmoke
+        color: "#793a80dd"
+        map: [base]
     - type: Kudzu
       growthTickChance: 0.2
       spreadChance: 0.99
       tags:
         - HideContextMenu
         - SpookyFog
+    - type: OptionsVisualizer
+      visuals:
+        base:
+        - options: Default
+          data: { state: spookysmoke }
+        - options: ReducedMotion
+          data: { state: spookysmoke_static }
 
 - type: entity
   name: Haze
   parent: ShadowKudzu
   components:
     - type: Kudzu
-      spreadChance: 0 #appears during pulsation. It shouldnt spreading.
\ No newline at end of file
+      spreadChance: 0 #appears during pulsation. It shouldnt spreading.
index c6655bdba21d8444516c5fbcbed7a7218899059a..13da3020fce35f04b721810e9e1a11dd245cdfd3 100644 (file)
@@ -25,6 +25,9 @@
           0.2
         ]
       ]
+    },
+    {
+      "name": "spookysmoke_static"
     }
   ]
-}
\ No newline at end of file
+}
diff --git a/Resources/Textures/Effects/spookysmoke.rsi/spookysmoke_static.png b/Resources/Textures/Effects/spookysmoke.rsi/spookysmoke_static.png
new file mode 100644 (file)
index 0000000..a817fe7
Binary files /dev/null and b/Resources/Textures/Effects/spookysmoke.rsi/spookysmoke_static.png differ