]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Toolboxes (#24305)
authorDrayff <andrew.motrych@gmail.com>
Sat, 20 Jan 2024 02:29:13 +0000 (04:29 +0200)
committerGitHub <noreply@github.com>
Sat, 20 Jan 2024 02:29:13 +0000 (13:29 +1100)
* Added animations for opening toolboxes

* Fix cow toolbox

16 files changed:
Resources/Prototypes/Entities/Objects/Tools/toolbox.yml
Resources/Textures/Objects/Tools/Cowtools/cow_toolbox.rsi/icon-open.png [new file with mode: 0644]
Resources/Textures/Objects/Tools/Cowtools/cow_toolbox.rsi/icon.png [moved from Resources/Textures/Objects/Tools/Cowtools/cow_toolbox.rsi/cow_toolbox.png with 100% similarity]
Resources/Textures/Objects/Tools/Cowtools/cow_toolbox.rsi/meta.json
Resources/Textures/Objects/Tools/Toolboxes/toolbox_blue.rsi/icon-open.png [new file with mode: 0644]
Resources/Textures/Objects/Tools/Toolboxes/toolbox_blue.rsi/meta.json
Resources/Textures/Objects/Tools/Toolboxes/toolbox_gold.rsi/icon-open.png [new file with mode: 0644]
Resources/Textures/Objects/Tools/Toolboxes/toolbox_gold.rsi/meta.json
Resources/Textures/Objects/Tools/Toolboxes/toolbox_green.rsi/icon-open.png [new file with mode: 0644]
Resources/Textures/Objects/Tools/Toolboxes/toolbox_green.rsi/meta.json
Resources/Textures/Objects/Tools/Toolboxes/toolbox_red.rsi/icon-open.png [new file with mode: 0644]
Resources/Textures/Objects/Tools/Toolboxes/toolbox_red.rsi/meta.json
Resources/Textures/Objects/Tools/Toolboxes/toolbox_syn.rsi/icon-open.png [new file with mode: 0644]
Resources/Textures/Objects/Tools/Toolboxes/toolbox_syn.rsi/meta.json
Resources/Textures/Objects/Tools/Toolboxes/toolbox_yellow.rsi/icon-open.png [new file with mode: 0644]
Resources/Textures/Objects/Tools/Toolboxes/toolbox_yellow.rsi/meta.json

index 64efe53f43daf6e0998216ef41c26e7246ce63d0..250f570c5f951152634d4ad9db84a548f0f5be7e 100644 (file)
@@ -4,6 +4,9 @@
   abstract: true
   components:
   - type: Sprite
+    layers:
+      - map: [ base ]
+        state: icon
   - type: EmitSoundOnLand
     sound:
       path: /Audio/Items/toolbox_drop.ogg
     tags:
     - DroneUsable
     - Toolbox
+  - type: GenericVisualizer
+    visuals:
+      enum.StorageVisuals.Open:
+        base:
+          True: { state: icon-open }
+          False: { state: icon }
+  - type: Appearance
 
 - type: entity
   name: emergency toolbox
diff --git a/Resources/Textures/Objects/Tools/Cowtools/cow_toolbox.rsi/icon-open.png b/Resources/Textures/Objects/Tools/Cowtools/cow_toolbox.rsi/icon-open.png
new file mode 100644 (file)
index 0000000..e66d0bc
Binary files /dev/null and b/Resources/Textures/Objects/Tools/Cowtools/cow_toolbox.rsi/icon-open.png differ
index 2a6c8b12995d37517ea29cd74f770d874e478dad..47e2e44ab7e26b36abc082f2639fbd7b6a9e443b 100644 (file)
@@ -8,7 +8,10 @@
   },
   "states": [
     {
-      "name": "cow_toolbox"
+      "name": "icon"
+    },
+    {
+      "name": "icon-open"
     },
     {
       "name": "inhand-left",
diff --git a/Resources/Textures/Objects/Tools/Toolboxes/toolbox_blue.rsi/icon-open.png b/Resources/Textures/Objects/Tools/Toolboxes/toolbox_blue.rsi/icon-open.png
new file mode 100644 (file)
index 0000000..e4005aa
Binary files /dev/null and b/Resources/Textures/Objects/Tools/Toolboxes/toolbox_blue.rsi/icon-open.png differ
index 82f4d5d611d7062f1e1ea024d01b334c90ebf97b..e6723a64449126da70f39c917771f4c3a34018bd 100644 (file)
@@ -17,6 +17,9 @@
     },
     {
       "name": "icon"
+    },
+    {
+        "name": "icon-open"
     }
   ]
 }
