]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Add SolutionContainerVisuals to the hypospray (#30703)
authorSlamBamActionman <83650252+SlamBamActionman@users.noreply.github.com>
Mon, 14 Apr 2025 15:58:55 +0000 (17:58 +0200)
committerGitHub <noreply@github.com>
Mon, 14 Apr 2025 15:58:55 +0000 (08:58 -0700)
* Hypovisuals

* Syndie hypo

* Include attribution

15 files changed:
Resources/Prototypes/Entities/Objects/Specific/Medical/hypospray.yml
Resources/Textures/Objects/Specific/Medical/hypospray.rsi/hypo.png
Resources/Textures/Objects/Specific/Medical/hypospray.rsi/hypo_fill1.png [new file with mode: 0644]
Resources/Textures/Objects/Specific/Medical/hypospray.rsi/hypo_fill2.png [new file with mode: 0644]
Resources/Textures/Objects/Specific/Medical/hypospray.rsi/hypo_fill3.png [new file with mode: 0644]
Resources/Textures/Objects/Specific/Medical/hypospray.rsi/hypo_fill4.png [new file with mode: 0644]
Resources/Textures/Objects/Specific/Medical/hypospray.rsi/hypo_fill5.png [new file with mode: 0644]
Resources/Textures/Objects/Specific/Medical/hypospray.rsi/hypo_fill6.png [new file with mode: 0644]
Resources/Textures/Objects/Specific/Medical/hypospray.rsi/meta.json
Resources/Textures/Objects/Specific/Medical/syndihypo.rsi/hypo.png
Resources/Textures/Objects/Specific/Medical/syndihypo.rsi/hypo_fill1.png [new file with mode: 0644]
Resources/Textures/Objects/Specific/Medical/syndihypo.rsi/hypo_fill2.png [new file with mode: 0644]
Resources/Textures/Objects/Specific/Medical/syndihypo.rsi/hypo_fill3.png [new file with mode: 0644]
Resources/Textures/Objects/Specific/Medical/syndihypo.rsi/hypo_fill4.png [new file with mode: 0644]
Resources/Textures/Objects/Specific/Medical/syndihypo.rsi/meta.json

index 5837c503a96804b7ddd673101f37c3210e3f4df8..cb1fef33a65e23e22c6d135a0ab7729766944531 100644 (file)
@@ -6,7 +6,12 @@
   components:
   - type: Sprite
     sprite: Objects/Specific/Medical/hypospray.rsi
-    state: hypo
+    layers:
+      - state: hypo
+        map: ["enum.SolutionContainerLayers.Base"]
+      - state: hypo_fill1
+        map: ["enum.SolutionContainerLayers.Fill"]
+        visible: false
   - type: Item
     sprite: Objects/Specific/Medical/hypospray.rsi
   - type: SolutionContainerManager
     - HighRiskItem
   - type: StealTarget
     stealGroup: Hypospray
+  - type: Appearance
+  - type: SolutionContainerVisuals
+    maxFillLevels: 6
+    fillBaseName: hypo_fill
+    solutionName: hypospray
 
 - type: entity
   name: gorlex hypospray
   components:
   - type: Sprite
     sprite: Objects/Specific/Medical/syndihypo.rsi
-    state: hypo
+    layers:
+      - state: hypo
+        map: ["enum.SolutionContainerLayers.Base"]
+      - state: hypo_fill1
+        map: ["enum.SolutionContainerLayers.Fill"]
+        visible: false
   - type: Item
     sprite: Objects/Specific/Medical/syndihypo.rsi
   - type: SolutionContainerManager
     onlyAffectsMobs: false
   - type: UseDelay
     delay: 0.5
+  - type: Appearance
+  - type: SolutionContainerVisuals
+    maxFillLevels: 4
+    fillBaseName: hypo_fill
+    solutionName: hypospray
 
 - type: entity
   name: borghypo
index cab29e5b0afb18444eea7a58194527592dc92392..230833869f22869b8e9d4252ef64cfe2b184e018 100644 (file)
Binary files a/Resources/Textures/Objects/Specific/Medical/hypospray.rsi/hypo.png and b/Resources/Textures/Objects/Specific/Medical/hypospray.rsi/hypo.png differ
diff --git a/Resources/Textures/Objects/Specific/Medical/hypospray.rsi/hypo_fill1.png b/Resources/Textures/Objects/Specific/Medical/hypospray.rsi/hypo_fill1.png
new file mode 100644 (file)
index 0000000..0e24434
Binary files /dev/null and b/Resources/Textures/Objects/Specific/Medical/hypospray.rsi/hypo_fill1.png differ
diff --git a/Resources/Textures/Objects/Specific/Medical/hypospray.rsi/hypo_fill2.png b/Resources/Textures/Objects/Specific/Medical/hypospray.rsi/hypo_fill2.png
new file mode 100644 (file)
index 0000000..1e5858d
Binary files /dev/null and b/Resources/Textures/Objects/Specific/Medical/hypospray.rsi/hypo_fill2.png differ
diff --git a/Resources/Textures/Objects/Specific/Medical/hypospray.rsi/hypo_fill3.png b/Resources/Textures/Objects/Specific/Medical/hypospray.rsi/hypo_fill3.png
new file mode 100644 (file)
index 0000000..1235fb7
Binary files /dev/null and b/Resources/Textures/Objects/Specific/Medical/hypospray.rsi/hypo_fill3.png differ
diff --git a/Resources/Textures/Objects/Specific/Medical/hypospray.rsi/hypo_fill4.png b/Resources/Textures/Objects/Specific/Medical/hypospray.rsi/hypo_fill4.png
new file mode 100644 (file)
index 0000000..19c613e
Binary files /dev/null and b/Resources/Textures/Objects/Specific/Medical/hypospray.rsi/hypo_fill4.png differ
diff --git a/Resources/Textures/Objects/Specific/Medical/hypospray.rsi/hypo_fill5.png b/Resources/Textures/Objects/Specific/Medical/hypospray.rsi/hypo_fill5.png
new file mode 100644 (file)
index 0000000..34eed23
Binary files /dev/null and b/Resources/Textures/Objects/Specific/Medical/hypospray.rsi/hypo_fill5.png differ
diff --git a/Resources/Textures/Objects/Specific/Medical/hypospray.rsi/hypo_fill6.png b/Resources/Textures/Objects/Specific/Medical/hypospray.rsi/hypo_fill6.png
new file mode 100644 (file)
index 0000000..e09ce7c
Binary files /dev/null and b/Resources/Textures/Objects/Specific/Medical/hypospray.rsi/hypo_fill6.png differ
index 0095919b63246c7879e7f312b7d2a3e8e11b7a58..904543f6e5972b711553027e9d00285b73a0c5f1 100644 (file)
@@ -1,7 +1,7 @@
 {
   "version": 1,
   "license": "CC-BY-SA-3.0",
-  "copyright": "Taken from vgstation at commit https://github.com/vgstation-coders/vgstation13/commit/1cdfb0230cc96d0ba751fa002d04f8aa2f25ad7d",
+  "copyright": "Taken from vgstation at commit https://github.com/vgstation-coders/vgstation13/commit/1cdfb0230cc96d0ba751fa002d04f8aa2f25ad7d, modified with fill sprites by SlamBamActionman (github)",
   "size": {
     "x": 32,
     "y": 32
     {
       "name": "hypo"
     },
+    {
+      "name": "hypo_fill1"
+    },
+    {
+      "name": "hypo_fill2"
+    },
+    {
+      "name": "hypo_fill3"
+    },
+    {
+      "name": "hypo_fill4"
+    },
+    {
+      "name": "hypo_fill5"
+    },
+    {
+      "name": "hypo_fill6"
+    },
     {
       "name": "inhand-left",
       "directions": 4
index 2e410898ef7664bb77e1ef6358a524f96ebf42d1..679ffb3a07b9ea304079960448ad03525d3ef885 100644 (file)
Binary files a/Resources/Textures/Objects/Specific/Medical/syndihypo.rsi/hypo.png and b/Resources/Textures/Objects/Specific/Medical/syndihypo.rsi/hypo.png differ
diff --git a/Resources/Textures/Objects/Specific/Medical/syndihypo.rsi/hypo_fill1.png b/Resources/Textures/Objects/Specific/Medical/syndihypo.rsi/hypo_fill1.png
new file mode 100644 (file)
index 0000000..1961261
Binary files /dev/null and b/Resources/Textures/Objects/Specific/Medical/syndihypo.rsi/hypo_fill1.png differ
diff --git a/Resources/Textures/Objects/Specific/Medical/syndihypo.rsi/hypo_fill2.png b/Resources/Textures/Objects/Specific/Medical/syndihypo.rsi/hypo_fill2.png
new file mode 100644 (file)
index 0000000..575e99f
Binary files /dev/null and b/Resources/Textures/Objects/Specific/Medical/syndihypo.rsi/hypo_fill2.png differ
diff --git a/Resources/Textures/Objects/Specific/Medical/syndihypo.rsi/hypo_fill3.png b/Resources/Textures/Objects/Specific/Medical/syndihypo.rsi/hypo_fill3.png
new file mode 100644 (file)
index 0000000..187eac6
Binary files /dev/null and b/Resources/Textures/Objects/Specific/Medical/syndihypo.rsi/hypo_fill3.png differ
diff --git a/Resources/Textures/Objects/Specific/Medical/syndihypo.rsi/hypo_fill4.png b/Resources/Textures/Objects/Specific/Medical/syndihypo.rsi/hypo_fill4.png
new file mode 100644 (file)
index 0000000..2e72a04
Binary files /dev/null and b/Resources/Textures/Objects/Specific/Medical/syndihypo.rsi/hypo_fill4.png differ
index 5d25ef74a648de062bfb5113a9672ef541ee6903..ddf2ea210fe29ff174dd51252e289d0067fcb337 100644 (file)
@@ -1,7 +1,7 @@
 {
   "version": 1,
   "license": "CC-BY-SA-3.0",
-  "copyright": "Taken from vgstation at commit https://github.com/vgstation-coders/vgstation13/commit/1cdfb0230cc96d0ba751fa002d04f8aa2f25ad7d and modified by emisse for ss14",
+  "copyright": "Taken from vgstation at commit https://github.com/vgstation-coders/vgstation13/commit/1cdfb0230cc96d0ba751fa002d04f8aa2f25ad7d and modified by emisse for ss14, further modified with fill sprites by SlamBamActionman (github)",
   "size": {
     "x": 32,
     "y": 32
     {
       "name": "hypo"
     },
+    {
+      "name": "hypo_fill1"
+    },
+    {
+      "name": "hypo_fill2"
+    },
+    {
+      "name": "hypo_fill3"
+    },
+    {
+      "name": "hypo_fill4"
+    },
     {
       "name": "inhand-left",
       "directions": 4
@@ -19,4 +31,4 @@
       "directions": 4
     }
   ]
-}
\ No newline at end of file
+}