From: Drayff Date: Sat, 20 Jan 2024 02:29:13 +0000 (+0200) Subject: Toolboxes (#24305) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=f71df97b5eebbe1224c9a4d203e0a6b3bbeca3c7;p=space-station-14.git Toolboxes (#24305) * Added animations for opening toolboxes * Fix cow toolbox --- diff --git a/Resources/Prototypes/Entities/Objects/Tools/toolbox.yml b/Resources/Prototypes/Entities/Objects/Tools/toolbox.yml index 64efe53f43..250f570c5f 100644 --- a/Resources/Prototypes/Entities/Objects/Tools/toolbox.yml +++ b/Resources/Prototypes/Entities/Objects/Tools/toolbox.yml @@ -4,6 +4,9 @@ abstract: true components: - type: Sprite + layers: + - map: [ base ] + state: icon - type: EmitSoundOnLand sound: path: /Audio/Items/toolbox_drop.ogg @@ -23,6 +26,13 @@ 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 index 0000000000..e66d0bc97c Binary files /dev/null and b/Resources/Textures/Objects/Tools/Cowtools/cow_toolbox.rsi/icon-open.png differ diff --git a/Resources/Textures/Objects/Tools/Cowtools/cow_toolbox.rsi/cow_toolbox.png b/Resources/Textures/Objects/Tools/Cowtools/cow_toolbox.rsi/icon.png similarity index 100% rename from Resources/Textures/Objects/Tools/Cowtools/cow_toolbox.rsi/cow_toolbox.png rename to Resources/Textures/Objects/Tools/Cowtools/cow_toolbox.rsi/icon.png diff --git a/Resources/Textures/Objects/Tools/Cowtools/cow_toolbox.rsi/meta.json b/Resources/Textures/Objects/Tools/Cowtools/cow_toolbox.rsi/meta.json index 2a6c8b1299..47e2e44ab7 100644 --- a/Resources/Textures/Objects/Tools/Cowtools/cow_toolbox.rsi/meta.json +++ b/Resources/Textures/Objects/Tools/Cowtools/cow_toolbox.rsi/meta.json @@ -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 index 0000000000..e4005aaed7 Binary files /dev/null and b/Resources/Textures/Objects/Tools/Toolboxes/toolbox_blue.rsi/icon-open.png differ diff --git a/Resources/Textures/Objects/Tools/Toolboxes/toolbox_blue.rsi/meta.json b/Resources/Textures/Objects/Tools/Toolboxes/toolbox_blue.rsi/meta.json index 82f4d5d611..e6723a6444 100644 --- a/Resources/Textures/Objects/Tools/Toolboxes/toolbox_blue.rsi/meta.json +++ b/Resources/Textures/Objects/Tools/Toolboxes/toolbox_blue.rsi/meta.json @@ -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 index 0000000000..6ba8ef5dcb Binary files /dev/null and b/Resources/Textures/Objects/Tools/Toolboxes/toolbox_gold.rsi/icon-open.png differ diff --git a/Resources/Textures/Objects/Tools/Toolboxes/toolbox_gold.rsi/meta.json b/Resources/Textures/Objects/Tools/Toolboxes/toolbox_gold.rsi/meta.json index afe64cd839..becb302333 100644 --- a/Resources/Textures/Objects/Tools/Toolboxes/toolbox_gold.rsi/meta.json +++ b/Resources/Textures/Objects/Tools/Toolboxes/toolbox_gold.rsi/meta.json @@ -39,6 +39,31 @@ 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 index 0000000000..7656cfbf01 Binary files /dev/null and b/Resources/Textures/Objects/Tools/Toolboxes/toolbox_green.rsi/icon-open.png differ diff --git a/Resources/Textures/Objects/Tools/Toolboxes/toolbox_green.rsi/meta.json b/Resources/Textures/Objects/Tools/Toolboxes/toolbox_green.rsi/meta.json index 82f4d5d611..e6723a6444 100644 --- a/Resources/Textures/Objects/Tools/Toolboxes/toolbox_green.rsi/meta.json +++ b/Resources/Textures/Objects/Tools/Toolboxes/toolbox_green.rsi/meta.json @@ -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 index 0000000000..0c22444231 Binary files /dev/null and b/Resources/Textures/Objects/Tools/Toolboxes/toolbox_red.rsi/icon-open.png differ diff --git a/Resources/Textures/Objects/Tools/Toolboxes/toolbox_red.rsi/meta.json b/Resources/Textures/Objects/Tools/Toolboxes/toolbox_red.rsi/meta.json index 82f4d5d611..e6723a6444 100644 --- a/Resources/Textures/Objects/Tools/Toolboxes/toolbox_red.rsi/meta.json +++ b/Resources/Textures/Objects/Tools/Toolboxes/toolbox_red.rsi/meta.json @@ -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 index 0000000000..42fc672405 Binary files /dev/null and b/Resources/Textures/Objects/Tools/Toolboxes/toolbox_syn.rsi/icon-open.png differ diff --git a/Resources/Textures/Objects/Tools/Toolboxes/toolbox_syn.rsi/meta.json b/Resources/Textures/Objects/Tools/Toolboxes/toolbox_syn.rsi/meta.json index 82f4d5d611..f4c473b8ca 100644 --- a/Resources/Textures/Objects/Tools/Toolboxes/toolbox_syn.rsi/meta.json +++ b/Resources/Textures/Objects/Tools/Toolboxes/toolbox_syn.rsi/meta.json @@ -16,7 +16,10 @@ "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 index 0000000000..67273713b7 Binary files /dev/null and b/Resources/Textures/Objects/Tools/Toolboxes/toolbox_yellow.rsi/icon-open.png differ diff --git a/Resources/Textures/Objects/Tools/Toolboxes/toolbox_yellow.rsi/meta.json b/Resources/Textures/Objects/Tools/Toolboxes/toolbox_yellow.rsi/meta.json index 82f4d5d611..e6723a6444 100644 --- a/Resources/Textures/Objects/Tools/Toolboxes/toolbox_yellow.rsi/meta.json +++ b/Resources/Textures/Objects/Tools/Toolboxes/toolbox_yellow.rsi/meta.json @@ -17,6 +17,9 @@ }, { "name": "icon" + }, + { + "name": "icon-open" } ] }