Various Headphones Fixes and Tweaks (#38479)

* sprites, wearables

* neck

* icon-on sprite
This commit is contained in:
Boaz1111
2025-06-28 16:01:28 +02:00
committed by GitHub
parent 6db9f65046
commit 0f74bac415
24 changed files with 223 additions and 109 deletions

View File

@@ -35,7 +35,7 @@
ClothingNeckScarfStripedTrans: 2
ClothingHeadHatXmasCrown: 2
BedsheetRainbow: 2
ClothingNeckHeadphones: 2
ClothingMultipleHeadphones: 2
ClothingHeadHatFlowerWreath: 2
ClothingUniformColorRainbow: 2
ClothingUnderSocksCoder: 2

View File

@@ -0,0 +1,40 @@
- type: entity
parent: Clothing
id: ClothingMultipleHeadphones
name: headphones
description: Quality headphones from Drunk Masters, with good sound insulation.
components:
- type: Sprite
sprite: Clothing/Multiple/headphones.rsi
layers:
- state: icon
map: [ "enum.ToggleableVisuals.Layer" ]
- type: Clothing
equippedPrefix: off
sprite: Clothing/Multiple/headphones.rsi
slots:
- HEAD
- EARS
- NECK
- type: ToggleableVisuals
spriteLayer: enum.ToggleableVisuals.Layer
clothingVisuals:
head:
- state: on-equipped-HELMET
ears:
- state: on-equipped-EARS
neck:
- state: on-equipped-NECK
- type: Appearance
- type: GenericVisualizer
visuals:
enum.ToggleableVisuals.Enabled:
enum.ToggleableVisuals.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

View File

@@ -1,36 +1,3 @@
- type: entity
parent: ClothingNeckBase
id: ClothingNeckHeadphones
name: headphones
description: Quality headphones from Drunk Masters, with good sound insulation.
components:
- type: Sprite
sprite: Clothing/Neck/Misc/headphones.rsi
layers:
- state: icon
map: [ "enum.ToggleableVisuals.Layer" ]
- type: Clothing
equippedPrefix: off
sprite: Clothing/Neck/Misc/headphones.rsi
- type: ToggleableVisuals
spriteLayer: enum.ToggleableVisuals.Layer
clothingVisuals:
neck:
- state: on-equipped-NECK
- type: Appearance
- type: GenericVisualizer
visuals:
enum.ToggleableVisuals.Enabled:
enum.ToggleableVisuals.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: Clothing
id: ClothingNeckStethoscope

View File

@@ -56,7 +56,7 @@
- id: ClothingHeadHatPaper
- id: ClothingHeadHatPirate
- id: ClothingMaskSterile
- id: ClothingNeckHeadphones
- id: ClothingMultipleHeadphones
- id: ClothingNeckTieRed
- id: ClothingOuterCoatGentle
- !type:AllSelector

View File

@@ -241,7 +241,7 @@
- id: ClothingHeadHatAnimalHeadslime
prob: 0.03
orGroup: dresserthirdloot
- id: ClothingNeckHeadphones
- id: ClothingMultipleHeadphones
prob: 0.03
orGroup: dresserthirdloot
- id: ClothingUnderSocksCoder

View File

@@ -26,7 +26,7 @@
id: Headphones
storage:
back:
- ClothingNeckHeadphones
- ClothingMultipleHeadphones
# Toys
- type: loadout

View File

@@ -31,6 +31,6 @@
equipment:
head: ClothingHeadHatTophat
mask: ClothingMaskBreath
neck: ClothingNeckHeadphones
neck: ClothingMultipleHeadphones
outerClothing: ClothingOuterWinterMusician
gloves: ClothingHandsGlovesColorBlack