diff --git a/Resources/Textures/Objects/Tools/Toolboxes/toolbox_gold.rsi/icon-open.png b/Resources/Textures/Objects/Tools/Toolboxes/toolbox_gold.rsi/icon-open.png
new file mode 100644 (file)
index 0000000..6ba8ef5
Binary files /dev/null and b/Resources/Textures/Objects/Tools/Toolboxes/toolbox_gold.rsi/icon-open.png differ
index afe64cd8392239339038808ab55027a9ca9060c2..becb302333b4e703fd1fdd1a77c8c338e9646e29 100644 (file)
           0.2
         ]
       ]
+    },
+    {
+      "name": "icon-open",
+      "delays": [
+        [
+          0.2,
+          0.2,
+          0.1,
+          0.1,
+          0.1,
+          0.1,
+          0.1,
+          0.2,
+          0.2,
+          0.2,
+          0.2,
+          0.1,
+          0.1,
+          0.1,
+          0.1,
+          0.1,
+          0.2,
+          0.2
+        ]
+      ]
     }
   ]
 }
diff --git a/Resources/Textures/Objects/Tools/Toolboxes/toolbox_green.rsi/icon-open.png b/Resources/Textures/Objects/Tools/Toolboxes/toolbox_green.rsi/icon-open.png
new file mode 100644 (file)
index 0000000..7656cfb
Binary files /dev/null and b/Resources/Textures/Objects/Tools/Toolboxes/toolbox_green.rsi/icon-open.png differ
index 82f4d5d611d7062f1e1ea024d01b334c90ebf97b..e6723a64449126da70f39c917771f4c3a34018bd 100644 (file)
@@ -17,6 +17,9 @@
     },
     {
       "name": "icon"
+    },
+    {
+        "name": "icon-open"
     }
   ]
 }
diff --git a/Resources/Textures/Objects/Tools/Toolboxes/toolbox_red.rsi/icon-open.png b/Resources/Textures/Objects/Tools/Toolboxes/toolbox_red.rsi/icon-open.png
new file mode 100644 (file)
index 0000000..0c22444
Binary files /dev/null and b/Resources/Textures/Objects/Tools/Toolboxes/toolbox_red.rsi/icon-open.png differ
index 82f4d5d611d7062f1e1ea024d01b334c90ebf97b..e6723a64449126da70f39c917771f4c3a34018bd 100644 (file)
@@ -17,6 +17,9 @@
     },
     {
       "name": "icon"
+    },
+    {
+        "name": "icon-open"
     }
   ]
 }
diff --git a/Resources/Textures/Objects/Tools/Toolboxes/toolbox_syn.rsi/icon-open.png b/Resources/Textures/Objects/Tools/Toolboxes/toolbox_syn.rsi/icon-open.png
new file mode 100644 (file)
index 0000000..42fc672
Binary files /dev/null and b/Resources/Textures/Objects/Tools/Toolboxes/toolbox_syn.rsi/icon-open.png differ
index 82f4d5d611d7062f1e1ea024d01b334c90ebf97b..f4c473b8cad2745851e55ed632366f469179369d 100644 (file)
       "directions": 4
     },
     {
-      "name": "icon"
+        "name": "icon"
+    },
+    {
+        "name": "icon-open"
     }
   ]
 }
diff --git a/Resources/Textures/Objects/Tools/Toolboxes/toolbox_yellow.rsi/icon-open.png b/Resources/Textures/Objects/Tools/Toolboxes/toolbox_yellow.rsi/icon-open.png
new file mode 100644 (file)
index 0000000..6727371
Binary files /dev/null and b/Resources/Textures/Objects/Tools/Toolboxes/toolbox_yellow.rsi/icon-open.png differ
index 82f4d5d611d7062f1e1ea024d01b334c90ebf97b..e6723a64449126da70f39c917771f4c3a34018bd 100644 (file)
@@ -17,6 +17,9 @@
     },
     {
       "name": "icon"
+    },
+    {
+        "name": "icon-open"
     }
   ]
 }