Skip to content

Commit

Permalink
changed sprite names to reflect states better, attempt at power light…
Browse files Browse the repository at this point in the history
…s, not working
  • Loading branch information
bryan-hub committed Nov 12, 2024
1 parent 02cc696 commit 5410171
Show file tree
Hide file tree
Showing 9 changed files with 51 additions and 8 deletions.
28 changes: 24 additions & 4 deletions Resources/Prototypes/_Nuclear14/Entities/Structures/Misc/radio.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,33 @@
components:
- type: Sprite
sprite: _Nuclear14/Structures/Misc/radiostation/microphones.rsi
state: radiomicrophone
layers:
- state: base
- state: on
map: ["enum.PowerDeviceVisualLayers.Powered"]
shader: unshaded
- state: off
map: [ "disabled"]
- type: Appearance
- type: GenericVisualizer
visuals:
enum.PowerDeviceVisuals.Powered:
enum.PowerDeviceVisualLayers.Powered:
True: {visible: true}
False: {visible: false}
- type: ApcPowerReceiver
- type: Electrified
enabled: false
usesApcPower: true
- type: ExtensionCableReceiver
- type: RadioMicrophone
powerRequired: true
broadcastChannel: PBS
toggleOnInteract: true
frequency: 1667
listenRange: 2
- type: Clickable
- type: InteractionOutline
- type: Appearance
- type: WiresVisuals
- type: Transform
noRot: false
Expand Down Expand Up @@ -72,6 +90,7 @@
map: [ "base" ]
- state: on
map: [ "enabled" ]
shader: unshaded
- state: off
map: [ "disabled" ]
- type: RadioSpeaker
Expand Down Expand Up @@ -101,8 +120,8 @@
id: N14MicrophoneStand
components:
- type: Sprite
sprite: _Nuclear14/Structures/Misc/radiostation/microphones.rsi
state: radiomicrophonestand
sprite: _Nuclear14/Structures/Misc/radiostation/standmicrophones.rsi
state: base
- type: RadioMicrophone
broadcastChannel: PBS
toggleOnInteract: true
Expand Down Expand Up @@ -133,6 +152,7 @@
- state: off
- state: on
map: ["enum.PoweredLightLayers.Base"]

- type: WallMount
- type: PointLight
radius: 7
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@
},
"states": [
{
"name": "radiomicrophone"
"name": "base"
},
{
"name": "radiomicrophonestand",
"directions": 4
}
"name": "on"
},
{
"name": "off"
}
]
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"version": 1,
"license": "CC-BY-NC-SA-3.0",
"copyright": "made by maxxorion for nuclear14",
"size": {
"x": 32,
"y": 32
},
"states": [
{
"name": "base",
"directions": 4
},
{
"name": "on"
},
{
"name": "off"
}
]
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 5410171

Please sign in to comment.