Headphones can be turned on (#23882)

Toggle headphones
This commit is contained in:
themias
2024-01-11 18:25:27 -05:00
committed by GitHub
parent faf4f503a7
commit 8bba4b852b
3 changed files with 23 additions and 1 deletions

View File

@@ -6,8 +6,30 @@
components:
- type: Sprite
sprite: Clothing/Neck/Misc/headphones.rsi
layers:
- state: icon
map: [ "enum.ToggleVisuals.Layer" ]
- type: Clothing
equippedPrefix: off
sprite: Clothing/Neck/Misc/headphones.rsi
- type: ToggleableLightVisuals
spriteLayer: enum.ToggleVisuals.Layer
clothingVisuals:
neck:
- state: on-equipped-NECK
- type: Appearance
- type: GenericVisualizer
visuals:
enum.ToggleVisuals.Toggled:
enum.ToggleVisuals.Layer:
True: {state: icon-on}
False: {state: icon}
- type: ItemToggle
predictable: false
soundActivate:
path: /Audio/Items/flashlight_on.ogg
soundDeactivate:
path: /Audio/Items/flashlight_off.ogg
- type: entity
parent: ClothingNeckBase

View File

@@ -50,7 +50,7 @@
]
},
{
"name": "equipped-NECK",
"name": "off-equipped-NECK",
"directions": 4
},
{