Add missing WirePanel components (#16676)

This commit is contained in:
Leon Friedrich
2023-05-22 15:45:36 +12:00
committed by GitHub
parent 69e5fb53ec
commit 7a35b1f08e
30 changed files with 43 additions and 12 deletions

View File

@@ -237,10 +237,7 @@ public sealed class WiresSystem : SharedWiresSystem
private void OnWiresStartup(EntityUid uid, WiresComponent component, ComponentStartup args) private void OnWiresStartup(EntityUid uid, WiresComponent component, ComponentStartup args)
{ {
if (!String.IsNullOrEmpty(component.LayoutId)) EnsureComp<WiresPanelComponent>(uid);
SetOrCreateWireLayout(uid, component);
UpdateUserInterface(uid);
} }
#endregion #endregion
@@ -498,18 +495,17 @@ public sealed class WiresSystem : SharedWiresSystem
private void OnMapInit(EntityUid uid, WiresComponent component, MapInitEvent args) private void OnMapInit(EntityUid uid, WiresComponent component, MapInitEvent args)
{ {
EnsureComp<WiresPanelComponent>(uid); if (!string.IsNullOrEmpty(component.LayoutId))
SetOrCreateWireLayout(uid, component);
if (component.SerialNumber == null) if (component.SerialNumber == null)
{
GenerateSerialNumber(uid, component); GenerateSerialNumber(uid, component);
}
if (component.WireSeed == 0) if (component.WireSeed == 0)
{
component.WireSeed = _random.Next(1, int.MaxValue); component.WireSeed = _random.Next(1, int.MaxValue);
UpdateUserInterface(uid); UpdateUserInterface(uid);
} }
}
#endregion #endregion
#region Entity API #region Entity API

View File

@@ -162,6 +162,7 @@
map: ["enum.WiresVisualLayers.MaintenancePanel"] map: ["enum.WiresVisualLayers.MaintenancePanel"]
- type: Appearance - type: Appearance
- type: WiresVisuals - type: WiresVisuals
- type: WiresPanel
- type: Wires - type: Wires
BoardName: "DawInstrument" BoardName: "DawInstrument"
LayoutId: DawInstrument LayoutId: DawInstrument

View File

@@ -36,6 +36,7 @@
- type: Physics - type: Physics
bodyType: KinematicController bodyType: KinematicController
- type: Clickable - type: Clickable
- type: WiresPanel
- type: Wires #we just want the panel - type: Wires #we just want the panel
BoardName: Mech BoardName: Mech
LayoutId: Mech LayoutId: Mech

View File

@@ -69,3 +69,5 @@
beakerSlot: !type:ContainerSlot beakerSlot: !type:ContainerSlot
- type: StaticPrice - type: StaticPrice
price: 1000 price: 1000
- type: Wires
- type: WiresPanel

View File

@@ -74,6 +74,7 @@
- type: Electrified - type: Electrified
enabled: false enabled: false
usesApcPower: true usesApcPower: true
- type: WiresPanel
- type: Wires - type: Wires
BoardName: "Airlock Control" BoardName: "Airlock Control"
LayoutId: Airlock LayoutId: Airlock

View File

@@ -3,6 +3,8 @@
parent: BaseStructure parent: BaseStructure
name: high security door name: high security door
description: Keeps the bad out and keeps the good in. description: Keeps the bad out and keeps the good in.
placement:
mode: SnapgridCenter
components: components:
- type: InteractionOutline - type: InteractionOutline
- type: Sprite - type: Sprite
@@ -65,6 +67,7 @@
- type: Electrified - type: Electrified
enabled: false enabled: false
usesApcPower: true usesApcPower: true
- type: WiresPanel
- type: Wires - type: Wires
BoardName: "HighSec Control" BoardName: "HighSec Control"
LayoutId: HighSec LayoutId: HighSec
@@ -90,5 +93,3 @@
- type: IconSmooth - type: IconSmooth
key: walls key: walls
mode: NoSprite mode: NoSprite
placement:
mode: SnapgridCenter

View File

@@ -84,6 +84,7 @@
- type: Firelock - type: Firelock
- type: Appearance - type: Appearance
- type: WiresVisuals - type: WiresVisuals
- type: WiresPanel
- type: Wires - type: Wires
BoardName: "Firelock Control" BoardName: "Firelock Control"
LayoutId: Firelock LayoutId: Firelock

View File

@@ -115,6 +115,7 @@
- type: Electrified - type: Electrified
enabled: false enabled: false
usesApcPower: true usesApcPower: true
- type: WiresPanel
- type: Wires - type: Wires
BoardName: "Windoor Control" BoardName: "Windoor Control"
LayoutId: Airlock LayoutId: Airlock

View File

@@ -35,6 +35,7 @@
components: components:
- type: SpaceVillainArcade - type: SpaceVillainArcade
rewardAmount: 0 rewardAmount: 0
- type: WiresPanel
- type: Wires - type: Wires
LayoutId: Arcade LayoutId: Arcade
BoardName: "Arcade" BoardName: "Arcade"
@@ -76,6 +77,7 @@
- type: ActivatableUI - type: ActivatableUI
key: enum.BlockGameUiKey.Key key: enum.BlockGameUiKey.Key
- type: ActivatableUIRequiresPower - type: ActivatableUIRequiresPower
- type: WiresPanel
- type: Wires - type: Wires
LayoutId: Arcade LayoutId: Arcade
BoardName: "Arcade" BoardName: "Arcade"

View File

@@ -50,6 +50,7 @@
- type: Machine - type: Machine
board: CryoPodMachineCircuitboard board: CryoPodMachineCircuitboard
- type: WiresVisuals - type: WiresVisuals
- type: WiresPanel
- type: Wires - type: Wires
BoardName: "Cryo pod" BoardName: "Cryo pod"
LayoutId: CryoPod LayoutId: CryoPod

View File

@@ -36,6 +36,7 @@
energy: 2 energy: 2
color: "#fca3c0" color: "#fca3c0"
- type: Appearance - type: Appearance
- type: WiresPanel
- type: Wires - type: Wires
BoardName: "Vessel" BoardName: "Vessel"
LayoutId: Vessel LayoutId: Vessel
@@ -167,6 +168,7 @@
soundGunshot: soundGunshot:
path: /Audio/Weapons/Guns/Gunshots/taser2.ogg path: /Audio/Weapons/Guns/Gunshots/taser2.ogg
- type: Appearance - type: Appearance
- type: WiresPanel
- type: WiresVisuals - type: WiresVisuals
- type: Wires - type: Wires
BoardName: "Ape" BoardName: "Ape"
@@ -244,6 +246,7 @@
- type: Repairable - type: Repairable
fuelCost: 10 fuelCost: 10
doAfterDelay: 5 doAfterDelay: 5
- type: WiresPanel
- type: Wires - type: Wires
BoardName: "AnomalyGenerator" BoardName: "AnomalyGenerator"
LayoutId: AnomalyGenerator LayoutId: AnomalyGenerator

View File

@@ -60,6 +60,7 @@
True: { visible: true } True: { visible: true }
False: { visible: false } False: { visible: false }
# Machine / Construction stuff # Machine / Construction stuff
- type: WiresPanel
- type: Wires - type: Wires
BoardName: "chem_master" BoardName: "chem_master"
LayoutId: chem_master LayoutId: chem_master

View File

@@ -60,6 +60,7 @@
- type: MaterialStorage - type: MaterialStorage
materialWhiteList: materialWhiteList:
- Biomass - Biomass
- type: WiresPanel
- type: Wires - type: Wires
BoardName: "CloningPod" BoardName: "CloningPod"
LayoutId: CloningPod LayoutId: CloningPod

View File

@@ -95,6 +95,7 @@
acts: ["Destruction"] acts: ["Destruction"]
- type: Machine - type: Machine
board: FatExtractorMachineCircuitboard board: FatExtractorMachineCircuitboard
- type: WiresPanel
- type: Wires - type: Wires
BoardName: FatExtractor BoardName: FatExtractor
LayoutId: FatExtractor LayoutId: FatExtractor

View File

@@ -51,6 +51,7 @@
- Sheet - Sheet
- RawMaterial - RawMaterial
- Ingot - Ingot
- type: WiresPanel
- type: Wires - type: Wires
BoardName: "Autolathe" BoardName: "Autolathe"
LayoutId: Autolathe LayoutId: Autolathe
@@ -158,6 +159,7 @@
acts: ["Destruction"] acts: ["Destruction"]
- type: Machine - type: Machine
board: ProtolatheMachineCircuitboard board: ProtolatheMachineCircuitboard
- type: WiresPanel
- type: Wires - type: Wires
BoardName: "Protolathe" BoardName: "Protolathe"
LayoutId: Protolathe LayoutId: Protolathe

View File

@@ -58,6 +58,7 @@
acts: ["Destruction"] acts: ["Destruction"]
- type: Machine - type: Machine
board: MaterialReclaimerMachineCircuitboard board: MaterialReclaimerMachineCircuitboard
- type: WiresPanel
- type: Wires - type: Wires
BoardName: "reclaimer" BoardName: "reclaimer"
LayoutId: Reclaimer LayoutId: Reclaimer

View File

@@ -77,6 +77,7 @@
acts: ["Destruction"] acts: ["Destruction"]
- type: Machine - type: Machine
board: MedicalScannerMachineCircuitboard board: MedicalScannerMachineCircuitboard
- type: WiresPanel
- type: Wires - type: Wires
BoardName: "MedicalScanner" BoardName: "MedicalScanner"
LayoutId: MedicalScanner LayoutId: MedicalScanner

View File

@@ -48,6 +48,7 @@
acts: ["Destruction"] acts: ["Destruction"]
- type: Machine - type: Machine
board: TelecomServerCircuitboard board: TelecomServerCircuitboard
- type: WiresPanel
- type: Wires - type: Wires
BoardName: "TelecomServer" BoardName: "TelecomServer"
LayoutId: TelecomServer LayoutId: TelecomServer

View File

@@ -63,6 +63,7 @@
type: VendingMachineBoundUserInterface type: VendingMachineBoundUserInterface
- key: enum.WiresUiKey.Key - key: enum.WiresUiKey.Key
type: WiresBoundUserInterface type: WiresBoundUserInterface
- type: WiresPanel
- type: Wires - type: Wires
BoardName: "Vending Machine" BoardName: "Vending Machine"
LayoutId: Vending LayoutId: Vending

View File

@@ -242,6 +242,7 @@
- type: ActivatableUI - type: ActivatableUI
inHandsOnly: false inHandsOnly: false
key: enum.ThermomachineUiKey.Key key: enum.ThermomachineUiKey.Key
- type: WiresPanel
- type: Wires - type: Wires
BoardName: "Thermomachine" BoardName: "Thermomachine"
LayoutId: Thermomachine LayoutId: Thermomachine

View File

@@ -32,6 +32,7 @@
type: ParticleAcceleratorBoundUserInterface type: ParticleAcceleratorBoundUserInterface
- key: enum.WiresUiKey.Key - key: enum.WiresUiKey.Key
type: WiresBoundUserInterface type: WiresBoundUserInterface
- type: WiresPanel
- type: Wires - type: Wires
BoardName: "Mk2 Particle Accelerator" BoardName: "Mk2 Particle Accelerator"
LayoutId: ParticleAccelerator LayoutId: ParticleAccelerator

View File

@@ -180,6 +180,7 @@
- type: Sprite - type: Sprite
sprite: Structures/Power/Generation/portable_generator.rsi sprite: Structures/Power/Generation/portable_generator.rsi
state: portgen0_1 state: portgen0_1
- type: WiresPanel
- type: Wires - type: Wires
BoardName: "GeneratorPlasma" BoardName: "GeneratorPlasma"
LayoutId: GeneratorPlasma LayoutId: GeneratorPlasma
@@ -199,6 +200,7 @@
- type: Sprite - type: Sprite
sprite: Structures/Power/Generation/portable_generator.rsi sprite: Structures/Power/Generation/portable_generator.rsi
state: portgen1_1 state: portgen1_1
- type: WiresPanel
- type: Wires - type: Wires
BoardName: "GeneratorUranium" BoardName: "GeneratorUranium"
LayoutId: GeneratorUranium LayoutId: GeneratorUranium

View File

@@ -90,6 +90,7 @@
supplyRampTolerance: 1000 supplyRampTolerance: 1000
supplyRampRate: 500 supplyRampRate: 500
- type: WallMount - type: WallMount
- type: WiresPanel
- type: Wires - type: Wires
BoardName: "APC" BoardName: "APC"
LayoutId: APC LayoutId: APC

View File

@@ -62,6 +62,7 @@
energy: 1.6 energy: 1.6
color: "#c9c042" color: "#c9c042"
castShadows: false castShadows: false
- type: WiresPanel
- type: Wires - type: Wires
BoardName: "SMES" BoardName: "SMES"
LayoutId: SMES LayoutId: SMES

View File

@@ -77,6 +77,7 @@
maxIntensity: 100 maxIntensity: 100
intensitySlope: 2 intensitySlope: 2
totalIntensity: 200 totalIntensity: 200
- type: WiresPanel
- type: Wires - type: Wires
BoardName: "Substation" BoardName: "Substation"
LayoutId: Substation LayoutId: Substation

View File

@@ -45,6 +45,7 @@
type: AirAlarmBoundUserInterface type: AirAlarmBoundUserInterface
- key: enum.WiresUiKey.Key - key: enum.WiresUiKey.Key
type: WiresBoundUserInterface type: WiresBoundUserInterface
- type: WiresPanel
- type: Wires - type: Wires
BoardName: "Air Alarm" BoardName: "Air Alarm"
LayoutId: AirAlarm LayoutId: AirAlarm

View File

@@ -58,6 +58,7 @@
interfaces: interfaces:
- key: enum.WiresUiKey.Key - key: enum.WiresUiKey.Key
type: WiresBoundUserInterface type: WiresBoundUserInterface
- type: WiresPanel
- type: Wires - type: Wires
BoardName: "Fire Alarm" BoardName: "Fire Alarm"
LayoutId: FireAlarm LayoutId: FireAlarm

View File

@@ -30,6 +30,7 @@
- type: Transform - type: Transform
noRot: false noRot: false
anchored: true anchored: true
- type: WiresPanel
- type: Wires - type: Wires
BoardName: "Intercom" BoardName: "Intercom"
LayoutId: Intercom LayoutId: Intercom

View File

@@ -20,6 +20,7 @@
- type: DeviceNetworkRequiresPower - type: DeviceNetworkRequiresPower
- type: Transform - type: Transform
anchored: true anchored: true
- type: WiresPanel
- type: Wires - type: Wires
alwaysRandomize: true alwaysRandomize: true
LayoutId: SurveillanceCamera LayoutId: SurveillanceCamera

View File

@@ -77,6 +77,7 @@
acts: ["Destruction"] acts: ["Destruction"]
- type: Machine - type: Machine
board: HydroponicsTrayMachineCircuitboard board: HydroponicsTrayMachineCircuitboard
- type: WiresPanel
- type: Wires - type: Wires
BoardName: "HydroponicsTray" BoardName: "HydroponicsTray"
LayoutId: HydroponicsTray LayoutId: HydroponicsTray