Implement machine linking (#1784)

* Implement machine linking

* Cleanup and rename Signals

* Implement signal button

* Add machine linking signal mapping

* Fix signallink command help

* Add localization to signal linking and allow infinite range

* Add feedback for when a transmitter is not connected to any receivers

Refactor PopupMessage to use the entity extension
Refactor dependencies to not have to disable warnings
This commit is contained in:
ShadowCommander
2020-08-29 03:33:42 -07:00
committed by GitHub
parent f3315feba1
commit aa66aa2286
16 changed files with 701 additions and 9 deletions

View File

@@ -22,6 +22,7 @@
energy: 1.2
offset: "0.5, 0"
color: "#DCDCC6"
- type: SignalReceiver
placement:
snap:
- Wallmount

View File

@@ -0,0 +1,41 @@
- type: entity
id: SignalSwitch
name: "signal switch"
components:
- type: Clickable
bounds:
all: -0.25,-0.375,0.25,0.375
- type: InteractionOutline
- type: Collidable
- type: Sprite
sprite: Constructible/Linking/switch.rsi
state: on
- type: Icon
sprite: Constructible/Linking/switch.rsi
state: on
- type: SignalSwitch
- type: SignalTransmitter
placement:
snap:
- Wallmount
- type: entity
id: SignalButton
name: "signal button"
components:
- type: Clickable
bounds:
all: -0.25,-0.375,0.25,0.375
- type: InteractionOutline
- type: Collidable
- type: Sprite
sprite: Constructible/Linking/switch.rsi
state: dead
- type: Icon
sprite: Constructible/Linking/switch.rsi
state: dead
- type: SignalButton
- type: SignalTransmitter
placement:
snap:
- Wallmount

View File

@@ -185,6 +185,7 @@
- type: Tool
qualities:
- Multitool
- type: SignalLinker
- type: entity
name: jaws of life