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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 487 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 499 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 508 B

View File

@@ -0,0 +1,175 @@
{
"version": 1,
"license": "CC-BY-SA-3.0",
"copyright": "Taken from tgstation at commit https://github.com/tgstation/tgstation/commit/5a73e8f825ff279e82949b9329783a9e3070e2da, icon, inhand-left and inhand-right edited by Boaz1111 (github), on-equipped-NECK renamed to on-equipped-HEAD and on-equipped-EARS, off-equipped-NECK renamed to off-equipped-HEAD and off-equipped-EARS by Boaz1111 (github), icon-on made by TiniestShark (github) based on icon, on-equipped-NECK and off-equipped-NECK made by TiniestShark (github).",
"size": {
"x": 32,
"y": 32
},
"states": [
{
"name": "on-equipped-HELMET",
"directions": 4,
"delays": [
[
0.2,
0.2,
0.2,
0.2,
0.2,
0.2,
0.2
],
[
0.2,
0.2,
0.2,
0.2,
0.2,
0.2,
0.2
],
[
0.2,
0.2,
0.2,
0.2,
0.2,
0.2,
0.2
],
[
0.2,
0.2,
0.2,
0.2,
0.2,
0.2,
0.2
]
]
},
{
"name": "off-equipped-HELMET",
"directions": 4
},
{
"name": "on-equipped-EARS",
"directions": 4,
"delays": [
[
0.2,
0.2,
0.2,
0.2,
0.2,
0.2,
0.2
],
[
0.2,
0.2,
0.2,
0.2,
0.2,
0.2,
0.2
],
[
0.2,
0.2,
0.2,
0.2,
0.2,
0.2,
0.2
],
[
0.2,
0.2,
0.2,
0.2,
0.2,
0.2,
0.2
]
]
},
{
"name": "off-equipped-EARS",
"directions": 4
},
{
"name": "on-equipped-NECK",
"directions": 4,
"delays": [
[
0.2,
0.2,
0.2,
0.2,
0.2,
0.2,
0.2
],
[
0.2,
0.2,
0.2,
0.2,
0.2,
0.2,
0.2
],
[
0.2,
0.2,
0.2,
0.2,
0.2,
0.2,
0.2
],
[
0.2,
0.2,
0.2,
0.2,
0.2,
0.2,
0.2
]
]
},
{
"name": "off-equipped-NECK",
"directions": 4
},
{
"name": "inhand-right",
"directions": 4
},
{
"name": "inhand-left",
"directions": 4
},
{
"name": "icon"
},
{
"name": "icon-on",
"delays": [
[
0.2,
0.2,
0.2,
0.2,
0.2,
0.2,
0.2,
0.2
]
]
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 273 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 374 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 176 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 176 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 329 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 329 B

View File

@@ -1,71 +0,0 @@
{
"version": 1,
"license": "CC-BY-SA-3.0",
"copyright": "Taken from tgstation at commit https://github.com/tgstation/tgstation/commit/5a73e8f825ff279e82949b9329783a9e3070e2da",
"size": {
"x": 32,
"y": 32
},
"states": [
{
"name": "on-equipped-NECK",
"directions": 4,
"delays": [
[
0.2,
0.2,
0.2,
0.2,
0.2,
0.2,
0.2
],
[
0.2,
0.2,
0.2,
0.2,
0.2,
0.2,
0.2
],
[
0.2,
0.2,
0.2,
0.2,
0.2,
0.2,
0.2
],
[
0.2,
0.2,
0.2,
0.2,
0.2,
0.2,
0.2
]
]
},
{
"name": "off-equipped-NECK",
"directions": 4
},
{
"name": "inhand-right",
"directions": 4
},
{
"name": "inhand-left",
"directions": 4
},
{
"name": "icon"
},
{
"name": "icon-on"
}
]
}

View File

@@ -681,3 +681,6 @@ BarSignEmprahAlignTile: BarSignEmprah
BarSignSpacebucksAlignTile: BarSignSpacebucks
BarSignMaltroachAlignTile: BarSignMaltroach
BarSignWhiskeyEchoesAlignTile: BarSignWhiskeyEchoes
# 2025-06-21
ClothingNeckHeadphones: ClothingMultipleHeadphones