* Added animations for opening toolboxes

* Fix cow toolbox
This commit is contained in:
Drayff
2024-01-20 04:29:13 +02:00
committed by GitHub
parent f33a3f98cd
commit f71df97b5e
16 changed files with 55 additions and 2 deletions

View File

@@ -4,6 +4,9 @@
abstract: true abstract: true
components: components:
- type: Sprite - type: Sprite
layers:
- map: [ base ]
state: icon
- type: EmitSoundOnLand - type: EmitSoundOnLand
sound: sound:
path: /Audio/Items/toolbox_drop.ogg path: /Audio/Items/toolbox_drop.ogg
@@ -23,6 +26,13 @@
tags: tags:
- DroneUsable - DroneUsable
- Toolbox - Toolbox
- type: GenericVisualizer
visuals:
enum.StorageVisuals.Open:
base:
True: { state: icon-open }
False: { state: icon }
- type: Appearance
- type: entity - type: entity
name: emergency toolbox name: emergency toolbox

Binary file not shown.

After

Width:  |  Height:  |  Size: 256 B

View File

@@ -8,7 +8,10 @@
}, },
"states": [ "states": [
{ {
"name": "cow_toolbox" "name": "icon"
},
{
"name": "icon-open"
}, },
{ {
"name": "inhand-left", "name": "inhand-left",

Binary file not shown.

After

Width:  |  Height:  |  Size: 343 B

View File

@@ -17,6 +17,9 @@
}, },
{ {
"name": "icon" "name": "icon"
},
{
"name": "icon-open"
} }
] ]
} }

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

View File

@@ -39,6 +39,31 @@
0.2 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
]
]
} }
] ]
} }

Binary file not shown.

After

Width:  |  Height:  |  Size: 336 B

View File

@@ -17,6 +17,9 @@
}, },
{ {
"name": "icon" "name": "icon"
},
{
"name": "icon-open"
} }
] ]
} }

Binary file not shown.

After

Width:  |  Height:  |  Size: 360 B

View File

@@ -17,6 +17,9 @@
}, },
{ {
"name": "icon" "name": "icon"
},
{
"name": "icon-open"
} }
] ]
} }

Binary file not shown.

After

Width:  |  Height:  |  Size: 388 B

View File

@@ -16,7 +16,10 @@
"directions": 4 "directions": 4
}, },
{ {
"name": "icon" "name": "icon"
},
{
"name": "icon-open"
} }
] ]
} }

Binary file not shown.

After

Width:  |  Height:  |  Size: 344 B

View File

@@ -17,6 +17,9 @@
}, },
{ {
"name": "icon" "name": "icon"
},
{
"name": "icon-open"
} }
] ]
} }